User Tools

Site Tools


en:user_advanced:gs3_search_field_display

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:user_advanced:gs3_search_field_display [2016/07/27 23:07] – [Indexes] kjdonen:user_advanced:gs3_search_field_display [2018/12/10 00:36] – [Dictionary Customization] kjdon
Line 11: Line 11:
 <code> <code>
 <level name="section"> <level name="section">
-  <dosplayItem name="name" lang="fr">Chaptires</displayItem>+  <displayItem name="name" lang="fr">Chaptires</displayItem>
   <displayItem name="name" lang="en">Chapters</displayItem>   <displayItem name="name" lang="en">Chapters</displayItem>
   <displayItem name="name" key="level.chapter"/>   <displayItem name="name" key="level.chapter"/>
Line 26: Line 26:
 Display values for indexes are done in a similar way to levels, except that the values are looked up in metadata_names.properties, rather than in the chain of servicename.properties. Display values for indexes are done in a similar way to levels, except that the values are looked up in metadata_names.properties, rather than in the chain of servicename.properties.
  
-<code><index name="Title/></code>+<code><index name="Title"/></code> 
 + 
 +No displayItems, so we look up Title.buttonname in metadata_names. 
 + 
 +<code> 
 +<index name="dc.Title,Title">  
 +  <displayItem name="name" key="Title.buttonname"/> 
 +  <displayItem name="name" lang="en">book titles</displayItem> 
 +</index> 
 +</code> 
 + 
 +For English, we will display book titles. For other languages we will display the value from the dictionary for Title.buttonname. 
 + 
 +==== Classifiers ==== 
 + 
 +The navigation tab for each classifier is also customisable. By default, the code will get the Title metadata for the classifier from the collection database (eg index/text/demo.gdb). It will look up this name + .buttonname to get the value for the tab. The Title metadata is set by the perl classifier code. It will use the -buttonname argument, or will generate one from the -metadata argument. For example //List -metadata dc.Date,Date// will just get "Date" as its Title. 
 + 
 +DisplayItems can be used here too, in a similar way to the indexes and levels. 
  
-No displayItems, so we look up Title in metadata_names 
 ==== Dictionary Customization ==== ==== Dictionary Customization ====
  
Line 44: Line 60:
  
 In this way different services can override values. In this way different services can override values.
-For example, if GS2MGPPSearch is looking up the value for level.section, the following shows the order of precendence (dictionary_file:key_name)+For example, if GS2MGPPSearch is looking up the value for level.section, the following shows the order of precedence (dictionary_file:key_name)
  
-GS2MGPPSearch.properties: level.section +GS2MGPPSearch.properties:level.section\\ 
-AbstractGS2FieldSearch.properties: level.section +AbstractGS2FieldSearch.properties:level.section\\ 
-AbstractGs2TextSearch.properties: level.section +AbstractGs2TextSearch.properties:level.section\\ 
-ServiceRack.properties: GS2MGPPSearch.level.section +ServiceRack.properties:GS2MGPPSearch.level.section\\ 
-ServiceRack.properties: level.section+ServiceRack.properties:level.section\\