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 [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: | ||
| </ | </ | ||
| + | ==== Adjusting view for paged image documents ==== | ||
| - | ===== Linking metadata to a search ===== | + | By default, paged image documents will display the image with the associated text underneath. A "view selector" |
| + | These can be customised in the < | ||
| + | |||
| + | *To hide the view selector: | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | *To set the default view to image: | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | ===== 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 386: | ||
| 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
