User Tools

Site Tools


en:user:gs3_format_statements

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:gs3_format_statements [2018/02/04 23:32] – [Adding new srcicons] kjdonen:user:gs3_format_statements [2023/03/13 20:54] (current) – [Iteration] kjdon
Line 1: Line 1:
 +
 +
 +
 ====== Greenstone 3 Format Statements ====== ====== Greenstone 3 Format Statements ======
  
Line 128: Line 131:
 ==== Adding new srcicons ==== ==== Adding new srcicons ====
  
-If you have used source documents, such as mp4, where greenstone doesn't have an icon for it, you may see _iconmp4_ instead of an icon in the display. If this happens, you need to add an appropriate icon into web/interfaces/default/images, and define a mapping for the macro in web/sites/localsite/siteConfig.xml. For example, if we copy the mp3 example and add an icon for mp4, we would add imp4.gif into images folder, and add the following lines into siteConfig.xml:+If you have used source documents, such as mp4, where greenstone doesn't have an icon for it, you may see _iconmp4_ instead of an icon in the display. If this happens, you need to add an appropriate icon into web/interfaces/default/images, and define a mapping for the macro in web/sites/localsite/siteConfig.xml. For example, if we copy the mp3 example and add an icon for mp4, we would add imp4.gif into images folder, and add the following line into siteConfig.xml, into the <replaceList> element:
 <code> <code>
     <replace macro="_iconmp4_" scope="metadata" text="&lt;img src='interfaces/default/images/imp4.gif' border='0'/&gt;" resolve="false"/>     <replace macro="_iconmp4_" scope="metadata" text="&lt;img src='interfaces/default/images/imp4.gif' border='0'/&gt;" resolve="false"/>
Line 164: Line 167:
   * ''<gsf:metadata name="Title" select="ancestors"/>'' is the titles for sections 2.5, 2, and the document   * ''<gsf:metadata name="Title" select="ancestors"/>'' is the titles for sections 2.5, 2, and the document
   * ''<gsf:metadata name="Title" select="root"/>'' is the document title   * ''<gsf:metadata name="Title" select="root"/>'' is the document title
-  * ''<gsf:metadata name="Title" select="siblings"/>'' is the titles for sections 2.5.1, 2.5.2, 2.5.4, etc.+  * ''<gsf:metadata name="Title" select="siblings"/>'' is the titles for sections 2.5.1, 2.5.2, 2.5.3, 2.5.4, etc.
   * ''<gsf:metadata name="Title" select="children"/>'' displays the titles for sections 2.5.3.1, 2.5.3.2, etc.   * ''<gsf:metadata name="Title" select="children"/>'' displays the titles for sections 2.5.3.1, 2.5.3.2, etc.
-  * ''<gsf:metadata name="Title" select="descendents"/>'' displays the titles for sections 2.5.3.1, 2.5.3.1.1, 2.5.3.1.2, 2.5.3.2, 2.5.3.2.1, etc.+  * ''<gsf:metadata name="Title" select="descendants"/>'' displays the titles for sections 2.5.3.1, 2.5.3.1.1, 2.5.3.1.2, 2.5.3.2, 2.5.3.2.1, etc. (from Greenstone version 3.10) 
 +  * ''<gsf:metadata name="Title" select="entire"/>'' displays the titles for all sections of the document. (from Greenstone version 3.10)
  
 ===== Classifier Metadata ===== ===== Classifier Metadata =====
Line 254: Line 258:
  
 To sort the values, add ''@sort='true' '' to the <gsf:foreach-metadata> element. Or for more sorting control, add <gsf:sort/> to the body. <gsf:sort/> mirrors <xsl:sort/>; for a list of attributes, see To sort the values, add ''@sort='true' '' to the <gsf:foreach-metadata> element. Or for more sorting control, add <gsf:sort/> to the body. <gsf:sort/> mirrors <xsl:sort/>; for a list of attributes, see
-[[en:user:list_of_format_options#gsfsort_attributes| this page]].+[[en:user:gs3_list_of_format_options#gsfsort_attributes| this page]].
  
 <code> <code>
Line 269: Line 273:
   * The templates in the GLI only effect very specific parts of the page. You may want to completely change large portions of how your Greenstone library looks. For more information on how to do this, check out the [[interfaces]] page.   * The templates in the GLI only effect very specific parts of the page. You may want to completely change large portions of how your Greenstone library looks. For more information on how to do this, check out the [[interfaces]] page.
   * [[http://wiki.greenstone.org/wiki/images/7/71/Skins_Doc.pdf|Greenstone 3 Interface Transformations Library: Basic Documentation]] //Maxime Roüast//   * [[http://wiki.greenstone.org/wiki/images/7/71/Skins_Doc.pdf|Greenstone 3 Interface Transformations Library: Basic Documentation]] //Maxime Roüast//
- 
- 
  
en/user/gs3_format_statements.1517787167.txt.gz · Last modified: 2018/02/04 23:32 by kjdon