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 22:31] kjdonen:user_advanced:gs3_search_field_display [2016/07/27 23:49] – [Indexes] kjdon
Line 22: Line 22:
 (See getDisplayText in service/ServiceRack.java, and getLevelData in service/AbstractGS2FieldSearch.java) (See getDisplayText in service/ServiceRack.java, and getLevelData in service/AbstractGS2FieldSearch.java)
  
 +==== Indexes ====
 +
 +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>
 +
 +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.
 ==== Dictionary Customization ==== ==== Dictionary Customization ====