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="description"><p>This is a basic image collection that contains no text and no
|
---|
10 | explicit metadata. Several JPEG files are placed in the import directory prior to importing
|
---|
11 | and building the collection, that's all.</p>
|
---|
12 | <p>The images in this collection have been produced by members of the Department of Computer Science, University of Waikato.
|
---|
13 | The University of Waikato holds copyright. They may be distributed freely, without any restrictions.</p>
|
---|
14 |
|
---|
15 | <h3>How the collection works</h3>
|
---|
16 |
|
---|
17 | <p><a href="library/collection/imagee3/document/HASHe65e0fdf1b460cd4f85899">Here</a> is a sample document in the collection.
|
---|
18 | The <a href="_httpcollection_/etc/collectionConfig.xml" target=collectionConfig.xml>
|
---|
19 | configuration file</a> specifies no indexes, so the search box is suppressed.</p>
|
---|
20 |
|
---|
21 | <p>
|
---|
22 | There is only one plugin, <i>ImagePlugin</i>, aside from the four that are
|
---|
23 | always presentâ<i>GreenstoneXMLPlugin</i>, <i>MetadataXMLPlugin</i>, <i>ArchivesInfPlugin</i>, <i>DirectoryPlugin</i>
|
---|
24 | (the latter three are only visible in the GLI if 'Expert' mode is selected).
|
---|
25 | <i>ImagePlugin</i> relies on the existence of two programs from the ImageMagick suite
|
---|
26 | (<a href="http://www.imagemagick.org">http://www.imagemagick.org</a>): <i>convert</i> and
|
---|
27 | <i>identify</i>. Greenstone will not be able to build the collection correctly unless
|
---|
28 | ImageMagick is installed on your computer.</p>
|
---|
29 |
|
---|
30 | <p> <i>ImagePlugin</i> automatically creates a thumbnail and generates the following
|
---|
31 | metadata for each image in the collection:</p>
|
---|
32 |
|
---|
33 | <table border=0 cellspacing=0>
|
---|
34 | <tr><td width=125 valign=top><i>Image</i></td><td>Name of file containing the image <tr>
|
---|
35 | <tr><td valign=top><i>ImageWidth</i></td><td>Width of image (in pixels) <tr>
|
---|
36 | <tr><td valign=top><i>ImageHeight</i></td><td>Height of image (in pixels) <tr>
|
---|
37 | <tr><td valign=top><i>Thumb</i></td><td> Name of gif file containing thumbnail of image <tr>
|
---|
38 | <tr><td valign=top><i>ThumbWidth</i></td><td>Width of thumbnail image (in pixels) <tr>
|
---|
39 | <tr><td valign=top><i>ThumbHeight</i></td><td>Height of thumbnail image (in pixels) <tr>
|
---|
40 | <tr><td valign=top><i>thumbicon</i></td><td>Full pathname specification of thumbnail image <tr>
|
---|
41 | <tr><td valign=top><i>assocfilepath</i></td><td>Pathname of image directory in the collection's <i>assoc</i> directory <tr>
|
---|
42 | </table><br/>
|
---|
43 |
|
---|
44 | <p>
|
---|
45 | The image is stored as an "associated file" in the <i>assoc</i> subdirectory
|
---|
46 | of the collection's <i>index</i> directory. (<i>Index</i> is where all files
|
---|
47 | necessary to serve the collection are placed, to make it self-contained.) The
|
---|
48 | pathname &#095;<i>httpassocdir</i>&#095;, which is the same as
|
---|
49 | &#095;<i>httpcollection</i>&#095;<i>/index/assoc</i>, refers to this directory. For any
|
---|
50 | document, its thumbnail and image are both in a subdirectory whose filename is
|
---|
51 | given by <i>assocfilepath</i>. The metadata element <i>thumbicon</i> is set to
|
---|
52 | the full pathname specification of the thumbnail image, and can be used in the
|
---|
53 | same way as <i>srcicon</i> (see the MSWord and PDF demonstration collection).</p>
|
---|
54 |
|
---|
55 | <p>
|
---|
56 | The <i>&lt;display&gt;</i> section in the
|
---|
57 | <a href="_httpcollection_/etc/collectionConfig.xml" target=collectionConfig.xml>configuration file</a>,
|
---|
58 | dictates how the document will appear, and
|
---|
59 | <a href="library/collection/imagee3/document/HASH015484508b3a74f07194ade4">this</a> is the
|
---|
60 | result. There is no document text (if there were, it would be producible by
|
---|
61 | <i>&lt;xsl:call-template name="wrappedSectionText"/&gt;</i>). What is shown is the image itself (produced by
|
---|
62 | the <i>&lt;xsl:call-template name="wrappedSectionImage"/&gt;</i>), along with some metadata extracted
|
---|
63 | from it.</p>
|
---|
64 |
|
---|
65 | <p>
|
---|
66 | The configuration file
|
---|
67 | specifies one classifier in the <i>&lt;browse&gt;</i> section, a <i>List</i> based on <i>Image</i> metadata, shown
|
---|
68 | <a href="library/collection/imagee3/browse/CL1">here</a>. The format statement shows the thumbnail image along with
|
---|
69 | some metadata. (Any other classifiers would have the same format, since this
|
---|
70 | statement does not name the classifier.) </p>
|
---|
71 |
|
---|
72 | <p>
|
---|
73 | You may wonder why the thumbnail image is generated and stored explicitly, when
|
---|
74 | the same effect would be obtained by using the original image and scaling it. The reason is to save communication bandwidth by not sending large images when
|
---|
75 | small ones would do.</p>
|
---|
76 |
|
---|
77 | <p>For a more comprehensive image collection, see the
|
---|
78 | <a href="http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft">kiwi aircraft images</a>
|
---|
79 | in the New Zealand Digital Library. The structure of this collection is
|
---|
80 | quite different, however: it is a collection of web pages that include many
|
---|
81 | images along with the text. The HTML plugin <i>HTMLPlugin</i> also processes image
|
---|
82 | files, but it does so in a different way from ImagePlugin (for example, it
|
---|
83 | does not produce the metadata described above).</p></displayItem>
|
---|
84 | <displayItem assigned="true" lang="en" name="name">Simple image collection</displayItem>
|
---|
85 | <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
|
---|
86 | <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
|
---|
87 | <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
|
---|
88 | <displayItem assigned="true" lang="en" name="text">text</displayItem>
|
---|
89 | <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,Title">titles</displayItem>
|
---|
90 | <displayItem assigned="true" lang="en" name="Source">filenames</displayItem>
|
---|
91 | <displayItem assigned="true" lang="en" name="document">document</displayItem>
|
---|
92 | <displayItem assigned="true" lang="en" name="section">section</displayItem>
|
---|
93 | <displayItem assigned="true" lang="en" name="shortDescription">imagee3</displayItem>
|
---|
94 | </displayItemList>
|
---|
95 | <format> <gsf:template name="choose-title">
|
---|
96 | <gsf:choose-metadata>
|
---|
97 | <gsf:metadata name="dc.Title"/>
|
---|
98 | <gsf:metadata name="exp.Title"/>
|
---|
99 | <gsf:metadata name="ex.dc.Title"/>
|
---|
100 | <gsf:metadata name="Title"/>
|
---|
101 | <gsf:default>Untitled</gsf:default>
|
---|
102 | </gsf:choose-metadata>
|
---|
103 | </gsf:template>
|
---|
104 |
|
---|
105 | </format>
|
---|
106 | <search type="mgpp">
|
---|
107 | <searchType name="plain"/>
|
---|
108 | <searchType name="simpleform"/>
|
---|
109 | <searchType name="advancedform"/>
|
---|
110 | <format> <gsf:template match="documentNode">
|
---|
111 | <td valign="top">
|
---|
112 | <gsf:link type="document">
|
---|
113 | <gsf:icon type="document"/>
|
---|
114 | </gsf:link>
|
---|
115 | </td>
|
---|
116 | <td>
|
---|
117 | <gsf:link type="document">
|
---|
118 | <xsl:call-template name="choose-title"/>
|
---|
119 | </gsf:link>
|
---|
120 | </td>
|
---|
121 | </gsf:template>
|
---|
122 |
|
---|
123 | </format>
|
---|
124 | </search>
|
---|
125 | <infodb type="gdbm"/>
|
---|
126 | <import>
|
---|
127 | <pluginList>
|
---|
128 | <plugin name="ImagePlugin"/>
|
---|
129 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
130 | <plugin name="MetadataXMLPlugin"/>
|
---|
131 | <plugin name="ArchivesInfPlugin"/>
|
---|
132 | <plugin name="DirectoryPlugin"/>
|
---|
133 | </pluginList>
|
---|
134 | </import>
|
---|
135 | <browse>
|
---|
136 | <classifier name="List">
|
---|
137 | <option name="-metadata" value="Image"/>
|
---|
138 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
139 | <option name="-buttonname" value="Browse"/>
|
---|
140 | </classifier>
|
---|
141 | <format> <gsf:template match="documentNode">
|
---|
142 | <td valign="center">
|
---|
143 | <gsf:link type="document">
|
---|
144 | <gsf:choose-metadata>
|
---|
145 | <gsf:metadata name="thumbicon"/>
|
---|
146 | <gsf:metadata name="srcicon"/>
|
---|
147 | </gsf:choose-metadata>
|
---|
148 | </gsf:link>
|
---|
149 | </td>
|
---|
150 | <td style="padding-left:10px;" valign="center">
|
---|
151 | <table>
|
---|
152 | <tr>
|
---|
153 | <td style="padding-right:10px;" valign="top">
|
---|
154 | <b>Image Name:</b>
|
---|
155 | </td>
|
---|
156 | <td>
|
---|
157 | <gsf:metadata name="Image"/>
|
---|
158 | </td>
|
---|
159 | </tr>
|
---|
160 | <tr>
|
---|
161 | <td>
|
---|
162 | <b>Width:</b>
|
---|
163 | </td>
|
---|
164 | <td>
|
---|
165 | <gsf:metadata name="ImageWidth"/>
|
---|
166 | </td>
|
---|
167 | </tr>
|
---|
168 | <tr>
|
---|
169 | <td>
|
---|
170 | <b>Height:</b>
|
---|
171 | </td>
|
---|
172 | <td>
|
---|
173 | <gsf:metadata name="ImageHeight"/>
|
---|
174 | </td>
|
---|
175 | </tr>
|
---|
176 | <tr>
|
---|
177 | <td>
|
---|
178 | <b>Size:</b>
|
---|
179 | </td>
|
---|
180 | <td>
|
---|
181 | <gsf:metadata name="ImageSize"/>
|
---|
182 | </td>
|
---|
183 | </tr>
|
---|
184 | </table>
|
---|
185 | </td>
|
---|
186 | </gsf:template>
|
---|
187 | <gsf:template match="classifierNode[@classifierStyle = 'VList']">
|
---|
188 | <td valign="top">
|
---|
189 | <gsf:link type="classifier">
|
---|
190 | <gsf:icon type="classifier"/>
|
---|
191 | </gsf:link>
|
---|
192 | </td>
|
---|
193 | <td valign="top">
|
---|
194 | <gsf:metadata name="Title"/>
|
---|
195 | </td>
|
---|
196 | </gsf:template>
|
---|
197 | <gsf:template match="classifierNode[@classifierStyle = 'HList']">
|
---|
198 | <gsf:link type="classifier">
|
---|
199 | <gsf:metadata name="Title"/>
|
---|
200 | </gsf:link>
|
---|
201 | </gsf:template>
|
---|
202 |
|
---|
203 | </format>
|
---|
204 | </browse>
|
---|
205 | <display>
|
---|
206 | <format> <gsf:option name="TOC" value="true"/>
|
---|
207 | <!--
|
---|
208 | Overwriting this template allows you to change the heading of the document.
|
---|
209 | -->
|
---|
210 | <gsf:template name="documentHeading"/>
|
---|
211 | <!--
|
---|
212 | Overwriting 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.
|
---|
213 | -->
|
---|
214 | <gsf:template name="documentContent">
|
---|
215 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
216 | <xsl:call-template name="wrappedSectionText"/>
|
---|
217 | <table>
|
---|
218 | <tr>
|
---|
219 | <td style="padding-right:10px;" valign="top">
|
---|
220 | <b>Image Name:</b>
|
---|
221 | </td>
|
---|
222 | <td>
|
---|
223 | <gsf:metadata name="Image"/>
|
---|
224 | </td>
|
---|
225 | </tr>
|
---|
226 | <tr>
|
---|
227 | <td>
|
---|
228 | <b>Width:</b>
|
---|
229 | </td>
|
---|
230 | <td>
|
---|
231 | <gsf:metadata name="ImageWidth"/>
|
---|
232 | </td>
|
---|
233 | </tr>
|
---|
234 | <tr>
|
---|
235 | <td>
|
---|
236 | <b>Height:</b>
|
---|
237 | </td>
|
---|
238 | <td>
|
---|
239 | <gsf:metadata name="ImageHeight"/>
|
---|
240 | </td>
|
---|
241 | </tr>
|
---|
242 | <tr>
|
---|
243 | <td>
|
---|
244 | <b>Size:</b>
|
---|
245 | </td>
|
---|
246 | <td>
|
---|
247 | <gsf:metadata name="ImageSize"/>
|
---|
248 | </td>
|
---|
249 | </tr>
|
---|
250 | </table>
|
---|
251 | </gsf:template>
|
---|
252 | <!--
|
---|
253 | Overwriting this template can be used to change the content of section headings.
|
---|
254 | -->
|
---|
255 | <!--
|
---|
256 | <gsf:template name="sectionHeading">
|
---|
257 | <xsl:call-template name="choose-title"/>
|
---|
258 | </gsf:template>
|
---|
259 | -->
|
---|
260 | <!--
|
---|
261 | Overwriting this template can be used to change the content of the top-level section.
|
---|
262 | -->
|
---|
263 | <!--
|
---|
264 | <gsf:template name="topLevelSectionContent">
|
---|
265 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
266 | <xsl:call-template name="wrappedSectionText"/>
|
---|
267 | </gsf:template>
|
---|
268 | -->
|
---|
269 | <!--
|
---|
270 | Overwriting this template can be used to change the content of sections.
|
---|
271 | -->
|
---|
272 | <!--
|
---|
273 | <gsf:template name="sectionContent">
|
---|
274 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
275 | <xsl:call-template name="wrappedSectionText"/>
|
---|
276 | </gsf:template>
|
---|
277 | -->
|
---|
278 |
|
---|
279 | </format>
|
---|
280 | </display>
|
---|
281 | <replaceListRef id="gs2-standard"/>
|
---|
282 | <replaceListRef id="gs2-image"/>
|
---|
283 | <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
284 | <serviceRack name="OAIPMH">
|
---|
285 | <ListMetadataFormats><!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
286 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
287 | -->
|
---|
288 | <metadataFormat metadataPrefix="oai_dc">
|
---|
289 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
290 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
291 | <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace><!--<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>-->
|
---|
292 | <mappingList><!--
|
---|
293 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
294 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
295 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
296 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
297 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
298 |
|
---|
299 | **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.
|
---|
300 |
|
---|
301 | **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.
|
---|
302 | -->
|
---|
303 | <mapping>dc:title,Title</mapping><!-- 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. -->
|
---|
304 | </mappingList>
|
---|
305 | </metadataFormat>
|
---|
306 | </ListMetadataFormats>
|
---|
307 | </serviceRack>
|
---|
308 | </serviceRackList>
|
---|
309 | </CollectionConfig>
|
---|