source: documentation/trunk/tutorial_sample_files/niupepa/formats/search_tweak_gs3.txt@ 32977

Last change on this file since 32977 was 32977, checked in by ak19, 5 years ago

Dr Bainbridge worked out how to fix the broken format statements in the Paged Images collection for the (Advanced) scanned image collection tutorial and the OAI Service Provider collection of the OAI collection tutorial. For the advanced scanned image tutorial, searching at page level of the XML document didn't show the dates of the search results, only undated. This was because the date metadata was set at a higher level in the item file than the parent, being set at root level. For the OAI collection tutorial, the source link (ex.srclinkFile) no longer worked. It's now been replaced with gsf:link on meta=source, used for regular docs in regular collections. which links to the source image in the OAI collection just fine as well.

File size: 790 bytes
Line 
1<td>
2 <gsf:switch>
3 <gsf:metadata name="Title" select="parent"/>
4 <gsf:when test="exists">
5 <gsf:metadata name="Title" select="parent"/> Volume:<gsf:metadata name="Volume" select="parent"/> Number:<gsf:metadata name="Number" select="parent"/> - Page:<gsf:metadata name="Title"/>
6 </gsf:when>
7 <gsf:otherwise>
8<gsf:metadata name="Title"/> Volume:<gsf:metadata name="Volume"/> Number:<gsf:metadata name="Number"/>
9 </gsf:otherwise>
10 </gsf:switch>
11 <br/>
12 <i>
13 <gsf:choose-metadata>
14 <gsf:metadata name="Date" format="formatDate" />
15 <gsf:metadata name="Date" select="parent" format="formatDate" />
16 <gsf:metadata name="Date" select="root" format="formatDate" />
17 <gsf:default>undated</gsf:default>
18 </gsf:choose-metadata>
19 </i>
20</td>
21
Note: See TracBrowser for help on using the repository browser.