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

Last change on this file since 37018 was 37018, checked in by davidb, 15 months ago

Introduction of book/bookswitch param for mirador. Serves static content when accessing Mirador viewer

File size: 13.5 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="Title"/>
33 <gsf:default>Untitled</gsf:default>
34 </gsf:choose-metadata>
35 </gsf:template>
36
37
38 <xsl:template name="document-link-mirador">
39 <a>
40 <xsl:attribute name="href">
41 <xsl:value-of select='$library_name'/>
42 <xsl:text>/collection/</xsl:text>
43 <xsl:value-of select='/page/pageResponse/collection/@name'/>
44 <xsl:text>/document/</xsl:text>
45 <xsl:choose>
46 <xsl:when test="@OID">
47 <xsl:value-of select="@OID"/>
48 </xsl:when>
49 <xsl:when test="@OIDmetadata">
50 <xsl:variable name="OIDmeta" select="@OIDmetadata"/>
51 <xsl:value-of select="metadataList/metadata[@name='{$OIDmeta}']"/>
52 </xsl:when>
53 <xsl:otherwise>
54 <xsl:value-of select='@nodeID'/>
55 </xsl:otherwise>
56 </xsl:choose>
57 <xsl:text>?book=mirador</xsl:text>
58 </xsl:attribute>
59 (<gsf:icon type="document" style="vertical-align:middle;"/> Mirador Annotate)
60 <!-- <xsl:copy-of select="@value"/> -->
61 <!-- <xsl:apply-templates selet="@*|node()"/> -->
62 </a>
63 </xsl:template>
64
65<!--
66modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message
67-->
68 <xsl:template name="coll-description">
69 <p>
70 <gslib:collectionDescriptionTextAndServicesLinks/>
71 </p>
72 <xsl:variable name="raw_date">
73 <gslib:collectionMeta name="buildDate"/>
74 </xsl:variable>
75 <xsl:variable name="formatted_date">
76 <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/>
77 </xsl:variable>
78 <xsl:variable name="numdocs">
79 <gslib:collectionMeta name="numDocs"/>
80 </xsl:variable>
81 <p>
82 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/>
83 </p>
84 </xsl:template>
85 </format>
86 <search type="lucene">
87 <index name="text">
88 <displayItem lang="en" name="name">text</displayItem>
89 </index>
90 <index name="ex.im.Work,dc.Title,ex.dc.Title,Title">
91 <displayItem lang="en" name="name">titles</displayItem>
92 </index>
93 <index name="Source">
94 <displayItem lang="en" name="name">filenames</displayItem>
95 </index>
96 <defaultIndex name="text"/>
97 <level name="document">
98 <displayItem lang="en" name="name">document</displayItem>
99 </level>
100 <level name="section">
101 <displayItem lang="en" name="name">section</displayItem>
102 </level>
103 <defaultLevel name="document"/>
104 <sort name="rank">
105 <displayItem lang="en" name="name">rank</displayItem>
106 </sort>
107 <sort name="none">
108 <displayItem lang="en" name="name">natural (build) order</displayItem>
109 </sort>
110 <searchType name="plain"/>
111 <searchType name="simpleform"/>
112 <searchType name="advancedform"/>
113 <format>
114 <gsf:template match="documentNode">
115 <td valign="top">
116 <gsf:link type="document">
117 <gsf:icon type="document"/>
118 </gsf:link>
119 </td>
120 <td valign="top">
121 <xsl:call-template name="document-link-mirador" />
122 </td>
123 <td>
124 <gsf:link type="document">
125 <xsl:call-template name="choose-title"/>
126 </gsf:link>
127 </td>
128 </gsf:template>
129 </format>
130 </search>
131 <infodb type="jdbm"/>
132 <import>
133 <pluginList>
134 <plugin name="ZIPPlugin"/>
135 <plugin name="GreenstoneXMLPlugin"/>
136
137 <!--
138 <plugin name="CSVPlugin">
139 <option name="-use_namespace_for_field_names" value="ex.im" />
140 <option name="-OIDtype" value="assigned"/>
141 <option name="-OIDmetadata" value="ex.im.No"/>
142 <option name="-metadata_value_separator" value=","/>
143 <option name="-store_field_values_as_document_text" />
144 </plugin>
145 -->
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 <!--
153 <option name="-converttotype" value="png"/>
154 -->
155 <option name="-screenviewtype" value="png"/>
156 <option name="-thumbnailtype" value="png"/>
157 </plugin>
158
159
160 <plugin name="GoogleVisionImagePlugin">
161 <option name="-enable_cache"/>
162 <option name="-enable_document_ocr"/>
163 <option name="-enable_image_labelling"/>
164 <!--
165 <option name="-block_exp" value="(?i)\.(txt|item)$"/>
166 -->
167 </plugin>
168
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
197 <classifier name="List">
198 <option name="-metadata" value="dc.Title,Title"/>
199 <option name="-partition_type_within_level" value="approximate_size"/>
200 <option name="-numeric_partition_type_within_level" value="approximate_size"/>
201 <option name="-metadata_selection_mode_within_level" value="firstvalue"/>
202 </classifier>
203
204
205 <format>
206 <gsf:template match="documentNode">
207 <td valign="top">
208 <gsf:link type="document">
209 <gsf:choose-metadata>
210 <gsf:metadata name="thumbicon"/>
211 <gsf:metadata name="srcicon"/>
212 <gsf:default>
213 <gsf:icon type="document"/>
214 </gsf:default>
215 </gsf:choose-metadata>
216 </gsf:link>
217 </td>
218
219 <td valign="top">
220 <xsl:call-template name="document-link-mirador"/>
221 </td>
222
223 <td valign="top">
224 <gsf:link type="document">
225 <!--
226 Defined in the global format statement
227 -->
228 <xsl:call-template name="choose-title"/>
229 <gsf:switch>
230 <gsf:metadata name="ex.im.Artist"/>
231 <gsf:when test="exists">, performed by <gsf:metadata name="ex.im.Artist"/></gsf:when>
232 </gsf:switch>
233 <!--
234 <gsf:switch>
235 <gsf:metadata name="Composer"/>
236 <gsf:when test="exists">
237 <i> (Composed by <gsf:metadata name="Composer"/>)</i>
238 </gsf:when>
239 </gsf:switch>
240 -->
241
242 </gsf:link>
243 </td>
244 </gsf:template>
245
246 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
247 <td valign="top">
248 <gsf:link style="static" type="classifier">
249 <gsf:icon type="classifier"/>
250 </gsf:link>
251 </td>
252 <td valign="top">
253 <gsf:link type="classifier">
254 <gsf:metadata name="Title"/>
255 </gsf:link>
256 </td>
257 </gsf:template>
258
259 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
260 <gsf:link style="static" type="classifier">
261 <gsf:metadata name="Title"/>
262 </gsf:link>
263 </gsf:template>
264 </format>
265 </browse>
266 <display>
267 <format>
268 <gsf:option name="TOC" value="true"/>
269 <gsf:option name="allowUserComments" value="true"/>
270 <gsf:option name="allowDocumentEditing" value="true"/>
271 <gsf:option name="allowMapGPSEditing" value="true"/>
272<!--
273Overwriting this template allows you to change the heading of the document.
274-->
275<!--
276 <gsf:template name="documentHeading">
277 <span style="font-weight:italic; font-size: 120%;">
278 <xsl:call-template name="choose-title"/>
279 </span>
280 </gsf:template>
281-->
282
283 <xsl:template name="documentHeading">
284
285 <gsf:metadata name="HasGoogleVisionDocumentOCRJSON" hidden="true"/>
286 <gsf:metadata name="GVDocumentOCRJSON" hidden="true"/>
287 <gsf:metadata name="Image" hidden="true"/> <!-- **** currently needed to ensure ILT TOC gets Image (rather than Source) metadata ????? -->
288 <span style="font-weight:bold; font-size: 120%;">
289 <xsl:call-template name="choose-title"/>
290 </span>
291 <gsf:metadata-table>
292 <gsf:metadata name="ex.im.No">Catalogue No:</gsf:metadata>
293 <gsf:metadata name="ex.im.Work">Work:</gsf:metadata>
294 <gsf:metadata name="ex.im.Artist">Artist(s):</gsf:metadata>
295 <gsf:metadata name="ex.im.Venue">Venue:</gsf:metadata>
296 <gsf:metadata name="ex.im.Composer">Composer:</gsf:metadata>
297 </gsf:metadata-table>
298 </xsl:template>
299
300
301<!--
302Overwriting 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.
303-->
304<!--
305<gsf:template name="documentContent">
306 <div id="gs-document">
307 <xsl:call-template name="documentPre"/>
308 <xsl:call-template name="wrappedSectionImage"/>
309 <div id="gs-document-text">
310 <xsl:call-template name="documentNodeText"/>
311 </div>
312 </div>
313 </gsf:template>
314-->
315<!--
316Overwriting this template can be used to change the content of section headings.
317-->
318 <gsf:template name="sectionHeading">
319 <xsl:call-template name="choose-title"/>
320 </gsf:template>
321<!--
322Overwriting this template can be used to change the content of the top-level section.
323-->
324<!--
325<gsf:template name="topLevelSectionContent">
326<xsl:call-template name="wrappedSectionImage"/>
327<xsl:call-template name="wrappedSectionText"/>
328</gsf:template>
329-->
330<!--
331Overwriting this template can be used to change the content of sections.
332-->
333<!--
334<gsf:template name="sectionContent">
335<xsl:call-template name="wrappedSectionImage"/>
336<xsl:call-template name="wrappedSectionText"/>
337</gsf:template>
338-->
339 </format>
340 </display>
341 <replaceListRef id="gs2-standard"/>
342 <replaceListRef id="gs2-image"/>
343 <serviceRackList><!-- comment out the following serviceRack if you want to disable RSS for this collection -->
344 <serviceRack name="RSSRetrieve"/><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
345 <serviceRack name="OAIPMH">
346 <setName>intermuseprogammes</setName>
347 <setDescription/><!-- uncomment the following and set the name attribute if
348 you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
349 <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:
350 <metadataFormat metadataPrefix="prefix"/> -->
351 <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat>
352 </ListMetadataFormats>
353 </serviceRack>
354 <serviceRack name="IIIFPMH">
355 <setName>intermuseprogammes</setName>
356 <setDescription/><!-- uncomment the following and set the name attribute if
357 you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
358 <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:
359 <metadataFormat metadataPrefix="prefix"/> -->
360 <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat>
361 </ListMetadataFormats>
362 </serviceRack>
363 </serviceRackList>
364</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.