source: main/trunk/model-sites-dev/heritage-nz/collect/reports-2019/etc/collectionConfig.xml@ 33028

Last change on this file since 33028 was 33028, checked in by davidb, 21 months ago

PDF files processed as extracted text; formatting changes to improve the overall presentation/formatting

  • Property svn:mime-type set to text/plain
File size: 15.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:gslib="http://www.greenstone.org/skinning">
3 <metadataList>
4 <metadata name="creator"></metadata>
5 <metadata name="maintainer"></metadata>
6 <metadata name="public">true</metadata>
7 </metadataList>
8 <displayItemList>
9<!--
10 (&lt;gsf:metaname name="numdocs"/&gt; to be precise, and growing)
11-->
12
13 <displayItem assigned="true" lang="en" name="name">PDF Reports</displayItem>
14 <displayItem assigned="true" lang="en" name="description">_about:aboutthiscollection_</displayItem>
15<!--
16 <displayItem assigned="true" lang="en" name="description">
17 &lt;h1&gt;(Unofficial) Archaeological Reports Digital Library&lt;/h1&gt;
18 &lt;b&gt;(Experimental demonstration using Greenstone3)&lt;/b&gt;
19
20 &lt;p&gt;
21 Heritage New Zealand holds an extensive collection
22 of unpublished archaeological reports resulting from
23 site surveys, excavations, research programmes and
24 archaeological authorities. There are over 7000
25 volumes dating from the early 1970s to the present
26 in the collection.
27 &lt;/p&gt;
28
29 &lt;figure class=""&gt;
30 &lt;img src="http://www.heritage.org.nz/-/media/heritage/images/protect/archaeology/digital-library-page.jpg?useCustomFunctions=1&amp;mw=920" width="220" alt="Archaeological digital library" /&gt;
31 &lt;/figure&gt;
32
33 &lt;p&gt;Should you prefer, you may contact us as follows:&lt;/p&gt;
34 &lt;p&gt;Archaeological Digital Library&lt;br&gt;
35 Heritage New Zealand&lt;br&gt;
36 National Office&lt;br&gt;
37 P O Box 2629&lt;br&gt;
38 Wellington 6140&lt;/p&gt;
39 &lt;p&gt;tel: (04) 472 4341&lt;/p&gt;
40
41
42 </displayItem>
43-->
44 <!-- shortDescription is used as a tooltip for collection icon on home page-->
45 <displayItem assigned="true" lang="en" name="shortDescription">Archaeological Reports Digital Library</displayItem>
46 </displayItemList>
47 <!-- Global format statement -->
48 <format>
49 <gsf:template name="choose-title">
50 <gsf:choose-metadata>
51 <gsf:metadata name="dc.Title"/>
52 <gsf:metadata name="exp.Title"/>
53 <gsf:metadata name="ex.dc.Title"/>
54 <gsf:metadata name="Title"/>
55 <gsf:default>Untitled</gsf:default>
56 </gsf:choose-metadata>
57 </gsf:template>
58 </format>
59 <search type="solr">
60 <level name="document">
61 <displayItem lang="en" name="name">document</displayItem>
62 </level>
63<!--
64 <level name="section">
65 <displayItem lang="en" name="name">section</displayItem>
66 </level>
67-->
68 <defaultLevel name="document"/>
69 <index name="text">
70 <displayItem lang="en" name="name">text</displayItem>
71 </index>
72 <index name="dc.Title,ex.dc.Title,Title">
73 <displayItem lang="en" name="name">titles</displayItem>
74 </index>
75 <index name="Author">
76 <displayItem lang="en" name="name">authors</displayItem>
77 </index>
78 <index name="AuthorityNo">
79 <displayItem lang="en" name="name">authority number</displayItem>
80 </index>
81 <index name="SiteNo">
82 <displayItem lang="en" name="name">site number</displayItem>
83 </index>
84
85 <defaultIndex name="text"/>
86 <sort name="rank">
87 <displayItem lang="en" name="name">rank</displayItem>
88 </sort>
89 <sort name="Date">
90 <displayItem lang="en" name="name">year</displayItem>
91 </sort>
92 <sort name="none">
93 <displayItem lang="en" name="name">natural (build) order</displayItem>
94 </sort>
95
96
97 <facet name="TLA">
98 <displayItem lang="en" name="name">Territorial Authorities</displayItem>
99 </facet>
100 <facet name="AuthorityNo">
101 <displayItem lang="en" name="name">Authority Number</displayItem>
102 </facet>
103 <facet name="SiteNo">
104 <displayItem lang="en" name="name">Site Number</displayItem>
105 </facet>
106
107 <searchType name="plain"/>
108 <!--
109 <searchType name="simpleform"/>
110 -->
111 <searchType name="advancedform"/>
112
113 <format>
114 <gsf:template match="documentNode">
115
116 <gsf:switch>
117 <gsf:metadata name="Plugin"/>
118 <gsf:when test="equals" test-value="CSVPlugin">
119 <td valign="top">
120 <gsf:link type="document">
121 <gsf:icon type="document"/>
122 </gsf:link>
123 </td>
124 <td>
125 <gsf:link type="document">
126 <xsl:call-template name="choose-title"/>
127 </gsf:link>
128 </td>
129
130 </gsf:when>
131 <gsf:otherwise>
132 <td valign="top">
133<!--
134 <gsf:link type="document">
135 <gsf:icon type="document"/>
136 </gsf:link>
137-->
138
139 <gsf:link type="source">
140 <gsf:choose-metadata>
141 <gsf:metadata name="thumbicon"/>
142 <gsf:metadata name="srcicon"/>
143 </gsf:choose-metadata>
144 </gsf:link>
145 </td>
146 <td>
147 <gsf:link type="document">
148 <xsl:call-template name="choose-title"/>
149 </gsf:link>
150 </td>
151
152 </gsf:otherwise>
153 </gsf:switch>
154
155
156 </gsf:template>
157 </format>
158 </search>
159
160 <infodb type="gdbm"/>
161
162 <import>
163 <pluginList>
164 <plugin name="ZIPPlugin"/>
165 <plugin name="GreenstoneXMLPlugin"/>
166 <plugin name="MetadataCSVPlugin">
167 <option name="-process_exp" value="\/?PDF-BOUND.*\.csv$"/>
168 <option name="-metadata_value_separator" value="\s*\|\s*"/>
169 </plugin>
170 <plugin name="CSVPlugin">
171 <option name="-process_exp" value="\/?UNBOUND.*\.csv$"/>
172 <option name="-block_exp" value=".*\.xls$"/>
173 <option name="-metadata_value_separator" value="\s*\|\s*"/>
174 </plugin>
175 <plugin name="TextPlugin"/>
176 <plugin name="HTMLPlugin"/>
177 <plugin name="EmailPlugin"/>
178 <plugin name="PDFv2Plugin">
179<!--
180 <option name="-convert_to" value="paged_pretty_html"/>
181-->
182<!--
183 <option name="-convert_to" value="pagedimg_png"/>
184-->
185<!--
186 <option name="-convert_to" value="paged_text"/>
187-->
188 <option name="-convert_to" value="text"/>
189 <option name="-enable_cache"/>
190 </plugin>
191 <plugin name="RTFPlugin"/>
192 <plugin name="WordPlugin"/>
193 <plugin name="PostScriptPlugin"/>
194 <plugin name="PowerPointPlugin"/>
195 <plugin name="ExcelPlugin"/>
196 <plugin name="ImagePlugin"/>
197 <plugin name="ISISPlugin"/>
198 <plugin name="NulPlugin"/>
199 <plugin name="OAIPlugin"/>
200 <plugin name="MetadataXMLPlugin"/>
201 <plugin name="ArchivesInfPlugin"/>
202 <plugin name="DirectoryPlugin"/>
203 </pluginList>
204 <importOption name="OIDtype" value="assigned"/>
205 <importOption name="OIDmetadata" value="hnz.Identifier"/>
206 </import>
207 <browse>
208<!--
209 <classifier name="List">
210 <option name="-metadata" value="dc.Title;Title"/>
211 <option name="-partition_type_within_level" value="approximate_size"/>
212 </classifier>
213
214
215
216 -mingroup <int> The smallest value that will cause a group in the
217 hierarchy to form.
218 Default: 1
219
220 -minnesting <int> The smallest value that will cause a list to be
221 converted into a nested list.
222 Default: 20
223
224 -mincompact <int> Minimum number of documents to be displayed per page.
225 Default: 10
226
227 -maxcompact <int> Maximum number of documents to be displayed per page.
228 Default: 30
229
230-->
231 <classifier name="AZList">
232 <option name="-metadata" value="dc.Title,Title"/>
233<!--
234 <option name="-removeprefix" value="\&quot;|\'|\(|(\d+\s*)"/>
235-->
236 <option name="-removeprefix" value="\&quot;|\'|\(|(\d+\s*)|(\d+\w*\s+and\s+\d+\w*)"/>
237 <option name="-removesuffix" value="\):.*$"/>
238 </classifier>
239<!--
240 <classifier name="AZCompactList">
241 <option name="-metadata" value="dc.Title,Title"/>
242 <option name="-removeprefix" value="\&quot;|\'|\(|(\d+\s*)|(\d+\s+and\d+)"/>
243 <option name="-removesuffix" value="\s*:.*$"/>
244 <option name="-mingroup" value="2"/>
245 <option name="-maxcompact" value="100"/>
246 </classifier>
247-->
248 <classifier name="AZCompactList">
249 <option name="-metadata" value="Author"/>
250 </classifier>
251 <classifier name="DateList">
252 <option name="-metadata" value="Date"/>
253 </classifier>
254
255 <classifier name="AZCompactList">
256 <option name="-metadata" value="TLA"/>
257 <option name="-buttonname" value="Territorial Authorities"/>
258 <option name="-maxcompact" value="200"/>
259 </classifier>
260
261 <classifier name="AZCompactList">
262 <option name="-metadata" value="AuthorityNo"/>
263 <option name="-buttonname" value="Authority Number"/>
264 </classifier>
265
266 <classifier name="AZCompactList">
267 <option name="-metadata" value="SiteNo"/>
268 <option name="-buttonname" value="Site Number"/>
269 </classifier>
270
271 <format>
272 <gsf:template match="documentNode">
273
274 <gsf:switch>
275 <gsf:metadata name="Plugin"/>
276 <gsf:when test="equals" test-value="CSVPlugin">
277 <td valign="top">
278 <gsf:link type="document">
279 <gsf:icon type="document"/>
280 </gsf:link>
281 </td>
282 <td valign="top">
283 <gsf:link type="document">
284 <!-- Defined in the global format statement -->
285 <xsl:call-template name="choose-title"/>
286 <gsf:switch>
287 <gsf:metadata name="Date"/>
288 <gsf:when test="exists">&#160;<i>(<gsf:metadata name="Date"/>)</i></gsf:when>
289 </gsf:switch>
290 </gsf:link>
291 </td>
292
293 </gsf:when>
294 <gsf:otherwise>
295 <td valign="top">
296<!--
297 <gsf:link type="document">
298 <gsf:icon type="document"/>
299 </gsf:link>
300-->
301
302 <gsf:link type="source">
303 <gsf:choose-metadata>
304 <gsf:metadata name="thumbicon"/>
305 <gsf:metadata name="srcicon"/>
306 </gsf:choose-metadata>
307 </gsf:link>
308 </td>
309 <td valign="top">
310 <gsf:link type="document">
311 <!-- Defined in the global format statement -->
312 <xsl:call-template name="choose-title"/>
313 <gsf:switch>
314 <gsf:metadata name="Date"/>
315 <gsf:when test="exists">&#160;<i>(<gsf:metadata name="Date"/>)</i></gsf:when>
316 </gsf:switch>
317 </gsf:link>
318 </td>
319
320 </gsf:otherwise>
321 </gsf:switch>
322
323 </gsf:template>
324 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
325 <td valign="top">
326 <gsf:link type="classifier">
327 <gsf:icon type="classifier"/>
328 </gsf:link>
329 </td>
330 <td valign="top">
331 <gsf:metadata name="Title"/>
332 </td>
333 </gsf:template>
334 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
335 <gsf:link type="classifier">
336 <gsf:metadata name="Title"/>
337 </gsf:link>
338 </gsf:template>
339 </format>
340 </browse>
341 <display>
342 <format>
343 <gsf:option name="TOC" value="true"/>
344
345 <!--
346 Overwriting this template allows you to change the heading of the document.
347 -->
348 <gsf:template name="documentHeading">
349 <gsf:switch>
350 <gsf:metadata name="srcicon"/>
351 <gsf:when test="exists">
352 <gsf:link type="source">
353 <gsf:metadata name="srcicon"/>
354 </gsf:link>
355 </gsf:when>
356 </gsf:switch>
357
358 <span style="font-weight:bold; font-size: 120%;">
359 <xsl:call-template name="choose-title"/>
360 </span>
361 </gsf:template>
362
363
364 <!--
365 Overwriting this template can be used to redefine the content of the whole document.
366 This is useful for simple documents, but not recommended for more complex documents
367 (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
368 -->
369
370 <gsf:template name="documentContentMetadataTable">
371 <style>
372 tr:nth-child(odd) {background: #dddddd}
373 tr:nth-child(even) {background: #f5f3e5}
374 i { font-style: italic; }
375 td { padding: 2px; }
376 </style>
377 <table>
378 <tbody>
379 <tr>
380 <td>
381 Identifier:
382 </td>
383 <td>
384 <i><gsf:metadata name="hnz.Identifier"/></i>
385 </td>
386 </tr>
387
388 <tr>
389 <td>
390 Title:
391 </td>
392 <td>
393 <i>
394 <!--
395 <gsf:link type="source">
396 <gsf:metadata name="srcicon"/>
397 </gsf:link>
398 -->
399 <gsf:metadata name="dc.Title" highlight="true"/>
400
401 </i>
402 </td>
403 </tr>
404
405 <tr>
406 <td>
407 Author(s):
408 </td>
409 <td>
410 <gsf:foreach-metadata name="Author" separator="; ">
411 <i><gsf:meta-value/></i>
412 </gsf:foreach-metadata>
413 </td>
414 </tr>
415
416 <tr>
417 <td>
418 Date:
419 </td>
420 <td>
421 <i><gsf:metadata name="Date"/></i>
422 </td>
423 </tr>
424
425 <tr>
426 <td>
427 Territorial Authorities:
428 </td>
429 <td>
430 <i><gsf:metadata name="TLA"/></i>
431 </td>
432 </tr>
433
434 <tr>
435 <td>
436 Authority No:
437 </td>
438 <td>
439 <i><gsf:metadata name="AuthorityNo"/></i>
440 </td>
441 </tr>
442
443 <tr>
444 <td>
445 Site No:
446 </td>
447 <td>
448 <i><gsf:metadata name="SiteNo"/></i>
449 </td>
450 </tr>
451 </tbody>
452 </table>
453
454 </gsf:template>
455
456 <gsf:template name="documentContent">
457 <gsf:switch>
458 <gsf:metadata name="Plugin"/>
459 <gsf:when test="equals" test-value="CSVPlugin">
460 <xsl:call-template name="documentContentMetadataTable" />
461 </gsf:when>
462 <gsf:otherwise>
463
464 <gsf:switch>
465 <gsf:metadata name="Plugin"/>
466 <gsf:when test="equals" test-value="PDFv2Plugin">
467 <xsl:call-template name="documentContentMetadataTable" />
468 </gsf:when>
469 <gsf:otherwise>
470 <xsl:call-template name="wrappedSectionImage"/>
471 <xsl:call-template name="wrappedSectionText"/>
472 </gsf:otherwise>
473 </gsf:switch>
474
475 </gsf:otherwise>
476 </gsf:switch>
477 </gsf:template>
478<!--
479 <gsf:template name="wrappedDocument">
480 <xsl:call-template name="documentHeading"/><br/>
481 <xsl:call-template name="documentContent"/>
482 </gsf:template>
483-->
484 <!--
485 Overwriting this template can be used to change the content of section headings.
486 -->
487 <!--
488 <gsf:template name="sectionHeading">
489 <xsl:call-template name="choose-title"/>
490 </gsf:template>
491 -->
492
493 <!--
494 Overwriting this template can be used to change the content of the top-level section.
495 -->
496 <!--
497 <gsf:template name="topLevelSectionContent">
498
499 <xsl:call-template name="wrappedSectionImage"/>
500 <xsl:call-template name="wrappedSectionText"/>
501 </gsf:template>
502 -->
503
504 <!--
505 Overwriting this template can be used to change the content of sections.
506 -->
507 <!--
508 <gsf:template name="sectionContent">
509 <xsl:call-template name="wrappedSectionImage"/>
510 <xsl:call-template name="wrappedSectionText"/>
511 </gsf:template>
512 -->
513 </format>
514 </display>
515 <replaceListRef id="gs2-standard"/>
516 <replaceListRef id="gs2-image" />
517 <security default_access="public" scope="document" humanVerify="true" useRecaptcha="true"/>
518
519 <serviceRackList>
520 <!-- comment out the following serviceRack if you want to disable RSS for this collection -->
521 <serviceRack name="RSSRetrieve"/>
522 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
523 <serviceRack name="OAIPMH">
524 <setName>reports</setName>
525 <setDescription></setDescription>
526 <!-- uncomment the following and set the name attribute if
527 you want this collection to be part of a super set. -->
528 <!--<oaiSuperSet name="xxx"/>-->
529 <ListMetadataFormats>
530 <!--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:
531 <metadataFormat metadataPrefix="prefix"/> -->
532
533 <metadataFormat metadataPrefix="oai_dc">
534 <!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format-->
535 </metadataFormat>
536 </ListMetadataFormats>
537 </serviceRack>
538 </serviceRackList>
539</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.