source: gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes/etc/collectionConfig.xml@ 37055

Last change on this file since 37055 was 37055, checked in by davidb, 14 months ago

A range of changes, mostly to do with the display of the Greenstone doc-view as Mirador3: regular Greenstone view still operational (whether single-page simple doc, or paged); VList statements simplified so it always takes the user to the Mirador version

File size: 15.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:gslib="http://www.greenstone.org/skinning" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <security default_access="public" scope="collection">
4 <exception>
5 <group name="atea"/>
6 </exception>
7 </security>
8 <metadataList>
9 <metadata lang="en" name="creator"/>
10 <metadata lang="en" name="maintainer"/>
11 <metadata lang="en" name="public">true</metadata>
12 </metadataList>
13 <displayItemList>
14 <displayItem lang="en" name="name">Programmes</displayItem>
15 <displayItem lang="en" name="text">text</displayItem>
16 <displayItem lang="en" name="ex.im.Work,dc.Title,ex.dc.Title,Title">titles</displayItem>
17 <displayItem lang="en" name="Source">filenames</displayItem>
18 <displayItem lang="en" name="document:text">text</displayItem>
19 <displayItem lang="en" name="document:ex.Title">Title</displayItem>
20 <displayItem lang="en" name="document:ex.Source">Source</displayItem>
21 <displayItem lang="en" name="document">document</displayItem>
22 <displayItem lang="en" name="section">section</displayItem>
23 <displayItem lang="en" name="shortDescription">Programmes from the IntermusE corpus enhanced at ingest time using the Google Vision API</displayItem>
24 </displayItemList>
25 <format>
26 <gsf:template name="choose-title">
27 <gsf:choose-metadata>
28 <gsf:metadata name="ex.im.Work"/>
29 <gsf:metadata name="dc.Title"/>
30 <gsf:metadata name="exp.Title"/>
31 <gsf:metadata name="ex.dc.Title"/>
32 <gsf:metadata name="ex.Title"/>
33 <gsf:metadata name="Title"/>
34 <gsf:default>Untitled</gsf:default>
35 </gsf:choose-metadata>
36 </gsf:template>
37
38 <xsl:template name="document-link-mirador-ahref">
39 <xsl:param name="embed"/>
40 <xsl:variable name="href"><xsl:value-of select="$library_name"/><xsl:text>/collection/</xsl:text><xsl:value-of select="/page/pageResponse/collection/@name"/><xsl:text>/document/</xsl:text><xsl:choose><xsl:when test="@OID"><xsl:value-of select="@OID"/></xsl:when><xsl:when test="@OIDmetadata"><xsl:variable name="OIDmeta" select="@OIDmetadata"/><xsl:value-of select="metadataList/metadata[@name='{$OIDmeta}']"/></xsl:when><xsl:otherwise><xsl:value-of select="@nodeID"/></xsl:otherwise></xsl:choose><xsl:text>?book=mirador&amp;ed=1</xsl:text></xsl:variable>
41 <a>
42 <xsl:attribute name="href"><xsl:value-of select="$href"/></xsl:attribute>
43 <xsl:copy-of select="$embed"/>
44 </a>
45 </xsl:template>
46
47 <xsl:template name="document-link-mirador">
48 <a>
49 <xsl:attribute name="href"><xsl:value-of select="$library_name"/><xsl:text>/collection/</xsl:text><xsl:value-of select="/page/pageResponse/collection/@name"/><xsl:text>/document/</xsl:text><xsl:choose><xsl:when test="@OID"><xsl:value-of select="@OID"/></xsl:when><xsl:when test="@OIDmetadata"><xsl:variable name="OIDmeta" select="@OIDmetadata"/><xsl:value-of select="metadataList/metadata[@name='{$OIDmeta}']"/></xsl:when><xsl:otherwise><xsl:value-of select="@nodeID"/></xsl:otherwise></xsl:choose><xsl:text>?book=mirador&amp;ed=1</xsl:text></xsl:attribute>
50 <gsf:icon type="document" style="vertical-align:middle;"/><xsl:call-template name="choose-title"/>
51 </a>
52 </xsl:template>
53
54 <xsl:template name="document-link-miradorORIG">
55 <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/><xsl:text>/collection/</xsl:text><xsl:value-of select="/page/pageResponse/collection/@name"/><xsl:text>/document/</xsl:text><xsl:choose><xsl:when test="@OID"><xsl:value-of select="@OID"/></xsl:when><xsl:when test="@OIDmetadata"><xsl:variable name="OIDmeta" select="@OIDmetadata"/><xsl:value-of select="metadataList/metadata[@name='{$OIDmeta}']"/></xsl:when><xsl:otherwise><xsl:value-of select="@nodeID"/></xsl:otherwise></xsl:choose><xsl:text>?book=mirador&amp;ed=1</xsl:text></xsl:attribute><img src="interfaces/{$interface_name}/images/iannotate.png" style="vertical-align:middle;"/> (Annotate)<!--
56(<gsf:icon type="document" style="vertical-align:middle;"/> Mirador Annotate)
57-->
58<!--
59<xsl:copy-of select="@value"/>
60-->
61<!--
62<xsl:apply-templates selet="@*|node()"/>
63-->
64</a>
65 </xsl:template>
66<!--
67modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message
68-->
69 <xsl:template name="coll-description">
70 <p>
71 <gslib:collectionDescriptionTextAndServicesLinks/>
72 </p>
73 <xsl:variable name="raw_date">
74 <gslib:collectionMeta name="buildDate"/>
75 </xsl:variable>
76 <xsl:variable name="formatted_date">
77 <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/>
78 </xsl:variable>
79 <xsl:variable name="numdocs">
80 <gslib:collectionMeta name="numDocs"/>
81 </xsl:variable>
82 <p>
83 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/>
84 </p>
85 </xsl:template>
86 </format>
87 <search type="lucene">
88 <index name="text">
89 <displayItem lang="en" name="name">text</displayItem>
90 </index>
91 <index name="ex.im.Work,dc.Title,ex.dc.Title,Title">
92 <displayItem lang="en" name="name">titles</displayItem>
93 </index>
94 <index name="Source">
95 <displayItem lang="en" name="name">filenames</displayItem>
96 </index>
97 <defaultIndex name="text"/>
98 <level name="document">
99 <displayItem lang="en" name="name">document</displayItem>
100 </level>
101 <level name="section">
102 <displayItem lang="en" name="name">section</displayItem>
103 </level>
104 <defaultLevel name="document"/>
105 <sort name="rank">
106 <displayItem lang="en" name="name">rank</displayItem>
107 </sort>
108 <sort name="none">
109 <displayItem lang="en" name="name">natural (build) order</displayItem>
110 </sort>
111 <searchType name="plain"/>
112 <searchType name="simpleform"/>
113 <searchType name="advancedform"/>
114 <format>
115 <gsf:template match="documentNode">
116 <td valign="top">
117 <!--
118 <gsf:link type="document"><gsf:icon style="vertical-align:middle;" type="document"/> (Page view)</gsf:link>
119 -->
120 <xsl:call-template name="document-link-mirador-ahref">
121 <xsl:with-param name="embed"><gsf:icon style="vertical-align:middle;" type="document"/></xsl:with-param>
122 </xsl:call-template>
123
124 </td>
125 <!--
126 <td valign="top">
127 <xsl:call-template name="document-link-mirador"/>
128 </td>
129 -->
130 <td>
131 <!--
132 <gsf:link type="document">
133 <xsl:call-template name="choose-title"/>
134 </gsf:link>
135 -->
136 <xsl:call-template name="document-link-mirador-ahref">
137 <xsl:with-param name="embed">
138 <xsl:call-template name="choose-title"/>
139 <gsf:switch>
140 <gsf:metadata name="ex.im.Artist"/>
141 <gsf:when test="exists">, performed by<gsf:metadata name="ex.im.Artist"/></gsf:when>
142 </gsf:switch>
143 </xsl:with-param>
144 </xsl:call-template>
145
146 </td>
147 </gsf:template>
148 </format>
149 </search>
150 <infodb type="jdbm"/>
151 <import>
152 <pluginList>
153 <plugin name="ZIPPlugin"/>
154 <plugin name="GreenstoneXMLPlugin"/>
155 <plugin name="GoogleVisionPagedImagePlugin">
156 <option name="-enable_cache"/>
157 <option name="-enable_document_ocr"/>
158 <option name="-OIDtype" value="filename"/>
159 <option name="-create_screenview" value="true"/>
160 <option name="-create_thumbnail" value="true"/>
161 <option name="-screenviewtype" value="png"/>
162 <option name="-thumbnailtype" value="png"/>
163 </plugin>
164 <plugin name="GoogleVisionImagePlugin">
165 <option name="-enable_cache"/>
166 <option name="-enable_document_ocr"/>
167 <option name="-enable_image_labelling"/>
168 </plugin>
169 <plugin name="TextPlugin">
170 <option name="-process_exp" value="(?=(?i).te?xt\$)(?=^(?!.*tk_))"/>
171 </plugin>
172 <plugin name="HTMLPlugin"/>
173 <plugin name="EmailPlugin"/>
174 <plugin name="PDFv2Plugin"/>
175 <plugin name="UnknownConverterPlugin">
176 <option name="-exec_cmd" value="java -jar $GSDLHOME/ext/tika/tika-app-*.jar --html --pretty-print --encoding=UTF-8 %%INPUT_FILE > %%OUTPUT"/>
177 <option name="-convert_to" value="html"/>
178 <option name="-mime_type" value="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
179 <option name="-srcicon" value="icondocx"/>
180 <option name="-process_extension" value="docx"/>
181 </plugin>
182 <plugin name="RTFPlugin"/>
183 <plugin name="WordPlugin"/>
184 <plugin name="PostScriptPlugin"/>
185 <plugin name="PowerPointPlugin"/>
186 <plugin name="ExcelPlugin"/>
187 <plugin name="ISISPlugin"/>
188 <plugin name="NulPlugin"/>
189 <plugin name="OAIPlugin"/>
190 <plugin name="MetadataXMLPlugin"/>
191 <plugin name="ArchivesInfPlugin"/>
192 <plugin name="DirectoryPlugin"/>
193 </pluginList>
194 </import>
195 <browse>
196 <classifier name="List">
197 <option name="-metadata" value="dc.Title,Title"/>
198 <option name="-partition_type_within_level" value="approximate_size"/>
199 <option name="-numeric_partition_type_within_level" value="approximate_size"/>
200 <option name="-metadata_selection_mode_within_level" value="firstvalue"/>
201 </classifier>
202 <format>
203 <gsf:template match="documentNode">
204 <td valign="top">
205 <!--
206 <gsf:link type="document"><gsf:icon style="vertical-align:middle;" type="document"/> (Page view)</gsf:link>
207 -->
208 <xsl:call-template name="document-link-mirador-ahref">
209 <xsl:with-param name="embed"><gsf:icon style="vertical-align:middle;" type="document"/></xsl:with-param>
210 </xsl:call-template>
211 </td>
212 <td valign="top">
213 <!--
214 <xsl:call-template name="document-link-mirador"/>
215 -->
216 <xsl:call-template name="document-link-mirador-ahref">
217 <xsl:with-param name="embed">
218 <xsl:call-template name="choose-title"/>
219 <gsf:switch>
220 <gsf:metadata name="ex.im.Artist"/>
221 <gsf:when test="exists">, performed by<gsf:metadata name="ex.im.Artist"/></gsf:when>
222 </gsf:switch>
223 </xsl:with-param>
224 </xsl:call-template>
225 </td>
226 <!--
227 <td valign="top">
228 <gsf:link type="document">
229 <xsl:call-template name="choose-title"/>
230 <gsf:switch>
231 <gsf:metadata name="ex.im.Artist"/>
232 <gsf:when test="exists">, performed by<gsf:metadata name="ex.im.Artist"/></gsf:when>
233 </gsf:switch>
234
235 </gsf:link>
236 </td>
237 -->
238 </gsf:template>
239 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
240 <td valign="top">
241 <gsf:link style="static" type="classifier">
242 <gsf:icon type="classifier"/>
243 </gsf:link>
244 </td>
245 <td valign="top">
246 <gsf:link type="classifier">
247 <gsf:metadata name="Title"/>
248 </gsf:link>
249 </td>
250 </gsf:template>
251 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
252 <gsf:link style="static" type="classifier">
253 <gsf:metadata name="Title"/>
254 </gsf:link>
255 </gsf:template>
256 </format>
257 </browse>
258 <display>
259 <format>
260 <gsf:headMetaTags>
261 <gsf:metadata name="Title"/>
262 </gsf:headMetaTags>
263
264 <gsf:option name="TOC" value="true"/>
265 <gsf:option name="allowUserComments" value="true"/>
266 <gsf:option name="allowDocumentEditing" value="true"/>
267 <gsf:option name="allowMapGPSEditing" value="true"/>
268<!--
269Overwriting this template allows you to change the heading of the document.
270-->
271<!--
272<gsf:template name="documentHeading">
273 <span style="font-weight:italic; font-size: 120%;">
274 <xsl:call-template name="choose-title"/>
275 </span>
276 </gsf:template>
277-->
278 <xsl:template name="documentHeading">
279 <gsf:metadata hidden="true" name="HasGoogleVisionDocumentOCRJSON"/>
280 <gsf:metadata hidden="true" name="GVDocumentOCRJSON"/>
281 <gsf:metadata hidden="true" name="Image"/>
282 <!--
283 **** currently needed to ensure ILT TOC gets Image (rather than Source) metadata ?????
284 -->
285
286 <xsl:if test="$bookswitch != 'mirador'">
287 <span style="font-weight:bold; font-size: 120%;">
288 <xsl:call-template name="choose-title"/>
289 </span>
290 </xsl:if>
291
292 <gsf:metadata-table>
293 <gsf:metadata name="ex.im.No">Catalogue No:</gsf:metadata>
294 <gsf:metadata name="ex.im.Work">Work:</gsf:metadata>
295 <gsf:metadata name="ex.im.Artist">Artist(s):</gsf:metadata>
296 <gsf:metadata name="ex.im.Venue">Venue:</gsf:metadata>
297 <gsf:metadata name="ex.im.Composer">Composer:</gsf:metadata>
298 </gsf:metadata-table>
299 </xsl:template>
300<!--
301Overwriting this template can be used to redefine the content of the whole document. This is useful for simple documents, but not recommended for more complex documents (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
302-->
303<!--
304<gsf:template name="documentContent">
305 <div id="gs-document">
306 <xsl:call-template name="documentPre"/>
307 <xsl:call-template name="wrappedSectionImage"/>
308 <div id="gs-document-text">
309 <xsl:call-template name="documentNodeText"/>
310 </div>
311 </div>
312 </gsf:template>
313-->
314<!--
315Overwriting this template can be used to change the content of section headings.
316-->
317 <gsf:template name="sectionHeading">
318 <xsl:call-template name="choose-title"/>
319 </gsf:template>
320<!--
321Overwriting this template can be used to change the content of the top-level section.
322-->
323<!--
324<gsf:template name="topLevelSectionContent">
325<xsl:call-template name="wrappedSectionImage"/>
326<xsl:call-template name="wrappedSectionText"/>
327</gsf:template>
328-->
329<!--
330Overwriting this template can be used to change the content of sections.
331-->
332<!--
333<gsf:template name="sectionContent">
334<xsl:call-template name="wrappedSectionImage"/>
335<xsl:call-template name="wrappedSectionText"/>
336</gsf:template>
337-->
338 </format>
339 </display>
340 <replaceListRef id="gs2-standard"/>
341 <replaceListRef id="gs2-image"/>
342 <serviceRackList><!-- comment out the following serviceRack if you want to disable RSS for this collection -->
343 <serviceRack name="RSSRetrieve"/><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
344 <serviceRack name="OAIPMH">
345 <setName>intermuseprogammes</setName>
346 <setDescription/><!-- uncomment the following and set the name attribute if
347 you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
348 <ListMetadataFormats><!--What metadata sets to support for this collection. You can select any set that is specified in OAIConfig.xml. To use a new set, you need to add a set definition in OAIConfig.xml, then reference it here, like:
349 <metadataFormat metadataPrefix="prefix"/> -->
350 <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat>
351 </ListMetadataFormats>
352 </serviceRack>
353 <serviceRack name="IIIFPMH">
354 <setName>intermuseprogammes</setName>
355 <setDescription/><!-- uncomment the following and set the name attribute if
356 you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
357 <ListMetadataFormats><!--What metadata sets to support for this collection. You can select any set that is specified in OAIConfig.xml. To use a new set, you need to add a set definition in OAIConfig.xml, then reference it here, like:
358 <metadataFormat metadataPrefix="prefix"/> -->
359 <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat>
360 </ListMetadataFormats>
361 </serviceRack>
362 </serviceRackList>
363</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.