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

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

Collection design and metadata for the demonstration/test but also archival GS3tutorials collection on WMTB.

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