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 revisionBoth sides next revision
en:user:gs3_sample_format_statements [2016/10/12 21:47] – can't use innerHTML if the element already has content kjdonen:user:gs3_sample_format_statements [2018/06/26 00:28] – [Linking metadata to a search] kjdon
Line 154: Line 154:
  
  
-===== Linking metadata to a search =====+===== Handling multi-valued metadata ===== 
 + 
 +==== Displaying values in a bulleted list ==== 
 + 
 +Say we want to display all the authors of a document in a bulleted list. We can't just use <gsf:metadata name="dc.Creator"/> as it will put all the names out in a comma separated list. However, we can use the prefix and suffix options to put some HTML before and after each author. 
 + 
 +<code> 
 +<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> 
 +</ul> 
 +</code> 
 +==== Linking metadata to a search ==== 
 + 
 +How to link metadata values to a search for that value?
  
-How to link metadata values to a search for that value. 
 For example, say a document has several authors, stored as dc.Creator metadata. You can display a list of the authors, each one linked to a search of the dc.Creator index for that author. For example, say a document has several authors, stored as dc.Creator metadata. You can display a list of the authors, each one linked to a search of the dc.Creator index for that author.
  
en/user/gs3_sample_format_statements.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1