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

Last change on this file since 37120 was 37120, checked in by davidb, 16 months ago

Some very early work on making this collection be both programmes and metadata about performers

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