source: main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/etc/collectionConfig.xml@ 26011

Last change on this file since 26011 was 26011, checked in by ak19, 12 years ago

Added the OAIPMH ServiceRack element, since all GS3 collections are to be OAI enabled out of the box and this element is present in the modelcol's collectionConfig.xml

  • Property svn:executable set to *
File size: 8.0 KB
Line 
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
4 <metadataList>
5 <metadata lang="en" name="creator"></metadata>
6 <metadata lang="en" name="maintainer"></metadata>
7 <metadata lang="en" name="public">true</metadata>
8 </metadataList>
9 <displayItemList>
10 <displayItem assigned="true" lang="en" name="name">Demo Collection</displayItem>
11 <displayItem assigned="true" lang="en" name="description">This is a demonstration collection for the Greenstone3 digital library software. It contains a small subset (11 books) of the Humanitarian and Development Libraries. It is the Greenstone 3 equivalent of the Greenstone 2 demo collection, built with Lucene for indexing and JDBM as the database for metadata.</displayItem>
12 <displayItem lang="en" name="shortDescription">Demonstration collection containing a few books from the Humanitarian and Development Libraries. Uses Lucene and JDBM.</displayItem>
13 </displayItemList>
14 <search type="lucene">
15 <level name="section">
16 <displayItem lang="en" name="name">chapter</displayItem>
17 </level>
18 <level name="document">
19 <displayItem lang="en" name="name">book</displayItem>
20 </level>
21 <defaultLevel name="section"/>
22 <index name="allfields">
23 <displayItem lang="en" name="name">all fields</displayItem>
24 </index>
25 <index name="text">
26 <displayItem lang="en" name="name">text</displayItem>
27 </index>
28 <index name="dls.Title,Title">
29 <displayItem lang="en" name="name">titles</displayItem>
30 </index>
31 <index name="dls.Subject">
32 <displayItem lang="en" name="name">subjects</displayItem>
33 </index>
34 <index name="dls.Organization">
35 <displayItem lang="en" name="name">organisations</displayItem>
36 </index>
37 <indexOption>
38 <option name="accentfold"/>
39 <option name="casefold"/>
40 <option name="stem"/>
41 </indexOption>
42 <searchType name="plain"/>
43 <searchType name="simpleform"/>
44 <searchType name="advancedform"/>
45 <format>
46 <gsf:template match="documentNode">
47 <td valign="top">
48 <gsf:link type="document">
49 <gsf:icon type="document"/>
50 </gsf:link>
51 </td>
52 <td>
53 <gsf:link type="document">
54 <gsf:choose-metadata>
55 <gsf:metadata name="dc.Title"/>
56 <gsf:metadata name="exp.Title"/>
57 <gsf:metadata name="ex.dc.Title"/>
58 <gsf:metadata name="Title"/>
59 <gsf:default>Untitled</gsf:default>
60 </gsf:choose-metadata>
61 </gsf:link>
62 </td>
63 </gsf:template>
64 </format>
65 </search>
66 <infodb type="jdbm"/>
67 <import>
68 <pluginList>
69 <plugin name="GreenstoneXMLPlugin"/>
70 <plugin name="HTMLPlugin">
71 <option name="-description_tags"/>
72 </plugin>
73 <plugin name="MetadataXMLPlugin"/>
74 <plugin name="ArchivesInfPlugin"/>
75 <plugin name="DirectoryPlugin"/>
76 </pluginList>
77 </import>
78 <browse>
79 <classifier name="List">
80 <option name="-metadata" value="dls.Title"/>
81 <option name="-partition_type_within_level" value="constant_size"/>
82 </classifier>
83 <classifier name="Hierarchy">
84 <option name="-metadata" value="dls.Subject"/>
85 <option name="-sort" value="dls.Title"/>
86 </classifier>
87 <classifier name="List">
88 <option name="-metadata" value="dls.Organization"/>
89 <option name="-sort_leaf_nodes_using" value="dls.Title"/>
90 <option name="-partition_type_within_level" value="constant_size"/>
91 <option name="-bookshelf_type" value="always"/>
92 <option name="-buttonname" value="Organization"/>
93 </classifier>
94 <classifier name="List">
95 <option name="-metadata" value="dls.Keyword"/>
96 <option name="-buttonname" value="Howto"/>
97 <option name="-partition_type_within_level" value="constant_size"/>
98 <format>
99 <gsf:template match="documentNode">
100 <td>
101 <gsf:link type="document">
102 <gsf:metadata name="dls.Keyword"/>
103 </gsf:link>
104 </td>
105 </gsf:template>
106 <gsf:template match="classifierNode">
107 <td>
108 <gsf:link type="classifier">
109 <gsf:metadata name="Title"/>
110 </gsf:link>
111 </td>
112 </gsf:template>
113 </format>
114 </classifier>
115 <format>
116 <gsf:template match="documentNode">
117 <td valign="top">
118 <gsf:link type="document">
119 <gsf:icon type="document"/>
120 </gsf:link>
121 </td>
122 <td valign="top">
123 <gsf:link type="source">
124 <gsf:choose-metadata>
125 <gsf:metadata name="thumbicon"/>
126 <gsf:metadata name="srcicon"/>
127 </gsf:choose-metadata>
128 </gsf:link>
129 </td>
130 <td valign="top">
131 <gsf:link type="document">
132 <gsf:choose-metadata>
133 <gsf:metadata name="dc.Title"/>
134 <gsf:metadata name="exp.Title"/>
135 <gsf:metadata name="ex.dc.Title"/>
136 <gsf:metadata name="Title"/>
137 <gsf:default>Untitled</gsf:default>
138 </gsf:choose-metadata>
139 </gsf:link>
140 <gsf:switch>
141 <gsf:metadata name="Source"/>
142 <gsf:when test="exists">
143 <br/>
144 <i>(<gsf:metadata name="Source"/>)</i>
145 </gsf:when>
146 </gsf:switch>
147 </td>
148 </gsf:template>
149 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
150 <td valign="top">
151 <gsf:link type="classifier">
152 <gsf:icon type="classifier"/>
153 </gsf:link>
154 </td>
155 <td valign="top">
156 <gsf:choose-metadata>
157 <gsf:metadata name="dc.Title"/>
158 <gsf:metadata name="exp.Title"/>
159 <gsf:metadata name="ex.dc.Title"/>
160 <gsf:metadata name="Title"/>
161 <gsf:default>Untitled</gsf:default>
162 </gsf:choose-metadata>
163 <gsf:switch>
164 <gsf:metadata name="Source"/>
165 <gsf:when test="exists">
166 <br/>
167 <i>(<gsf:metadata name="Source"/>)</i>
168 </gsf:when>
169 </gsf:switch>
170 </td>
171 </gsf:template>
172 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
173 <gsf:link type="classifier">
174 <gsf:metadata name="Title"/>
175 </gsf:link>
176 </gsf:template>
177 </format>
178 </browse>
179 <display>
180 <format>
181 <gsf:option name="TOC" value="true"/>
182 </format>
183 </display>
184 <replaceListRef id="gs2-standard"/>
185 <serviceRackList>
186 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
187 <serviceRack name="OAIPMH">
188 <ListMetadataFormats>
189 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
190 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
191 -->
192 <metadataFormat metadataPrefix="oai_dc">
193 <metadataPrefix>oai_dc</metadataPrefix>
194 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
195 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
196 <!--<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>-->
197 <mappingList>
198 <!--
199 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
200 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
201 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
202 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
203 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
204
205 **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.
206
207 **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.
208 -->
209 <mapping>dc.Title,Title</mapping>
210 <!-- 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. -->
211 </mappingList>
212 </metadataFormat>
213 </ListMetadataFormats>
214 </serviceRack>
215 </serviceRackList>
216</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.