source: main/trunk/model-sites-dev/opotiki/collect/waiatade/etc/collectionConfig.xml@ 34206

Last change on this file since 34206 was 34206, checked in by ak19, 4 years ago

UnknownConverterPlugin configured to use Tika for doc processing

File size: 15.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="private" scope="collection">
4 <exception>
5 <group name="group"/>
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 assigned="true" lang="en" name="description">A Collection of Waiata.
15Songs (waiata) are sung solo, in unison or at the octave.
16Types of song include lullabies (oriori), love songs (waiata aroha) and laments (waiata tangi).
17Traditionally all formal speeches are followed by a waiata sung by the speaker and their group of supporters.
18Some of the smaller wind instruments are also sung into, and the sound of the poi (raupo ball swung on the end of a flax cord) provides a rhythmic accompaniment to waiata poi.</displayItem>
19 <displayItem assigned="true" lang="en" name="name">Kohinga Waiata: Song Collections</displayItem>
20 <displayItem assigned="true" lang="en" name="text">text</displayItem>
21 <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,Title">titles</displayItem>
22 <displayItem assigned="true" lang="en" name="dc.Format">format</displayItem>
23 <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
24 <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
25 <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
26 <displayItem assigned="true" lang="en" name="document">document</displayItem>
27 <displayItem assigned="true" lang="en" name="section">section</displayItem>
28 <displayItem assigned="true" lang="en" name="Source">filenames</displayItem>
29 <displayItem assigned="true" lang="en" name="shortDescription">demow</displayItem>
30 <displayItem assigned="true" lang="en" name=".dc.Format">_labelFormat_</displayItem>
31 </displayItemList>
32 <format>
33 <gsf:template name="choose-title">
34 <gsf:choose-metadata>
35 <gsf:metadata name="dc.Title"/>
36 <gsf:default>Untitled</gsf:default>
37 </gsf:choose-metadata>
38 </gsf:template>
39 </format>
40 <search type="mgpp">
41 <level name="document">
42 <displayItem lang="en" name="name">document</displayItem>
43 </level>
44 <level name="section">
45 <displayItem lang="en" name="name">section</displayItem>
46 </level>
47 <defaultLevel name="document"/>
48 <index name="text">
49 <displayItem lang="en" name="name">text</displayItem>
50 </index>
51 <index name="dc.Title,ex.dc.Title,Title">
52 <displayItem lang="en" name="name">titles</displayItem>
53 </index>
54 <index name="dc.Format">
55 <displayItem lang="en" name="name">format</displayItem>
56 </index>
57 <defaultIndex name="text"/>
58 <indexOption name="separate_cjk"/>
59 <indexOption name="accentfold"/>
60 <indexOption name="casefold"/>
61 <indexOption name="stem"/>
62 <searchType name="plain"/>
63 <searchType name="simpleform"/>
64 <searchType name="advancedform"/>
65 <format>
66 <gsf:template match="documentNode">
67 <td valign="top">
68 <gsf:link type="document">
69 <gsf:icon type="document"/>
70 </gsf:link>
71 </td>
72 <td>
73 <gsf:link type="document">
74 <xsl:call-template name="choose-title"/>
75 </gsf:link>
76 </td>
77 </gsf:template>
78 </format>
79 </search>
80 <infodb type="jdbm"/>
81 <import>
82 <pluginList>
83 <plugin name="ZIPPlugin"/>
84 <plugin name="GreenstoneXMLPlugin"/>
85 <plugin name="TextPlugin"/>
86 <plugin name="HTMLPlugin"/>
87 <plugin name="EmailPlugin"/>
88 <plugin name="PDFv2Plugin">
89 <option name="-convert_to" value="pagedimg_jpg"/>
90 <option name="-process_exp" value="notext.*\.pdf"/>
91 </plugin>
92 <plugin name="PDFv2Plugin">
93 <option name="-convert_to" value="paged_pretty_html"/>
94 </plugin>
95 <!-- Configuring an UnknownConverterPlugin for docx processing with Tika -->
96 <plugin name="UnknownConverterPlugin">
97 <option name="-exec_cmd" value="java -jar $GSDLHOME/ext/tika/tika-app-1.24.1.jar --html %%INPUT_FILE &gt; %%OUTPUT"/>
98 <option name="-convert_to" value="html"/>
99 <option name="-mime_type" value="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
100 <option name="-srcicon" value="icondocx"/>
101 <option name="-process_extension" value="docx"/>
102 </plugin>
103 <plugin name="RTFPlugin"/>
104 <plugin name="WordPlugin"/>
105 <plugin name="PostScriptPlugin"/>
106 <plugin name="PowerPointPlugin"/>
107 <plugin name="ExcelPlugin"/>
108 <plugin name="ImagePlugin"/>
109 <plugin name="ISISPlugin"/>
110 <plugin name="NulPlugin"/>
111 <plugin name="OAIPlugin"/>
112 <plugin name="MP3Plugin"/>
113 <plugin name="UnknownPlugin"/>
114 <plugin name="MetadataXMLPlugin"/>
115 <plugin name="ArchivesInfPlugin"/>
116 <plugin name="DirectoryPlugin"/>
117 </pluginList>
118 </import>
119 <browse>
120 <classifier name="List">
121 <option name="-metadata" value="dc.Title;Title"/>
122 <option name="-partition_type_within_level" value="approximate_size"/>
123 <option name="-bookshelf_type" value="always"/>
124 <option name="-sort_leaf_nodes_using" value="ex.Title"/>
125 <format>
126 <gsf:template match="documentNode">
127 <td valign="top">
128 <gsf:switch>
129 <gsf:metadata name="dc.Format"/>
130 <gsf:when test="equals" test-value="Audio"><!--
131<gsf:link type="document">
132<gsf:icon file="download.png" select="collection"/>
133</gsf:link>
134-->
135 </gsf:when> <gsf:when test="equals" test-value="Lyrics">
136 <gsf:link type="document">
137 <gsf:icon file="lyrics.png" select="collection"/>
138 </gsf:link>
139 </gsf:when>
140 <gsf:when test="equals" test-value="Song sheet">
141 <gsf:link type="document">
142 <gsf:icon file="tab.gif" select="collection"/>
143 </gsf:link>
144 </gsf:when>
145 <gsf:otherwise>
146 <gsf:link type="document">
147 <gsf:icon type="document"/>
148 </gsf:link>
149 </gsf:otherwise>
150 </gsf:switch>
151 </td>
152 <td valign="top">
153 <gsf:link type="source">
154 <gsf:choose-metadata>
155 <gsf:metadata name="thumbicon"/>
156 <gsf:metadata name="srcicon"/>
157 </gsf:choose-metadata>
158 </gsf:link>
159 </td>
160 <td valign="top">
161 <gsf:link type="document">
162 <xsl:call-template name="choose-title"/>
163 </gsf:link>
164 <gsf:switch>
165 <gsf:metadata name="Source"/>
166 <gsf:when test="exists">
167 <br/>
168 <i>(<gsf:metadata name="dc.Format"/>/<gsf:metadata name="FileFormat"/>)</i>
169 </gsf:when>
170 </gsf:switch>
171 </td>
172 </gsf:template>
173 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
174 <td valign="top">
175 <gsf:link style="static" type="classifier">
176 <gsf:icon type="classifier"/>
177 </gsf:link>
178 </td>
179 <td valign="top">
180 <gsf:link type="classifier">
181 <gsf:metadata name="Title"/>
182 </gsf:link>
183 </td>
184 <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
185 </gsf:template>
186 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
187 <gsf:link type="classifier">
188 <gsf:metadata name="Title"/>
189 </gsf:link>
190 </gsf:template>
191 </format>
192 </classifier>
193 <classifier name="List">
194 <option name="-metadata" value="dc.Format"/>
195 <option name="-bookshelf_type" value="always"/>
196 <option name="-partition_type_within_level" value="none"/>
197 <option name="-sort_leaf_nodes_using" value="ex.Title"/>
198 <option name="-buttonname" value="Browse"/>
199 <option name="-filter_metadata" value="dc.Title"/>
200 <format>
201 <gsf:template match="documentNode">
202 <td valign="top">
203 <gsf:switch>
204 <gsf:metadata name="dc.Format"/>
205 <gsf:when test="equals" test-value="Audio"><!--
206<gsf:link type="document">
207 <gsf:icon file="download.png" select="collection"/>
208 </gsf:link>
209-->
210 </gsf:when> <gsf:when test="equals" test-value="Lyrics">
211 <gsf:link type="document">
212 <gsf:icon file="lyrics.png" select="collection"/>
213 </gsf:link>
214 </gsf:when>
215 <gsf:when test="equals" test-value="Song sheet">
216 <gsf:link type="document">
217 <gsf:icon file="tab.gif" select="collection"/>
218 </gsf:link>
219 </gsf:when>
220 <gsf:otherwise>
221 <gsf:link type="document">
222 <gsf:icon type="document"/>
223 </gsf:link>
224 </gsf:otherwise>
225 </gsf:switch>
226 </td>
227 <td valign="top">
228 <gsf:link type="source">
229 <gsf:choose-metadata>
230 <gsf:metadata name="thumbicon"/>
231 <gsf:metadata name="srcicon"/>
232 </gsf:choose-metadata>
233 </gsf:link>
234 </td>
235 <td valign="top">
236 <gsf:link type="document">
237 <xsl:call-template name="choose-title"/>
238 </gsf:link>
239 <gsf:switch>
240 <gsf:metadata name="Source"/>
241 <gsf:when test="exists">
242 <br/>
243 <i>(<gsf:metadata name="dc.Format"/>/<gsf:metadata name="FileFormat"/>)</i>
244 </gsf:when>
245 </gsf:switch>
246 </td>
247 </gsf:template>
248 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
249 <td valign="top">
250 <gsf:link style="static" type="classifier">
251 <gsf:icon type="classifier"/>
252 </gsf:link>
253 </td>
254 <td valign="top">
255 <gsf:link type="classifier">
256 <gsf:metadata name="Title"/>
257 </gsf:link>
258 </td>
259 <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
260 </gsf:template>
261 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
262 <gsf:link type="classifier">
263 <gsf:metadata name="Title"/>
264 </gsf:link>
265 </gsf:template>
266 </format>
267 </classifier>
268 <classifier name="Hierarchy">
269 <option name="-metadata" value="dc.Subject"/>
270 <option name="-sort" value="dc.Title"/>
271 <option name="-buttonname" value="Genre"/>
272 <format>
273 <gsf:template match="documentNode">
274 <td valign="top">
275 <gsf:switch>
276 <gsf:metadata name="dc.Format"/>
277 <gsf:when test="equals" test-value="Audio"><!--
278<gsf:link type="document">
279<gsf:icon file="download.png" select="collection"/>
280</gsf:link>
281-->
282 </gsf:when> <gsf:when test="equals" test-value="Lyrics">
283 <gsf:link type="document">
284 <gsf:icon file="lyrics.png" select="collection"/>
285 </gsf:link>
286 </gsf:when>
287 <gsf:when test="equals" test-value="Song sheet">
288 <gsf:link type="document">
289 <gsf:icon file="tab.gif" select="collection"/>
290 </gsf:link>
291 </gsf:when>
292 <gsf:otherwise>
293 <gsf:link type="document">
294 <gsf:icon type="document"/>
295 </gsf:link>
296 </gsf:otherwise>
297 </gsf:switch>
298 </td>
299 <td valign="top">
300 <gsf:link type="source">
301 <gsf:choose-metadata>
302 <gsf:metadata name="thumbicon"/>
303 <gsf:metadata name="srcicon"/>
304 </gsf:choose-metadata>
305 </gsf:link>
306 </td>
307 <td valign="top">
308 <gsf:link type="document">
309 <xsl:call-template name="choose-title"/>
310 </gsf:link>
311 <gsf:switch>
312 <gsf:metadata name="Source"/>
313 <gsf:when test="exists">
314 <br/>
315 <i>(<gsf:metadata name="Source"/>)</i>
316 </gsf:when>
317 </gsf:switch>
318 </td>
319 </gsf:template>
320 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
321 <td valign="top">
322 <gsf:link style="static" type="classifier">
323 <gsf:icon type="classifier"/>
324 </gsf:link>
325 </td>
326 <td valign="top">
327 <gsf:link type="classifier">
328 <gsf:metadata name="Title"/>
329 </gsf:link>
330 </td>
331 </gsf:template>
332 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
333 <gsf:link type="classifier">
334 <gsf:metadata name="Title"/>
335 </gsf:link>
336 </gsf:template>
337 </format>
338 </classifier>
339 <format>
340 <gsf:template match="documentNode">
341 <td valign="top">
342 <gsf:link type="document">
343 <gsf:icon type="document"/>
344 </gsf:link>
345 </td>
346 <td valign="top">
347 <gsf:link type="source">
348 <gsf:choose-metadata>
349 <gsf:metadata name="thumbicon"/>
350 <gsf:metadata name="srcicon"/>
351 </gsf:choose-metadata>
352 </gsf:link>
353 </td>
354 <td valign="top">
355 <gsf:link type="document">
356 <xsl:call-template name="choose-title"/>
357 </gsf:link>
358 <gsf:switch>
359 <gsf:metadata name="Source"/>
360 <gsf:when test="exists">
361 <br/>
362 <i>(<gsf:metadata name="Source"/>)</i>
363 </gsf:when>
364 </gsf:switch>
365 </td>
366 </gsf:template>
367 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
368 <td valign="top">
369 <gsf:link style="static" type="classifier">
370 <gsf:icon type="classifier"/>
371 </gsf:link>
372 </td>
373 <td valign="top">
374 <gsf:link type="classifier">
375 <gsf:metadata name="Title"/>
376 </gsf:link>
377 </td>
378 <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
379 </gsf:template>
380 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
381 <gsf:link type="classifier">
382 <gsf:metadata name="Title"/>
383 </gsf:link>
384 </gsf:template>
385 </format>
386 </browse>
387 <display>
388 <format>
389 <gsf:template name="additionalHeaderContent-collection">
390 <style>span.tocSectionTitle{display:none;}</style>
391 </gsf:template>
392 <gsf:option name="TOC" value="true"/>
393 <gsf:option name="AllowUserComments" value="false"/>
394<!--
395Overwriting this template allows you to change the heading of the document.
396-->
397<!--
398<gsf:template name="documentHeading">
399<span style="font-weight:bold; font-size: 120%;">
400<xsl:call-template name="choose-title"/>
401</span>
402</gsf:template>
403-->
404<!--
405Overwriting 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.
406-->
407<!--
408<gsf:template name="documentContent">
409<div id="gs-document">
410<xsl:call-template name="documentPre"/>
411<xsl:call-template name="wrappedSectionImage"/>
412<div id="gs-document-text">
413<xsl:call-template name="documentNodeText"/>
414</div>
415</div>
416</gsf:template>
417-->
418<!--
419Overwriting this template can be used to change the content of section headings.
420-->
421<!--
422<gsf:template name="sectionHeading">
423<xsl:call-template name="choose-title"/>
424</gsf:template>
425-->
426<!--
427Overwriting this template can be used to change the content of the top-level section.
428-->
429<!--
430<gsf:template name="topLevelSectionContent">
431<xsl:call-template name="wrappedSectionImage"/>
432<xsl:call-template name="wrappedSectionText"/>
433</gsf:template>
434-->
435<!--
436Overwriting this template can be used to change the content of sections.
437-->
438<!--
439<gsf:template name="sectionContent">
440<xsl:call-template name="wrappedSectionImage"/>
441<xsl:call-template name="wrappedSectionText"/>
442</gsf:template>
443-->
444 </format>
445 </display>
446 <replaceListRef id="gs2-standard"/>
447 <replaceListRef id="gs2-image"/>
448 <serviceRackList><!-- comment out the following serviceRack if you want to disable RSS for this collection -->
449 <serviceRack name="RSSRetrieve"/><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
450 <serviceRack name="OAIPMH">
451 <setName>demow</setName>
452 <setDescription/><!-- uncomment the following and set the name attribute if
453 you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
454 <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:
455 <metadataFormat metadataPrefix="prefix"/> -->
456 <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat>
457 </ListMetadataFormats>
458 </serviceRack>
459 </serviceRackList>
460</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.