User Tools

Site Tools


en:user_advanced:gs3_displayitems

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
en:user_advanced:gs3_displayitems [2018/12/10 01:26] – old revision restored (2018/12/10 13:36) kjdonen:user_advanced:gs3_displayitems [2023/12/21 07:40] (current) – [Display Item format] kjdon
Line 1: Line 1:
 +
 +
 +
 ====== Display Items in Greenstone 3====== ====== Display Items in Greenstone 3======
  
Line 12: Line 15:
 Display items can be specified in several ways: Display items can be specified in several ways:
  
-  - Straight language dependent text: <displayItem name="name" lang="en" value="My Recipe Collection"/> +  - Straight language dependent text: <displayItem name="name" lang="en">My Recipe Collection</displayItem
-  - Dictionary lookup: <displayItem name="name" key="level.section"/>+  - Dictionary lookup: <displayItem name="name" key="level.section"/> - This has an optional dictonary attribute, if you want to specify the dictionary file.
  
  
Line 19: Line 22:
  
  
-======Customising the field list display in Greenstone 3======+=====Customising the search fields =====
  
 ==== Levels==== ==== Levels====
Line 63: Line 66:
 DisplayItems can be used here too, in a similar way to the indexes and levels.  DisplayItems can be used here too, in a similar way to the indexes and levels. 
  
-==== Dictionary Customization ====+===== Understanding the Dictionaries =====
  
 To get language specific strings in Java we use ResourceBundle dictionaries. If asked for a key from a specific dictionary in a specific language, Java will load the dictionary and look up the key. It has a chain of languages it tries. The specified language, a family related language (I think), the default language. To get language specific strings in Java we use ResourceBundle dictionaries. If asked for a key from a specific dictionary in a specific language, Java will load the dictionary and look up the key. It has a chain of languages it tries. The specified language, a family related language (I think), the default language.
Line 85: Line 88:
 ServiceRack.properties:GS2MGPPSearch.level.section\\ ServiceRack.properties:GS2MGPPSearch.level.section\\
 ServiceRack.properties:level.section\\ ServiceRack.properties:level.section\\
- 
  
en/user_advanced/gs3_displayitems.1544405178.txt.gz · Last modified: 2018/12/10 01:26 by kjdon