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

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

A series of changes getting the code and XSLT up to the point where the Mirador annotation viewer can be operated without annotations, with annotaitons from a static manifest, with annotations from the store (editable)

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