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

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

Greenstone 3 supports global <format> format statements. Empty <format> tags added in this commit to show this up in the collection configuration file.

Some line wrapping of displayItems also done.

  • Property svn:executable set to *
File size: 7.3 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">
13 This is a demonstration collection for the Greenstone3 digital library software.
14 It contains a small subset (11 books) of the Humanitarian and Development Libraries.
15 It is the Greenstone 3 equivalent of the Greenstone 2 demo collection, built with
16 Lucene for indexing and JDBM as the database for metadata.
17 </displayItem>
18 <displayItem lang="en" name="shortDescription">
19 Demonstration collection containing a few books from the Humanitarian and Development
20 Libraries. Uses Lucene and JDBM.
21 </displayItem>
22 </displayItemList>
23
24 <format>
25 <!-- Define any global format statements here -->
26 </format>
27
28 <search type="lucene">
29 <level name="section">
30 <displayItem lang="en" name="name">chapter</displayItem>
31 </level>
32 <level name="document">
33 <displayItem lang="en" name="name">book</displayItem>
34 </level>
35 <defaultLevel name="section"/>
36 <index name="allfields">
37 <displayItem lang="en" name="name">all fields</displayItem>
38 </index>
39 <index name="text">
40 <displayItem lang="en" name="name">text</displayItem>
41 </index>
42 <index name="dls.Title,Title">
43 <displayItem lang="en" name="name">titles</displayItem>
44 </index>
45 <index name="dls.Subject">
46 <displayItem lang="en" name="name">subjects</displayItem>
47 </index>
48 <index name="dls.Organization">
49 <displayItem lang="en" name="name">organisations</displayItem>
50 </index>
51 <indexOption>
52 <option name="accentfold"/>
53 <option name="casefold"/>
54 <option name="stem"/>
55 </indexOption>
56 <searchType name="plain"/>
57 <searchType name="simpleform"/>
58 <searchType name="advancedform"/>
59 <format>
60 <gsf:template match="documentNode">
61 <td valign="top">
62 <gsf:link type="document">
63 <gsf:icon type="document"/>
64 </gsf:link>
65 </td>
66 <td>
67 <gsf:link type="document">
68 <gsf:choose-metadata>
69 <gsf:metadata name="dc.Title"/>
70 <gsf:metadata name="exp.Title"/>
71 <gsf:metadata name="ex.dc.Title"/>
72 <gsf:metadata name="Title"/>
73 <gsf:default>Untitled</gsf:default>
74 </gsf:choose-metadata>
75 </gsf:link>
76 </td>
77 </gsf:template>
78 </format>
79 </search>
80 <infodb type="jdbm"/>
81 <import>
82 <pluginList>
83 <plugin name="GreenstoneXMLPlugin"/>
84 <plugin name="HTMLPlugin">
85 <option name="-description_tags"/>
86 </plugin>
87 <plugin name="MetadataXMLPlugin"/>
88 <plugin name="ArchivesInfPlugin"/>
89 <plugin name="DirectoryPlugin"/>
90 </pluginList>
91 </import>
92 <browse>
93 <classifier name="List">
94 <option name="-metadata" value="dls.Title"/>
95 <option name="-partition_type_within_level" value="constant_size"/>
96 </classifier>
97 <classifier name="Hierarchy">
98 <option name="-metadata" value="dls.Subject"/>
99 <option name="-sort" value="dls.Title"/>
100 </classifier>
101 <classifier name="List">
102 <option name="-metadata" value="dls.Organization"/>
103 <option name="-sort_leaf_nodes_using" value="dls.Title"/>
104 <option name="-partition_type_within_level" value="constant_size"/>
105 <option name="-bookshelf_type" value="always"/>
106 <option name="-buttonname" value="Organization"/>
107 </classifier>
108 <classifier name="List">
109 <option name="-metadata" value="dls.Keyword"/>
110 <option name="-buttonname" value="Howto"/>
111 <option name="-partition_type_within_level" value="constant_size"/>
112 <format>
113 <gsf:template match="documentNode">
114 <td>
115 <gsf:link type="document">
116 <gsf:metadata name="dls.Keyword"/>
117 </gsf:link>
118 </td>
119 </gsf:template>
120 <gsf:template match="classifierNode">
121 <td>
122 <gsf:link type="classifier">
123 <gsf:metadata name="Title"/>
124 </gsf:link>
125 </td>
126 </gsf:template>
127 </format>
128 </classifier>
129 <format>
130 <gsf:template match="documentNode">
131 <td valign="top">
132 <gsf:link type="document">
133 <gsf:icon type="document"/>
134 </gsf:link>
135 </td>
136 <td valign="top">
137 <gsf:link type="source">
138 <gsf:choose-metadata>
139 <gsf:metadata name="thumbicon"/>
140 <gsf:metadata name="srcicon"/>
141 </gsf:choose-metadata>
142 </gsf:link>
143 </td>
144 <td valign="top">
145 <gsf:link type="document">
146 <gsf:choose-metadata>
147 <gsf:metadata name="dc.Title"/>
148 <gsf:metadata name="exp.Title"/>
149 <gsf:metadata name="ex.dc.Title"/>
150 <gsf:metadata name="Title"/>
151 <gsf:default>Untitled</gsf:default>
152 </gsf:choose-metadata>
153 </gsf:link>
154 <gsf:switch>
155 <gsf:metadata name="Source"/>
156 <gsf:when test="exists">
157 <br/>
158 <i>(<gsf:metadata name="Source"/>)</i>
159 </gsf:when>
160 </gsf:switch>
161
162 </td>
163 </gsf:template>
164 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
165 <td valign="top">
166 <gsf:link type="classifier">
167 <gsf:icon type="classifier"/>
168 </gsf:link>
169 </td>
170 <td valign="top">
171 <gsf:choose-metadata>
172 <gsf:metadata name="dc.Title"/>
173 <gsf:metadata name="exp.Title"/>
174 <gsf:metadata name="ex.dc.Title"/>
175 <gsf:metadata name="Title"/>
176 <gsf:default>Untitled</gsf:default>
177 </gsf:choose-metadata>
178 <gsf:switch>
179 <gsf:metadata name="Source"/>
180 <gsf:when test="exists">
181 <br/>
182 <i>(<gsf:metadata name="Source"/>)</i>
183 </gsf:when>
184 </gsf:switch>
185 </td>
186 </gsf:template>
187 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
188 <gsf:link type="classifier">
189 <gsf:metadata name="Title"/>
190 </gsf:link>
191 </gsf:template>
192 </format>
193 </browse>
194 <display>
195 <format>
196 <gsf:option name="TOC" value="true"/>
197
198 <gsf:headMetaTags>
199 <gsf:metadata name="dls.Title"/>
200 <gsf:metadata name="dls.Subject"/>
201 <gsf:metadata name="dls.Organization"/>
202 </gsf:headMetaTags>
203
204 </format>
205 </display>
206 <replaceListRef id="gs2-standard"/>
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 <!-- a custom mapping as this collection doesn't have dc metadata -->
219 <mappingList>
220 <mapping>dc:title,dls.Title</mapping>
221 <mapping>dc:subject,dls.Subject</mapping>
222 <mapping>dc:language,dls.Language</mapping>
223 <mapping>dc:publisher,dls.Organization</mapping>
224 </mappingList>
225 </metadataFormat>
226 </ListMetadataFormats>
227 </serviceRack>
228 </serviceRackList>
229</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.