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">
|
---|
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">Pei-Jones-Flat</displayItem>
|
---|
10 | </displayItemList>
|
---|
11 | <search type="mgpp">
|
---|
12 | <level name="document">
|
---|
13 | <displayItem lang="en" name="name">document</displayItem>
|
---|
14 | </level>
|
---|
15 | <level name="section">
|
---|
16 | <displayItem lang="en" name="name">section</displayItem>
|
---|
17 | </level>
|
---|
18 | <defaultLevel name="section"/>
|
---|
19 | <index name="text">
|
---|
20 | <displayItem lang="en" name="name">text</displayItem>
|
---|
21 | </index>
|
---|
22 | <index name="Title">
|
---|
23 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
24 | </index>
|
---|
25 | <index name="Source">
|
---|
26 | <displayItem lang="en" name="name">filenames</displayItem>
|
---|
27 | </index>
|
---|
28 | <index name="Plugin"/>
|
---|
29 | <defaultIndex name="text"/>
|
---|
30 | <indexOption>
|
---|
31 | <option name="accentfold"/>
|
---|
32 | <option name="casefold"/>
|
---|
33 | <option name="stem"/>
|
---|
34 | </indexOption>
|
---|
35 | <searchType name="plain"/>
|
---|
36 | <searchType name="simpleform"/>
|
---|
37 | <searchType name="advancedform"/>
|
---|
38 | <format>
|
---|
39 | <gsf:template match="documentNode">
|
---|
40 | <td valign="top">
|
---|
41 | <gsf:link type="document">
|
---|
42 | <gsf:icon type="document"/>
|
---|
43 | </gsf:link>
|
---|
44 | </td>
|
---|
45 | <td>
|
---|
46 | <gsf:switch>
|
---|
47 | <gsf:metadata name="Title" select="ancestors" separator=": "/>
|
---|
48 | <gsf:when test="exists"><gsf:metadata name="Title" select="ancestors" separator=": "/>:</gsf:when>
|
---|
49 | </gsf:switch>
|
---|
50 | <gsf:link type="document">
|
---|
51 | <gsf:metadata name="Title"/>
|
---|
52 | </gsf:link>
|
---|
53 | </td>
|
---|
54 | </gsf:template>
|
---|
55 | </format>
|
---|
56 | </search>
|
---|
57 | <infodb type="gdbm"/>
|
---|
58 | <import>
|
---|
59 | <pluginList>
|
---|
60 | <plugin name="ZIPPlugin"/>
|
---|
61 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
62 | <plugin name="TextPlugin"/>
|
---|
63 | <plugin name="HTMLPlugin"/>
|
---|
64 | <plugin name="EmailPlugin"/>
|
---|
65 | <plugin name="PDFPlugin"/>
|
---|
66 | <plugin name="RTFPlugin"/>
|
---|
67 | <plugin name="WordPlugin"/>
|
---|
68 | <plugin name="PostScriptPlugin"/>
|
---|
69 | <plugin name="PowerPointPlugin"/>
|
---|
70 | <plugin name="ExcelPlugin"/>
|
---|
71 | <plugin name="ImagePlugin"/>
|
---|
72 | <plugin name="ISISPlugin"/>
|
---|
73 | <plugin name="NulPlugin"/>
|
---|
74 | <plugin name="OAIPlugin"/>
|
---|
75 | <plugin name="MetadataXMLPlugin"/>
|
---|
76 | <plugin name="ArchivesInfPlugin"/>
|
---|
77 | <plugin name="DirectoryPlugin"/>
|
---|
78 | </pluginList>
|
---|
79 | </import>
|
---|
80 | <browse>
|
---|
81 | <classifier name="List">
|
---|
82 | <option name="-metadata" value="dc.Title;Title"/>
|
---|
83 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
84 | </classifier>
|
---|
85 | <classifier name="AZCompactList">
|
---|
86 | <option name="-metadata" value="Source"/>
|
---|
87 | <option name="-removesuffix" value="(?i)\\..*"/>
|
---|
88 | </classifier>
|
---|
89 | <format>
|
---|
90 | <gsf:template match="documentNode">
|
---|
91 | <td valign="top">
|
---|
92 | <gsf:link type="document">
|
---|
93 | <gsf:icon type="document"/>
|
---|
94 | </gsf:link>
|
---|
95 | </td>
|
---|
96 | <td valign="top">
|
---|
97 | <gsf:link type="source">
|
---|
98 | <gsf:choose-metadata>
|
---|
99 | <gsf:metadata name="thumbicon"/>
|
---|
100 | <gsf:metadata name="srcicon"/>
|
---|
101 | </gsf:choose-metadata>
|
---|
102 | </gsf:link>
|
---|
103 | </td>
|
---|
104 | <td valign="top">
|
---|
105 | <gsf:choose-metadata>
|
---|
106 | <gsf:metadata name="dc.Title"/>
|
---|
107 | <gsf:metadata name="exp.Title"/>
|
---|
108 | <gsf:metadata name="Title"/>
|
---|
109 | <gsf:default>Untitled</gsf:default>
|
---|
110 | </gsf:choose-metadata>
|
---|
111 | <gsf:switch>
|
---|
112 | <gsf:metadata name="Source"/>
|
---|
113 | <gsf:when test="exists">
|
---|
114 | <br/>
|
---|
115 | <i>(<gsf:metadata name="Source"/>)</i>
|
---|
116 | </gsf:when>
|
---|
117 | </gsf:switch>
|
---|
118 | </td>
|
---|
119 | </gsf:template>
|
---|
120 | <gsf:template match="classifierNode">
|
---|
121 | <td valign="top">
|
---|
122 | <gsf:link type="classifier">
|
---|
123 | <gsf:icon type="classifier"/>
|
---|
124 | </gsf:link>
|
---|
125 | </td>
|
---|
126 | <td valign="top">
|
---|
127 | <gsf:metadata name="srclink"/>
|
---|
128 | <gsf:choose-metadata>
|
---|
129 | <gsf:metadata name="thumbicon"/>
|
---|
130 | <gsf:metadata name="srcicon"/>
|
---|
131 | </gsf:choose-metadata>
|
---|
132 | <gsf:metadata name="/srclink"/>
|
---|
133 | </td>
|
---|
134 | <td valign="top">
|
---|
135 | <gsf:choose-metadata>
|
---|
136 | <gsf:metadata name="dc.Title"/>
|
---|
137 | <gsf:metadata name="exp.Title"/>
|
---|
138 | <gsf:metadata name="Title"/>
|
---|
139 | <gsf:default>Untitled</gsf:default>
|
---|
140 | </gsf:choose-metadata>
|
---|
141 | <gsf:switch>
|
---|
142 | <gsf:metadata name="Source"/>
|
---|
143 | <gsf:when test="exists">
|
---|
144 | <br/>
|
---|
145 | <i>(<gsf:metadata name="Source"/>)</i>
|
---|
146 | </gsf:when>
|
---|
147 | </gsf:switch>
|
---|
148 | </td>
|
---|
149 | </gsf:template>
|
---|
150 | <gsf:template match="classifierNode" mode="horizontal">
|
---|
151 | <gsf:link type="horizontal">
|
---|
152 | <gsf:metadata name="Title"/>
|
---|
153 | </gsf:link>
|
---|
154 | </gsf:template>
|
---|
155 | </format>
|
---|
156 | </browse>
|
---|
157 | <display>
|
---|
158 | <format>
|
---|
159 | <gsf:option name="TOC" value="false"/>
|
---|
160 | <xsl:template match="documentNode" mode="document">
|
---|
161 | <h3>
|
---|
162 | <gsf:metadata name="ex.Title"/>
|
---|
163 | </h3>
|
---|
164 | <xsl:variable name="imageWidth">
|
---|
165 | <gsf:metadata name="ImageWidth"/>
|
---|
166 | </xsl:variable>
|
---|
167 | <xsl:variable name="imageHeight">
|
---|
168 | <gsf:metadata name="ImageHeight"/>
|
---|
169 | </xsl:variable>
|
---|
170 | <xsl:variable name="screenImageWidth">
|
---|
171 | <gsf:metadata name="ScreenWidth"/>
|
---|
172 | </xsl:variable>
|
---|
173 | <xsl:variable name="screenImageHeight">
|
---|
174 | <gsf:metadata name="ScreenHeight"/>
|
---|
175 | </xsl:variable>
|
---|
176 | <script type="text/javascript">
|
---|
177 | <xsl:text>largeImageHeight =</xsl:text>
|
---|
178 | <xsl:value-of select="$imageHeight"/>
|
---|
179 | <xsl:text>;</xsl:text>
|
---|
180 | <xsl:text>largeImageWidth =</xsl:text>
|
---|
181 | <xsl:value-of select="$imageWidth"/>
|
---|
182 | <xsl:text>;</xsl:text>
|
---|
183 | </script>
|
---|
184 | <div id="noZoom" style="display:block;">
|
---|
185 | <gsf:metadata name="screenicon"/>
|
---|
186 | </div>
|
---|
187 | <div id="wrap" style="display:none">
|
---|
188 | <div id="small" style="width: {$screenImageWidth}; height: {$screenImageHeight};">
|
---|
189 | <gsf:metadata name="screenicon"/>
|
---|
190 | </div>
|
---|
191 | <div id="mover">
|
---|
192 | <div id="overlay">
|
---|
193 | <xsl:text/>
|
---|
194 | </div>
|
---|
195 | <div id="large">
|
---|
196 | <img style="width: {$imageWidth}; height: {$imageHeight};">
|
---|
197 | <xsl:attribute name="src"><xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<gsf:metadata name="assocfilepath"/>/<gsf:metadata name="srclinkFile"/></xsl:attribute>
|
---|
198 | </img>
|
---|
199 | </div>
|
---|
200 | </div>
|
---|
201 | </div>
|
---|
202 | </xsl:template>
|
---|
203 | </format>
|
---|
204 | </display>
|
---|
205 | <replaceListRef id="gs2-standard"/>
|
---|
206 | <replaceListRef id="gs2-image"/>
|
---|
207 | <serviceRackList>
|
---|
208 | <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
209 | <serviceRack name="OAIPMH">
|
---|
210 | <ListMetadataFormats>
|
---|
211 | <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
212 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
213 | -->
|
---|
214 | <metadataFormat metadataPrefix="oai_dc">
|
---|
215 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
216 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
217 | <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
|
---|
218 | <!--<metadataElements>dc.Title,dc.Creator,dc.Subject,dc.Description,dc.Publisher,dc.Contributor,dc.Date,dc.Type,dc.Format,dc.Identifier,dc.Source,dc.Language,dc.Relation,dc.Coverage,dc.Rights</metadataElements>
|
---|
219 | -->
|
---|
220 | <mappingList>
|
---|
221 | <!--
|
---|
222 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
223 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
224 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
225 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
226 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
227 |
|
---|
228 | **Bear in mind: if this mapping list is not present, the standard dc. metadata names (15 in total) will be used to retrieve metadata in the database.
|
---|
229 |
|
---|
230 | **The only case when this mapping is not present is that: 1. this metadata format is oai_dc; 2. the metadata is also stored in the database by Dublin Core's names.
|
---|
231 | -->
|
---|
232 | <mapping>dc.Title,Title</mapping>
|
---|
233 | <!-- This mapping example means that the dc.Title is requested and the value of the metadata Title, which is used in this repository, is returned as response. -->
|
---|
234 | </mappingList>
|
---|
235 | </metadataFormat>
|
---|
236 | </ListMetadataFormats>
|
---|
237 | </serviceRack>
|
---|
238 | </serviceRackList>
|
---|
239 | </CollectionConfig>
|
---|