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