en:user:gs3_sample_format_statements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:user:gs3_sample_format_statements [2016/10/12 21:47] – can't use innerHTML if the element already has content kjdon | en:user:gs3_sample_format_statements [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
====== Sample Greenstone3 Format Statements ====== | ====== Sample Greenstone3 Format Statements ====== | ||
Line 154: | Line 157: | ||
- | ===== 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 < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | This will produce output like: | ||
+ | |||
+ | < | ||
+ | ==== 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. | ||
Line 353: | Line 373: | ||
Greenstone provides a shorthand: **< | Greenstone provides a shorthand: **< | ||
- | |||
- | |||
- | |||
en/user/gs3_sample_format_statements.1476308842.txt.gz · Last modified: 2016/10/12 21:47 by kjdon