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

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