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

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

Fix to out of date collectionConfig.xml

File size: 17.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="document">
4 <exception>
5 <documentSet name="internal"/>
6 <group name="WMTB"/>
7 </exception>
8 <documentSet name="internal">
9 <match field="dc.Type" type="match">technical</match>
10 <match field="Source" type="regex">.*\.mp4</match>
11 </documentSet>
12 </security>
13 <metadataList>
14 <metadata lang="en" name="creator"/>
15 <metadata lang="en" name="maintainer"/>
16 <metadata lang="en" name="public">true</metadata>
17 </metadataList>
18 <displayItemList>
19 <displayItem assigned="true" lang="en" name="description">A collection of Greenstone 3 learning materials
20and technical docs on server access
21<ul>
22 <li>Tutorials on using Greenstone 3: zoom session videos and presentation slides</li>
23 <li>WMTB server instructions:
24 <ul>
25 <li>installing GS3 on the WMTB server from binary installer and from source,</li>
26 <li>configuring it as a remote Greenstone 3,</li>
27 <li>installing Cher&apos;s work</li>
28 <li>setting up a VPN connection to WMTB for ssh access</li>
29 </ul>
30 </li>
31</ul></displayItem>
32 <displayItem assigned="true" lang="en" name="smallicon">adorableBirdHome.jpg</displayItem>
33 <displayItem assigned="true" lang="en" name="icon">adorableBird.png</displayItem>
34 <displayItem assigned="true" lang="en" name="name">Greenstone 3 learning and technical materials</displayItem>
35 <displayItem assigned="true" lang="en" name="text">text</displayItem>
36 <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,Title">titles</displayItem>
37 <displayItem assigned="true" lang="en" name="dc.Subject">keywords</displayItem>
38 <displayItem assigned="true" lang="en" name="dc.Description">topics</displayItem>
39 <displayItem assigned="true" lang="en" name="Source">filenames</displayItem>
40 <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
41 <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
42 <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
43 <displayItem assigned="true" lang="en" name="document">document</displayItem>
44 <displayItem assigned="true" lang="en" name="section">page</displayItem>
45 <displayItem assigned="true" lang="en" name="shortDescription">gs3tutorials</displayItem>
46 <displayItem assigned="true" lang="en" name=".dc.Subject">_labelSubject_</displayItem>
47 <displayItem assigned="true" lang="en" name=".dc.Description">_labelDescription_</displayItem>
48 <displayItem assigned="true" lang="en" name=".allfields">allfields</displayItem>
49 </displayItemList>
50 <format>
51 <gsf:template name="video-date-length-info"><br/>Date:<gsf:metadata name="dc.Date"/><br/>Duration:<gsf:metadata name="dc.Coverage"/></gsf:template>
52 <gsf:template name="choose-title">
53 <gsf:choose-metadata>
54 <gsf:metadata name="dc.Title"/>
55 <gsf:metadata name="Title"/>
56 <gsf:default>Untitled</gsf:default>
57 </gsf:choose-metadata>
58 </gsf:template>
59<!--
60modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message
61-->
62 <xsl:template name="coll-description">
63 <p>
64 <gslib:collectionDescriptionTextAndServicesLinks/>
65 </p>
66 <xsl:variable name="raw_date">
67 <gslib:collectionMeta name="buildDate"/>
68 </xsl:variable>
69 <xsl:variable name="formatted_date">
70 <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/>
71 </xsl:variable>
72 <xsl:variable name="numdocs">
73 <gslib:collectionMeta name="numDocs"/>
74 </xsl:variable>
75 <p>
76 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/>
77 </p>
78 </xsl:template>
79 </format>
80 <search type="lucene">
81 <level name="document">
82 <displayItem lang="en" name="name">document</displayItem>
83 </level>
84 <level name="section">
85 <displayItem lang="en" name="name">page</displayItem>
86 </level>
87 <defaultLevel name="section"/>
88 <index name="allfields"/>
89 <index name="text">
90 <displayItem lang="en" name="name">text</displayItem>
91 </index>
92 <index name="dc.Title,ex.dc.Title,Title">
93 <displayItem lang="en" name="name">titles</displayItem>
94 </index>
95 <index name="dc.Subject">
96 <displayItem lang="en" name="name">keywords</displayItem>
97 </index>
98 <index name="dc.Description">
99 <displayItem lang="en" name="name">topics</displayItem>
100 </index>
101 <index name="Source">
102 <displayItem lang="en" name="name">filenames</displayItem>
103 </index>
104 <defaultIndex name="allfields"/>
105 <sort name="rank">
106 <displayItem lang="en" name="name">rank</displayItem>
107 </sort>
108 <sort name="none">
109 <displayItem lang="en" name="name">natural (build) order</displayItem>
110 </sort>
111 <searchType name="plain"/>
112 <searchType name="simpleform"/>
113 <searchType name="advancedform"/>
114 <format> <gsf:template match="documentNode">
115 <gsf:switch>
116 <gsf:metadata name="dc.Type"/>
117 <gsf:when test="equals" test-value="video">
118 <td colspan="3" valign="top">
119 <gsf:link type="source">
120 <gsf:metadata name="srcicon"/>
121 </gsf:link>
122 </td>
123 <td>
124 <gsf:link type="source">
125 <xsl:call-template name="choose-title"/>
126 </gsf:link>
127 <xsl:call-template name="video-date-length-info"/>
128 </td>
129 </gsf:when>
130 <gsf:otherwise>
131 <td valign="top">
132 <gsf:link type="document">
133 <gsf:icon type="document"/>
134 </gsf:link>
135 </td>
136 <td valign="top">
137 <gsf:link type="source">
138 <gsf:choose-metadata>
139 <gsf:metadata name="thumbicon"/>
140 <gsf:metadata name="srcicon"/>
141 </gsf:choose-metadata>
142 </gsf:link>
143 </td>
144 <td valign="top">
145 <gsf:metadata name="equivDocLink"/>
146 <gsf:metadata name="equivDocIcon"/>
147 <gsf:metadata name="/equivDocLink"/>
148 </td>
149 <td>
150 <gsf:switch>
151 <gsf:metadata name="Title" select="parent"/>
152 <gsf:when test="exists"><xsl:call-template name="choose-title"/> of<gsf:metadata name="dc.Title" select="root"/></gsf:when>
153 <gsf:otherwise>
154 <gsf:link type="document">
155 <xsl:call-template name="choose-title"/>
156 </gsf:link>
157 <gsf:switch>
158 <gsf:metadata name="dc.Coverage"/>
159 <gsf:when test="exists">
160 - <b><gsf:metadata name="dc.Coverage"/></b>
161 </gsf:when>
162 </gsf:switch>
163 </gsf:otherwise>
164 </gsf:switch>
165 </td>
166 </gsf:otherwise>
167 </gsf:switch>
168 </gsf:template>
169
170</format>
171 </search>
172 <infodb type="jdbm"/>
173 <import>
174 <pluginList>
175 <plugin name="ZIPPlugin"/>
176 <plugin name="GreenstoneXMLPlugin"/>
177 <plugin name="TextPlugin">
178 <option name="-associate_ext" value="mp4"/>
179 </plugin>
180 <plugin name="HTMLPlugin"/>
181 <plugin name="EmailPlugin"/>
182 <plugin name="PDFv2Plugin">
183 <option name="-convert_to" value="paged_pretty_html"/>
184 <option name="-associate_ext" value="odp"/>
185 </plugin>
186 <plugin name="UnknownConverterPlugin">
187 <option name="-exec_cmd" value="java -jar $GSDLHOME/ext/tika/tika-app-*.jar --html --pretty-print --encoding=UTF-8 %%INPUT_FILE > %%OUTPUT"/>
188 <option name="-convert_to" value="html"/>
189 <option name="-mime_type" value="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
190 <option name="-srcicon" value="icondocx"/>
191 <option name="-process_extension" value="docx"/>
192 </plugin>
193 <plugin name="RTFPlugin"/>
194 <plugin name="WordPlugin"/>
195 <plugin name="UnknownPlugin">
196 <option name="-file_format" value="MPEG"/>
197 <option name="-mime_type" value="video/mp4"/>
198 <option name="-srcicon" value="iconmp4"/>
199 <option name="-process_extension" value="mp4"/>
200 </plugin>
201 <plugin name="PostScriptPlugin"/>
202 <plugin name="PowerPointPlugin"/>
203 <plugin name="ExcelPlugin"/>
204 <plugin name="ImagePlugin"/>
205 <plugin name="ISISPlugin"/>
206 <plugin name="NulPlugin"/>
207 <plugin name="OAIPlugin"/>
208 <plugin name="MetadataXMLPlugin"/>
209 <plugin name="ArchivesInfPlugin"/>
210 <plugin name="DirectoryPlugin"/>
211 </pluginList>
212 </import>
213 <browse>
214 <classifier name="List">
215 <option name="-metadata" value="dc.Title,Title"/>
216 <option name="-partition_type_within_level" value="none"/>
217 <option name="-numeric_partition_type_within_level" value="approximate_size"/>
218 <option name="-metadata_selection_mode_within_level" value="firstvalue"/>
219 <option name="-buttonname" value="Titles"/>
220 <option name="-metadata_sort_mode_within_level" value="alphanumeric"/>
221 <format> <gsf:template match="documentNode">
222 <gsf:switch>
223 <gsf:metadata name="dc.Type"/>
224 <gsf:when test="equals" test-value="video">
225 <td valign="top">
226 <gsf:link type="source">
227 <gsf:metadata name="srcicon"/>
228 </gsf:link>
229 </td>
230 <td valign="top">
231 <gsf:link type="source">
232<!--
233Instead of using choose-title here, we want to display the title that the document was classified on
234-->
235 <gsf:metadata name="dc.Title,Title" pos="classifiedBy"/>
236 <gsf:switch>
237 <gsf:metadata name="Source"/>
238 <gsf:when test="exists">
239 <br/>
240 <i>(<gsf:metadata name="Source"/>)</i>
241 </gsf:when>
242 </gsf:switch>
243 </gsf:link>
244 <xsl:call-template name="video-date-length-info"/>
245 </td>
246 </gsf:when>
247 <gsf:otherwise>
248 <td valign="top">
249 <gsf:link type="document">
250 <gsf:icon type="document"/>
251 </gsf:link>
252 </td>
253 <td valign="top">
254 <gsf:link type="source">
255 <gsf:choose-metadata>
256 <gsf:metadata name="thumbicon"/>
257 <gsf:metadata name="srcicon"/>
258 </gsf:choose-metadata>
259 </gsf:link>
260 </td>
261 <td valign="top">
262 <gsf:metadata name="equivDocLink"/>
263 <gsf:metadata name="equivDocIcon"/>
264 <gsf:metadata name="/equivDocLink"/>
265 </td>
266 <td valign="top">
267 <gsf:link type="document">
268<!--
269Instead of using choose-title here, we want to display the title that the document was classified on
270-->
271 <gsf:metadata name="dc.Title,Title" pos="classifiedBy"/>
272 </gsf:link>
273 <gsf:switch>
274 <gsf:metadata name="dc.Coverage"/>
275 <gsf:when test="exists"> -<b><gsf:metadata name="dc.Coverage"/></b></gsf:when>
276 </gsf:switch>
277 <gsf:switch>
278 <gsf:metadata name="Source"/>
279 <gsf:when test="exists">
280 <br/>
281 <i>(<gsf:metadata name="Source"/>)</i>
282 </gsf:when>
283 </gsf:switch>
284 </td>
285 </gsf:otherwise>
286 </gsf:switch>
287 </gsf:template>
288
289</format>
290 </classifier>
291 <classifier name="List">
292 <option name="-metadata" value="dc.Type"/>
293 <option name="-bookshelf_type" value="always"/>
294 <option name="-partition_type_within_level" value="none"/>
295 <option name="-buttonname" value="Type of Materials"/>
296 <option name="-sort_leaf_nodes_using" value="dc.Title"/>
297 <option name="-sort_leaf_nodes_sort_mode" value="alphanumeric"/>
298 </classifier>
299 <classifier name="List">
300 <option name="-metadata" value="dc.Subject"/>
301 <option name="-bookshelf_type" value="always"/>
302 <option name="-partition_type_within_level" value="none"/>
303 <option name="-buttonname" value="Keywords"/>
304 </classifier>
305 <classifier name="List">
306 <option name="-metadata" value="dc.Description"/>
307 <option name="-bookshelf_type" value="always"/>
308 <option name="-partition_type_within_level" value="none"/>
309 <option name="-buttonname" value="Topics"/>
310 </classifier>
311 <classifier name="List">
312 <option name="-metadata" value="Source"/>
313 <option name="-partition_type_within_level" value="none"/>
314 <option name="-numeric_partition_type_within_level" value="approximate_size"/>
315 <option name="-partition_size_within_level" value="20"/>
316 <option name="-buttonname" value="Source"/>
317 </classifier>
318 <format> <gsf:template match="documentNode">
319 <gsf:switch>
320 <gsf:metadata name="dc.Type"/>
321 <gsf:when test="equals" test-value="video">
322 <td valign="top">
323 <gsf:link type="source">
324 <gsf:metadata name="srcicon"/>
325 </gsf:link>
326 </td>
327 <td valign="top">
328 <gsf:link type="source">
329<!--
330Defined in the global format statement
331-->
332 <xsl:call-template name="choose-title"/>
333 <gsf:switch>
334 <gsf:metadata name="Source"/>
335 <gsf:when test="exists">
336 <br/>
337 <i>(<gsf:metadata name="Source"/>)</i>
338 </gsf:when>
339 </gsf:switch>
340 </gsf:link>
341 <xsl:call-template name="video-date-length-info"/>
342 </td>
343 </gsf:when>
344 <gsf:otherwise>
345 <td valign="top">
346 <gsf:link type="document">
347 <gsf:icon type="document"/>
348 </gsf:link>
349 </td>
350 <td valign="top">
351 <gsf:link type="source">
352 <gsf:choose-metadata>
353 <gsf:metadata name="thumbicon"/>
354 <gsf:metadata name="srcicon"/>
355 </gsf:choose-metadata>
356 </gsf:link>
357 </td>
358 <td valign="top">
359 <gsf:metadata name="equivDocLink"/>
360 <gsf:metadata name="equivDocIcon"/>
361 <gsf:metadata name="/equivDocLink"/>
362 </td>
363 <td valign="top">
364 <gsf:link type="document">
365<!--
366Defined in the global format statement
367-->
368 <xsl:call-template name="choose-title"/>
369 </gsf:link>
370 <gsf:switch>
371 <gsf:metadata name="dc.Coverage"/>
372 <gsf:when test="exists"> - <b><gsf:metadata name="dc.Coverage"/></b></gsf:when>
373 </gsf:switch>
374 <gsf:switch>
375 <gsf:metadata name="Source"/>
376 <gsf:when test="exists">
377 <br/>
378 <i>(<gsf:metadata name="Source"/>)</i>
379 </gsf:when>
380 </gsf:switch>
381 </td>
382 </gsf:otherwise>
383 </gsf:switch>
384 </gsf:template>
385 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
386 <td valign="top">
387 <gsf:link style="static" type="classifier">
388 <gsf:icon type="classifier"/>
389 </gsf:link>
390 </td>
391 <td valign="top">
392 <gsf:link type="classifier">
393 <gsf:metadata name="Title"/>
394 </gsf:link>
395 </td>
396 <td valign="top">(<gsf:metadata name="numleafdocs"/>)</td>
397 </gsf:template>
398 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
399 <gsf:link style="static" type="classifier">
400 <gsf:metadata name="Title"/>
401 </gsf:link>
402 </gsf:template>
403
404</format>
405 </browse>
406 <display>
407 <format>
408 <gsf:option name="TOC" value="true"/>
409 <gsf:option name="allowUserComments" value="false"/>
410 <gsf:option name="allowDocumentEditing" value="true"/>
411 <gsf:option name="allowMapGPSEditing" value="true"/>
412<!--
413Overwriting this template allows you to change the heading of the document.
414-->
415<!--
416<gsf:template name="documentHeading">
417<span style="font-weight:bold; font-size: 120%;">
418<xsl:call-template name="choose-title"/>
419</span>
420</gsf:template>
421-->
422<!--
423Overwriting 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.
424-->
425<!--
426<gsf:template name="documentContent">
427<div id="gs-document">
428<xsl:call-template name="documentPre"/>
429<xsl:call-template name="wrappedSectionImage"/>
430<div id="gs-document-text">
431<xsl:call-template name="documentNodeText"/>
432</div>
433</div>
434</gsf:template>
435-->
436<!--
437Overwriting this template can be used to change the content of section headings.
438-->
439 <gsf:template name="sectionHeading">
440 <xsl:call-template name="choose-title"/>
441 </gsf:template>
442<!--
443Overwriting this template can be used to change the content of the top-level section.
444-->
445<!--
446<gsf:template name="topLevelSectionContent">
447<xsl:call-template name="wrappedSectionImage"/>
448<xsl:call-template name="wrappedSectionText"/>
449</gsf:template>
450-->
451<!--
452Overwriting this template can be used to change the content of sections.
453-->
454<!--
455<gsf:template name="sectionContent">
456<xsl:call-template name="wrappedSectionImage"/>
457<xsl:call-template name="wrappedSectionText"/>
458</gsf:template>
459-->
460 </format>
461 </display>
462 <replaceListRef id="gs2-standard"/>
463 <replaceListRef id="gs2-image"/>
464 <serviceRackList><!--
465comment out the following serviceRack if you want to disable RSS for this collection
466-->
467 <serviceRack name="RSSRetrieve"/><!--
468comment out the following serviceRack if you want to disable OAI for this collection
469-->
470 <serviceRack name="OAIPMH">
471 <setName>gs3tutorials</setName>
472 <setDescription/><!--
473uncomment the following and set the name attribute if
474 you want this collection to be part of a super set.
475--><!--
476<oaiSuperSet name="xxx"/>
477-->
478 <ListMetadataFormats><!--
479What 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:
480 <metadataFormat metadataPrefix="prefix"/>
481-->
482 <metadataFormat metadataPrefix="oai_dc"><!--
483you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format
484--></metadataFormat>
485 </ListMetadataFormats>
486 </serviceRack>
487 </serviceRackList>
488</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.