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

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

Series of changes: from earlier on, turning of names of indexes, classifiers etc; IIIF Service; but also the changes to display bounding boxes on all the pages in an Item file in the document view

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