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
Last revisionBoth sides next revision
en:user_advanced:gs3_search_field_display [2016/07/27 22:15] – [Levels] kjdonen:user_advanced:gs3_search_field_display [2018/12/10 00:36] kjdon
Line 1: Line 1:
-======Customising the field list display in Greenstone 3====== +ll
- +
-==== Levels==== +
- +
-<code><level name="section"/></code> +
- +
-This will be displayed using level.section from the ServiceRack.properties dictionary. +
- +
-<code> +
-<level name="section"> +
-  <dosplayItem name="name" lang="fr">Chaptires</displayItem> +
-  <displayItem name="name" lang="en">Chapters</displayItem> +
-  <displayItem name="name" key="level.chapter"/> +
-</level> +
-</code> +
- +
-For english, the lang=en displayItem will be used, as it matches the current lang. +
-For languages where there is not a specific displayItem, it will use one with a key (if present). This key (level.chapter) is looked up in the ServiceRack.properties dictionary (for the approprate language). If it can find a value, then this will be used. If no value is found, then the first displayItem will be used as a default (in this case, the french version). If for some reason, no displayItem values are found (eg if only a key type one is present and the key hasn't been defined), then it will default to using level.section from the ServiceRack dictionary. +
- +
-(See getDisplayText in service/ServiceRack.java, and getLevelData in service/AbstractGS2FieldSearch.java) +
- +
-The order of precedence+