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 |
|
---|
4 | <metadataList>
|
---|
5 | <metadata lang="en" name="creator">Greenstone Project</metadata>
|
---|
6 | <metadata lang="en" name="maintainer">Greenstone Project</metadata>
|
---|
7 | <metadata lang="en" name="public">true</metadata>
|
---|
8 | </metadataList>
|
---|
9 | <displayItemList>
|
---|
10 | <displayItem name="name" key="name" dictionary="collectionConfig"/>
|
---|
11 | <displayItem name="name" lang="en">Digital NZ Māori</displayItem>
|
---|
12 | <displayItem assigned="true" lang="en" name="description">
|
---|
13 | <span>Records from <a href="https://digitalnz.org/">Digital NZ Ā-Tihi O Aotearoa</a> tagged as <tt>language=mi</tt> in the Māori language</span>
|
---|
14 | </displayItem>
|
---|
15 | <!--
|
---|
16 | <displayItem assigned="true" lang="en" name="shortDescription">
|
---|
17 | Records from Digital NZ in the Māori language
|
---|
18 | </displayItem>
|
---|
19 | -->
|
---|
20 | <!--
|
---|
21 | <displayItem name="description" key="description" dictionary="collectionConfig"/>
|
---|
22 | -->
|
---|
23 | <!--
|
---|
24 | <displayItem name="shortDescription" key="shortDescription" dictionary="collectionConfig"/>
|
---|
25 | -->
|
---|
26 | </displayItemList>
|
---|
27 |
|
---|
28 | <format>
|
---|
29 | <!-- Define any global format statements here -->
|
---|
30 |
|
---|
31 | <xsl:template name="coll-description">
|
---|
32 | <p>
|
---|
33 | <gslib:collectionDescriptionTextAndServicesLinks/>
|
---|
34 | </p>
|
---|
35 | <xsl:variable name="raw_date">
|
---|
36 | <gslib:collectionMeta name="buildDate"/>
|
---|
37 | </xsl:variable>
|
---|
38 | <xsl:variable name="formatted_date">
|
---|
39 | <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/>
|
---|
40 | </xsl:variable>
|
---|
41 | <xsl:variable name="numdocs">
|
---|
42 | <gslib:collectionMeta name="numDocs"/>
|
---|
43 | </xsl:variable>
|
---|
44 | <p>
|
---|
45 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/>
|
---|
46 | </p>
|
---|
47 | </xsl:template>
|
---|
48 |
|
---|
49 | <!-- Setting the RSS option to true here will display a link to the collection's RSS feed on all
|
---|
50 | pages of the collection. Can include the RSS feed link in section specific format statements
|
---|
51 | too, such as search, if wishing to display the link only in particular sections.-->
|
---|
52 | <gsf:option name="RSS" value="true"/>
|
---|
53 | </format>
|
---|
54 |
|
---|
55 | <search type="solr">
|
---|
56 | <level name="section">
|
---|
57 | <displayItem name="name" key="level.chapter"/>
|
---|
58 | </level>
|
---|
59 | <level name="document">
|
---|
60 | <displayItem name="name" key="level.book"/>
|
---|
61 | </level>
|
---|
62 | <defaultLevel name="section"/>
|
---|
63 | <index name="allfields"/>
|
---|
64 | <index name="text"/>
|
---|
65 | <index name="dnz.title"/>
|
---|
66 | <index name="dnz.category"/>
|
---|
67 | <index name="dnz.creator"/>
|
---|
68 | <sort name="rank"/>
|
---|
69 | <sort name="dnz.creator">
|
---|
70 | <displayItem name="name" key="Creator.buttonname"/>
|
---|
71 | </sort>
|
---|
72 | <sort name="none"/>
|
---|
73 | <facet name="dnz.category">
|
---|
74 | <displayItem name="name" key="Category.buttonname"/>
|
---|
75 | </facet>
|
---|
76 | <searchType name="plain"/>
|
---|
77 | <searchType name="simpleform"/>
|
---|
78 | <searchType name="advancedform"/>
|
---|
79 | <format>
|
---|
80 | <gsf:template match="documentNode">
|
---|
81 | <td valign="top">
|
---|
82 | <gsf:link type="document">
|
---|
83 | <gsf:icon type="document"/>
|
---|
84 | </gsf:link>
|
---|
85 | </td>
|
---|
86 | <td>
|
---|
87 | <gsf:link type="document">
|
---|
88 | <gsf:choose-metadata>
|
---|
89 | <gsf:metadata name="dnz.title"/>
|
---|
90 | <gsf:metadata name="dc.Title"/>
|
---|
91 | <gsf:metadata name="exp.Title"/>
|
---|
92 | <gsf:metadata name="ex.dc.Title"/>
|
---|
93 | <gsf:metadata name="Title"/>
|
---|
94 | <gsf:default>Untitled</gsf:default>
|
---|
95 | </gsf:choose-metadata>
|
---|
96 | </gsf:link>
|
---|
97 | </td>
|
---|
98 |
|
---|
99 | </gsf:template>
|
---|
100 | </format>
|
---|
101 | </search>
|
---|
102 | <infodb type="jdbm"/>
|
---|
103 | <import>
|
---|
104 | <pluginList>
|
---|
105 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
106 | <plugin name="HTMLPlugin">
|
---|
107 | <option name="-description_tags"/>
|
---|
108 | </plugin>
|
---|
109 | <plugin name="MetadataXMLPlugin"/>
|
---|
110 | <plugin name="DNZJSONPlugin"/>
|
---|
111 | <plugin name="ArchivesInfPlugin"/>
|
---|
112 | <plugin name="DirectoryPlugin"/>
|
---|
113 | </pluginList>
|
---|
114 | </import>
|
---|
115 | <!--
|
---|
116 | <importOption name="OIDtype" value="dirname"/>
|
---|
117 | -->
|
---|
118 | <!--
|
---|
119 | <buildOption name="sections_sort_on_document_metadata" value="unless_section_metadata_exists"/>
|
---|
120 | -->
|
---|
121 | <browse>
|
---|
122 | <classifier name="List">
|
---|
123 | <option name="-metadata" value="dnz.title"/>
|
---|
124 | <option name="-partition_type_within_level" value="constant_size"/>
|
---|
125 | </classifier>
|
---|
126 | <classifier name="Hierarchy">
|
---|
127 | <option name="-metadata" value="dnz.category"/>
|
---|
128 | <option name="-sort" value="dnz.title"/>
|
---|
129 | <option name="-buttonname" value="Categories"/>
|
---|
130 | </classifier>
|
---|
131 | <classifier name="List">
|
---|
132 | <option name="-metadata" value="dnz.creator"/>
|
---|
133 | <option name="-sort_leaf_nodes_using" value="dnz.title"/>
|
---|
134 | <option name="-partition_type_within_level" value="constant_size"/>
|
---|
135 | <option name="-bookshelf_type" value="always"/>
|
---|
136 | <option name="-buttonname" value="Authors"/>
|
---|
137 | </classifier>
|
---|
138 | <format>
|
---|
139 | <gsf:template match="documentNode">
|
---|
140 | <td valign="top">
|
---|
141 | <gsf:link type="document">
|
---|
142 | <gsf:icon type="document"/>
|
---|
143 | </gsf:link>
|
---|
144 | </td>
|
---|
145 | <td valign="top">
|
---|
146 | <gsf:link type="document">
|
---|
147 | <gsf:choose-metadata>
|
---|
148 | <gsf:metadata name="dnz.title"/>
|
---|
149 | <gsf:metadata name="dc.Title"/>
|
---|
150 | <gsf:metadata name="Title"/>
|
---|
151 | <gsf:default>Untitled</gsf:default>
|
---|
152 | </gsf:choose-metadata>
|
---|
153 | </gsf:link>
|
---|
154 | </td>
|
---|
155 | </gsf:template>
|
---|
156 | <gsf:template match="classifierNode[@classifierStyle = 'VList']">
|
---|
157 | <td valign="top">
|
---|
158 | <gsf:link type="classifier">
|
---|
159 | <gsf:icon type="classifier"/>
|
---|
160 | </gsf:link>
|
---|
161 | </td>
|
---|
162 | <td valign="top">
|
---|
163 | <gsf:metadata name="Title"/>
|
---|
164 | </td>
|
---|
165 | </gsf:template>
|
---|
166 | <gsf:template match="classifierNode[@classifierStyle = 'HList']">
|
---|
167 | <gsf:link type="classifier">
|
---|
168 | <gsf:metadata name="Title"/>
|
---|
169 | </gsf:link>
|
---|
170 | </gsf:template>
|
---|
171 | </format>
|
---|
172 | </browse>
|
---|
173 | <display>
|
---|
174 | <format>
|
---|
175 | <gsf:option name="TOC" value="true"/>
|
---|
176 |
|
---|
177 | <gsf:headMetaTags>
|
---|
178 | <gsf:metadata name="dnz.title"/>
|
---|
179 | <gsf:metadata name="dnz.category"/>
|
---|
180 | <gsf:metadata name="dnz.creator"/>
|
---|
181 | </gsf:headMetaTags>
|
---|
182 |
|
---|
183 |
|
---|
184 | <gsf:template name="documentContent">
|
---|
185 | <style>
|
---|
186 | tr:nth-child(odd) {background: #dddddd}
|
---|
187 | tr:nth-child(even) {background: #f5f3e5}
|
---|
188 | i { font-style: italic; }
|
---|
189 | td { padding: 2px; }
|
---|
190 | </style>
|
---|
191 | <gsf:switch>
|
---|
192 | <gsf:metadata name="Plugin"/>
|
---|
193 | <gsf:when test="equals" test-value="DNZJSONPlugin">
|
---|
194 | <table>
|
---|
195 | <tbody>
|
---|
196 |
|
---|
197 | <tr>
|
---|
198 | <td>
|
---|
199 | Identifier:
|
---|
200 | </td>
|
---|
201 | <td>
|
---|
202 | <i>
|
---|
203 | <gsf:variable name="landing_url">
|
---|
204 | <gsf:metadata name="dnz.landing_url"/>
|
---|
205 | </gsf:variable>
|
---|
206 | <a href="{$landing_url}">
|
---|
207 | <gsf:metadata name="dnz.id"/>
|
---|
208 | </a>
|
---|
209 | </i>
|
---|
210 | </td>
|
---|
211 | </tr>
|
---|
212 |
|
---|
213 | <tr>
|
---|
214 | <td>
|
---|
215 | Title:
|
---|
216 | </td>
|
---|
217 | <td>
|
---|
218 | <i>
|
---|
219 | <gsf:metadata name="dnz.title" highlight="true"/>
|
---|
220 | </i>
|
---|
221 | </td>
|
---|
222 | </tr>
|
---|
223 |
|
---|
224 | <tr>
|
---|
225 | <td>
|
---|
226 | Author(s):
|
---|
227 | </td>
|
---|
228 | <td>
|
---|
229 | <gsf:foreach-metadata name="dnz.creator" separator="; ">
|
---|
230 | <i><gsf:meta-value/></i>
|
---|
231 | </gsf:foreach-metadata>
|
---|
232 | </td>
|
---|
233 | </tr>
|
---|
234 |
|
---|
235 | <tr>
|
---|
236 | <td>
|
---|
237 | Description:
|
---|
238 | </td>
|
---|
239 | <td>
|
---|
240 | <i>
|
---|
241 | <gsf:metadata name="dnz.description" highlight="true"/>
|
---|
242 | </i>
|
---|
243 | </td>
|
---|
244 | </tr>
|
---|
245 |
|
---|
246 | </tbody>
|
---|
247 | </table>
|
---|
248 | </gsf:when>
|
---|
249 | <gsf:otherwise>
|
---|
250 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
251 | <xsl:call-template name="wrappedSectionText"/>
|
---|
252 | </gsf:otherwise>
|
---|
253 | </gsf:switch>
|
---|
254 | </gsf:template>
|
---|
255 |
|
---|
256 | </format>
|
---|
257 | </display>
|
---|
258 | <replaceListRef id="gs2-standard"/>
|
---|
259 | <serviceRackList>
|
---|
260 | <serviceRack name="RSSRetrieve"/>
|
---|
261 | <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
262 | <serviceRack name="OAIPMH">
|
---|
263 | <setName>Digital NZ Maori</setName>
|
---|
264 | <setDescription>Record in Digital NZ identified is in the Maori language</setDescription>
|
---|
265 | <!-- uncomment the following and set the name attribute if you want this
|
---|
266 | collection to be part of a super set. -->
|
---|
267 | <!--<oaiSuperSet name="xxx"/>-->
|
---|
268 | <ListMetadataFormats>
|
---|
269 | <!--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:
|
---|
270 | <metadataFormat metadataPrefix="prefix"/> -->
|
---|
271 | <metadataFormat metadataPrefix="oai_dc">
|
---|
272 | <!-- a custom mapping as this collection doesn't have exclusive dc metadata --><!-- this will replace the dc:publisher element from the main set -->
|
---|
273 | <element name="dc:publisher">
|
---|
274 | <mapping elements="dnz.creator"/>
|
---|
275 | </element>
|
---|
276 | </metadataFormat>
|
---|
277 | </ListMetadataFormats>
|
---|
278 | </serviceRack>
|
---|
279 | </serviceRackList>
|
---|
280 | </CollectionConfig>
|
---|