User Tools

Site Tools


en:user:gs3_sample_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_sample_format_statements [2018/06/26 00:28] – [Linking metadata to a search] kjdonen:user:gs3_sample_format_statements [2024/07/05 01:00] (current) – [Image Display Example] kjdon
Line 1: Line 1:
 +
 +
 +
  
 ====== Sample Greenstone3 Format Statements ====== ====== Sample Greenstone3 Format Statements ======
Line 153: Line 156:
 </code> </code>
  
 +==== Adjusting view for paged image documents ====
  
 +By default, paged image documents will display the image with the associated text underneath. A "view selector" offers **default** (both image and text) and **image** only and **text** only options.
 +These can be customised in the <display><format> element of the etc/collectionConfig.xml file.
 +
 +  *To hide the view selector:
 +<code>
 +<gsf:option name="viewSelection" value="false"/>
 +</code>
 +
 +  *To set the default view to image:
 +<code>
 +<paramDefault name="view" value="image"/>
 +</code>
 ===== Handling multi-valued metadata ===== ===== Handling multi-valued metadata =====
  
Line 162: Line 178:
 <code> <code>
 <ul> <ul>
-<gsf:metadata name="dc.Creator" separator=""><prefix><gsf:html>&lt;li&gt;&lt;b&gt;</gsf:html></prefix><suffix><gsf:html>&lt;/b&gt;&lt;/li&gt;</gsf:html></suffix></gsf:metadata>+<gsf:metadata name="dc.Creator" separator=""><prefix><gsf:html>&lt;li&gt;&lt;b&gt;</gsf:html></prefix> 
 +<suffix><gsf:html>&lt;/b&gt;&lt;/li&gt;</gsf:html></suffix></gsf:metadata>
 </ul> </ul>
 </code> </code>
 +
 +This will produce output like:
 +
 +<ul><li><b>John Smith</b></li><li><b>Katherine Don</b></li><li><b>Cliff Richard</b></li></ul>
 ==== Linking metadata to a search ==== ==== Linking metadata to a search ====
  
Line 365: Line 386:
  
 Greenstone provides a shorthand: **<gsf:html>"</gsf:html>**, which gets resolved to <xsl:text> with the disable-output-escaping attribute set.  Greenstone provides a shorthand: **<gsf:html>"</gsf:html>**, which gets resolved to <xsl:text> with the disable-output-escaping attribute set. 
- 
- 
- 
  
  
  
  
en/user/gs3_sample_format_statements.1529972932.txt.gz · Last modified: 2018/06/26 00:28 (external edit)