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

Last change on this file since 26509 was 26509, checked in by davidb, 9 years ago

collection config file updated to demonstrate th euse of <gsf:headMetaTags> to control what <meta> elements appear in the HTML <head> section.

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