source: main/trunk/model-sites-dev/hauraki-dl/collect/ocr-tribunal/etc/collectionConfig.xml@ 32598

Last change on this file since 32598 was 32598, checked in by davidb, 5 years ago

Config files for Hauraki DL collections

File size: 13.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 <metadataList>
4 <metadata lang="en" name="creator"/>
5 <metadata lang="en" name="maintainer"/>
6 <metadata lang="en" name="public">true</metadata>
7 </metadataList>
8 <displayItemList>
9 <displayItem assigned="true" lang="en" name="name">Ngā Kerēme / Hauraki Treaty of Waitangi Claims</displayItem>
10 <displayItem assigned="true" lang="en" name="text">text</displayItem>
11 <displayItem assigned="true" lang="en" name="Title">Title</displayItem>
12 <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
13 <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
14 <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
15 <displayItem assigned="true" lang="en" name="section">page</displayItem>
16 <displayItem assigned="true" lang="en" name=".text">text</displayItem>
17 <displayItem assigned="true" lang="en" name=".section">page</displayItem>
18 <displayItem assigned="true" lang="en" name=".Title">titles</displayItem>
19 <displayItem assigned="true" lang="en" name="depositormetadata">{"name":"dc.Title","label":"Title","tooltip":"dc.Title: A name given to the resource.","type":"text"}, {"name":"dc.Creator","label":"Creator","tooltip":"dc.Creator: An entity primarily responsible for making the content of the resource.","type":"text"}, {"name":"dc.Description","label":"Description","tooltip":"dc.Description: An account of the content of the resource.","type":"text"}</displayItem>
20 </displayItemList>
21 <format/>
22 <search type="mgpp">
23 <level name="section">
24 <displayItem lang="en" name="name">page</displayItem>
25 </level>
26 <defaultLevel name="section"/>
27 <index name="text">
28 <displayItem lang="en" name="name">text</displayItem>
29 </index>
30 <index name="Title">
31 <displayItem lang="en" name="name">Title</displayItem>
32 </index>
33 <defaultIndex name="text"/>
34 <indexOption name="accentfold"/>
35 <indexOption name="casefold"/>
36 <indexOption name="stem"/>
37 <searchType name="plain"/>
38 <searchType name="simpleform"/>
39 <searchType name="advancedform"/>
40 <format>
41 <gsf:template match="documentNode">
42 <gsf:format-gs2><![CDATA[
43<td style="padding-top: 10px; padding-bottom: 10px;">
44<table style="float: right">
45<tr>
46<td> {If}{[parent(Top):hdl.SourceFile],
47<a href='_httpcollection_/index/assoc/[parent(Top):assocfilepath]/[parent(Top):hdl.SourceFile]'>
48<img width="24" height="24" src="_httpimages_/hauraki/pdf_file_48.png" alt="Download PDF">
49</a>
50</td>
51<td> ,
52<td colspan="2">} [link][icon][/link]
53</td>
54</tr>
55</table>
56</td>
57<td style="padding-top: 10px; padding-bottom: 10px;"> [link]{If}{[parent(Top):hdl.InquiryTitle], [parent(Top):hdl.InquiryTitle] - {If}{[Title], Page [Title]} , {If}{[dc.Identifier],[dc.Identifier]: }{If}{[parent(Top):dc.Title],[parent(Top):dc.Title]\, ,{If}{[parent(Top):Title],[parent(Top):Title]\, }}{If}{[parent:Title],[parent:Title]\, Page }{Or}{[dc.Title],[Title]} } [/link]
58<br /> {If}{[parent(Top):dc.InquiryName], [parent(Top):dc.InquiryName]{If}{[parent(Top):dc.Type],; }}{If}{[parent(Top):dc.Type],[parent(Top):dc.Type]}
59</td>]]></gsf:format-gs2>
60 <td style="padding-top: 10px; padding-bottom: 10px;">
61 <table style="float: right">
62 <tr>
63 <td>
64 <gsf:switch>
65 <gsf:metadata name="hdl.SourceFile"/>
66 <gsf:when test="exists">
67 <a>
68 <xsl:attribute name="href"><xsl:value-of select="$httpPath"/>/index/assoc/<gsf:metadata name="assocfilepath" pos="1"/>/<gsf:metadata name="hdl.SourceFile"/></xsl:attribute>
69 </a>
70 <img alt="Download PDF" height="24" src="_httpimages_/hauraki/pdf_file_48.png" width="24"/>
71 </gsf:when>
72 </gsf:switch>
73 </td>
74 <td>
75 <gsf:otherwise>
76 <table>
77 <tr>
78 <td colspan="2"/>
79 </tr>
80 </table>
81 </gsf:otherwise>
82 <gsf:link type="document">
83 <gsf:icon type="document"/>
84 </gsf:link>
85 </td>
86 </tr>
87 </table>
88 </td>
89 <td style="padding-top: 10px; padding-bottom: 10px;">
90 <gsf:link type="document">
91 <gsf:switch>
92 <gsf:metadata name="hdl.InquiryTitle" select="root"/>
93 <gsf:when test="exists"><gsf:metadata name="hdl.InquiryTitle" select="root"/> -<gsf:switch><gsf:metadata name="Title"/><gsf:when test="exists">Page<gsf:metadata name="Title"/></gsf:when></gsf:switch></gsf:when>
94 <gsf:otherwise>
95 <gsf:switch>
96 <gsf:metadata name="dc.Identifier"/>
97 <gsf:when test="exists"><gsf:metadata name="dc.Identifier"/>:</gsf:when>
98 </gsf:switch>
99 <gsf:switch>
100 <gsf:metadata name="dc.Title" select="root"/>
101 <gsf:when test="exists"><gsf:metadata name="dc.Title" select="root"/>,</gsf:when>
102 <gsf:otherwise>
103 <gsf:switch>
104 <gsf:metadata name="Title" select="root"/>
105 <gsf:when test="exists"><gsf:metadata name="Title" select="root"/>,</gsf:when>
106 </gsf:switch>
107 </gsf:otherwise>
108 </gsf:switch>
109 <gsf:switch>
110 <gsf:metadata name="Title" select="parent"/>
111 <gsf:when test="exists"><gsf:metadata name="Title" select="parent"/>, Page</gsf:when>
112 </gsf:switch>
113 <gsf:choose-metadata>
114 <gsf:metadata name="dc.Title"/>
115 <gsf:metadata name="Title"/>
116 </gsf:choose-metadata>
117 </gsf:otherwise>
118 </gsf:switch>
119 </gsf:link>
120 <br/>
121 <gsf:switch>
122 <gsf:metadata name="dc.InquiryName" select="root"/>
123 <gsf:when test="exists">
124 <gsf:metadata name="dc.InquiryName" select="root"/>
125 <gsf:switch>
126 <gsf:metadata name="dc.Type" select="root"/>
127 <gsf:when test="exists">;</gsf:when>
128 </gsf:switch>
129 </gsf:when>
130 </gsf:switch>
131 <gsf:switch>
132 <gsf:metadata name="dc.Type" select="root"/>
133 <gsf:when test="exists">
134 <gsf:metadata name="dc.Type" select="root"/>
135 </gsf:when>
136 </gsf:switch>
137 </td>
138 </gsf:template>
139 </format>
140 </search>
141 <infodb type="gdbm"/>
142 <import>
143 <pluginList>
144 <plugin name="ZIPPlugin"/>
145 <plugin name="GreenstoneXMLPlugin"/>
146 <plugin name="PagedImagePlugin">
147 <option name="-screenviewtype" value="gif"/>
148 <option name="-screenviewsize" value="800"/>
149 <option name="-create_thumbnail" value="false"/>
150 <option name="-enable_cache"/>
151 <option name="-block_exp" value="(?i)(\.jpe?g|\.gif|\.png|\.tif?f|\.te?xt|\.html?|\.css|\.opd|~)$"/>
152 <option name="-documenttype" value="paged"/>
153 </plugin>
154 <plugin name="EmailPlugin"/>
155 <plugin name="RTFPlugin"/>
156 <plugin name="WordPlugin"/>
157 <plugin name="PostScriptPlugin"/>
158 <plugin name="ISISPlugin"/>
159 <plugin name="NulPlugin"/>
160 <plugin name="MetadataXMLPlugin"/>
161 <plugin name="ArchivesInfPlugin"/>
162 <plugin name="DirectoryPlugin"/>
163 </pluginList>
164 </import>
165 <browse>
166 <classifier name="List">
167 <option name="-metadata" value="dc.InquiryName/dc.Type/hdl.InquiryTitle;Title"/>
168 <option name="-buttonname" value="Browse"/>
169 <option name="-bookshelf_type" value="duplicate_only"/>
170 <option name="-sort_leaf_nodes_using" value="Title"/>
171 <format>
172 <gsf:template match="documentNode">
173 <gsf:format-gs2><![CDATA[
174<td style="{If}{[numleafdocs],padding-top:5px; padding-bottom: 5px,padding-top: 10px; padding-bottom: 10px;}">{If}{[srcicon],[srclink][srcicon][/srclink],[link][icon][/link]}
175</td>
176<td style="{If}{[numleafdocs],padding-top:5px; padding-bottom: 5px,padding-top: 10px; padding-bottom: 10px;}">{If}{[numleafdocs],{If}{[numleafdocs] eq 0,[Title],[link][Title] ([numleafdocs])[/link]},[link]{If}{[dc.Identifier],[dc.Identifier]: }{Or}{[dc.Title],[hdl.InquiryTitle],[Title]}}[/link]
177</td>]]></gsf:format-gs2>
178 <td style="padding-top: 10px; padding-bottom: 10px;">
179 <gsf:switch>
180 <gsf:metadata name="srcicon"/>
181 <gsf:when test="exists">
182 <gsf:link type="source">
183 <gsf:metadata name="srcicon"/>
184 </gsf:link>
185 </gsf:when>
186 <gsf:otherwise>
187 <gsf:link type="document">
188 <gsf:icon type="document"/>
189 </gsf:link>
190 </gsf:otherwise>
191 </gsf:switch>
192 </td>
193 <td style="padding-top: 10px; padding-bottom: 10px;">
194 <gsf:link type="document">
195 <gsf:switch>
196 <gsf:metadata name="dc.Identifier"/>
197 <gsf:when test="exists"><gsf:metadata name="dc.Identifier"/>:</gsf:when>
198 </gsf:switch>
199 <gsf:choose-metadata>
200 <gsf:metadata name="dc.Title"/>
201 <gsf:metadata name="hdl.InquiryTitle"/>
202 <gsf:metadata name="Title"/>
203 </gsf:choose-metadata>
204 </gsf:link>
205 </td>
206 </gsf:template>
207 <gsf:template match="classifierNode">
208 <gsf:format-gs2><![CDATA[
209<td style="{If}{[numleafdocs],padding-top:5px; padding-bottom: 5px,padding-top: 10px; padding-bottom: 10px;}">{If}{[srcicon],[srclink][srcicon][/srclink],[link][icon][/link]}
210</td>
211<td style="{If}{[numleafdocs],padding-top:5px; padding-bottom: 5px,padding-top: 10px; padding-bottom: 10px;}">{If}{[numleafdocs],{If}{[numleafdocs] eq 0,[Title],[link][Title] ([numleafdocs])[/link]},[link]{If}{[dc.Identifier],[dc.Identifier]: }{Or}{[dc.Title],[hdl.InquiryTitle],[Title]}}[/link]
212</td>]]></gsf:format-gs2>
213<!--
214<table>
215 <tr>
216-->
217 <td style="padding-top:5px; padding-bottom: 5px">
218 <gsf:switch>
219 <gsf:metadata name="srcicon"/>
220 <gsf:when test="exists">
221 <gsf:link type="source">
222 <gsf:metadata name="srcicon"/>
223 </gsf:link>
224 </gsf:when>
225 <gsf:otherwise>
226 <gsf:link type="classifier">
227 <gsf:icon type="classifier"/>
228 </gsf:link>
229 </gsf:otherwise>
230 </gsf:switch>
231 </td>
232 <td style="padding-top:5px; padding-bottom: 5px">
233 <gsf:switch>
234 <gsf:metadata name="numleafdocs"/>
235 <gsf:when test="equals" test-value="0">
236 <gsf:metadata name="Title"/>
237 </gsf:when>
238 <gsf:otherwise>
239 <gsf:link type="classifier"><gsf:metadata name="Title"/> (<gsf:metadata name="numleafdocs"/>)</gsf:link>
240 </gsf:otherwise>
241 </gsf:switch>
242 </td>
243<!--
244</tr>
245 </table>
246-->
247 </gsf:template>
248 </format>
249 </classifier>
250 <format>
251 <gsf:template match="documentNode">
252 <gsf:format-gs2><![CDATA[
253<td valign="top">{If}{[srcicon],[srclink][srcicon][/srclink],[link][icon][/link]}
254</td>
255<td valign="top">[highlight] {Or}{[hdl.InquiryTitle],[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]
256</td>]]></gsf:format-gs2>
257 <td valign="top">
258 <gsf:switch>
259 <gsf:metadata name="srcicon"/>
260 <gsf:when test="exists">
261 <gsf:link type="source">
262 <gsf:metadata name="srcicon"/>
263 </gsf:link>
264 </gsf:when>
265 <gsf:otherwise>
266 <gsf:link type="document">
267 <gsf:icon type="document"/>
268 </gsf:link>
269 </gsf:otherwise>
270 </gsf:switch>
271 </td>
272 <td valign="top">
273 <span class="highlight">
274 <gsf:choose-metadata><gsf:metadata name="hdl.InquiryTitle"/><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
275 </span>
276 </td>
277 </gsf:template>
278 <gsf:template match="classifierNode">
279 <gsf:format-gs2><![CDATA[
280<td valign="top">{If}{[srcicon],[srclink][srcicon][/srclink],[link][icon][/link]}
281</td>
282<td valign="top">[highlight] {Or}{[hdl.InquiryTitle],[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]
283</td>]]></gsf:format-gs2>
284 <td valign="top">
285 <gsf:switch>
286 <gsf:metadata name="srcicon"/>
287 <gsf:when test="exists">
288 <gsf:link type="source">
289 <gsf:metadata name="srcicon"/>
290 </gsf:link>
291 </gsf:when>
292 <gsf:otherwise>
293 <gsf:link type="classifier">
294 <gsf:icon type="classifier"/>
295 </gsf:link>
296 </gsf:otherwise>
297 </gsf:switch>
298 </td>
299 <td valign="top">
300 <span class="highlight">
301 <gsf:choose-metadata><gsf:metadata name="hdl.InquiryTitle"/><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
302 </span>
303 </td>
304 </gsf:template>
305 <gsf:template match="classifierNode" mode="horizontal">
306 <gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
307 <gsf:link type="classifier">
308 <span class="highlight">
309 <gsf:metadata name="Title"/>
310 </span>
311 </gsf:link>
312 </gsf:template>
313 </format>
314 </browse>
315 <display>
316 <format>
317 <gsf:option name="TOC" value="true"/>
318 <gsf:option name="AllowUserComments" value="false"/>
319<!--
320Overwriting this template allows you to change the heading of the document.
321-->
322<!--
323<gsf:template name="documentHeading">
324<span style="font-weight:bold; font-size: 120%;">
325<xsl:call-template name="choose-title"/>
326</span>
327</gsf:template>
328-->
329<!--
330Overwriting 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.
331-->
332<!--
333<gsf:template name="documentContent">
334<xsl:call-template name="wrappedSectionImage"/>
335<xsl:call-template name="wrappedSectionText"/>
336</gsf:template>
337-->
338<!--
339Overwriting this template can be used to change the content of section headings.
340-->
341<!--
342<gsf:template name="sectionHeading">
343<xsl:call-template name="choose-title"/>
344</gsf:template>
345-->
346<!--
347Overwriting this template can be used to change the content of the top-level section.
348-->
349<!--
350<gsf:template name="topLevelSectionContent">
351<xsl:call-template name="wrappedSectionImage"/>
352<xsl:call-template name="wrappedSectionText"/>
353</gsf:template>
354-->
355<!--
356Overwriting this template can be used to change the content of sections.
357-->
358<!--
359<gsf:template name="sectionContent">
360<xsl:call-template name="wrappedSectionImage"/>
361<xsl:call-template name="wrappedSectionText"/>
362</gsf:template>
363-->
364 </format>
365 </display>
366 <replaceListRef id="gs2-standard"/>
367 <replaceListRef id="gs2-image"/>
368</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.