root/main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/etc/collectionConfig.xml @ 32200

Revision 32200, 7.3 KB (checked in by ak19, 6 months ago)

Rebuilt GS3 LUCENE demo collection as per Kathy's request, in order to add the oai-inf db to the prebuilt demo collection, so snapshots and releases will have lucene demo working out of the box without having to rebuild to get the oai-inf db.

  • Property svn:executable set to *
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:gslib="http://www.greenstone.org/skinning" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3    <security default_access="private" disabled="true" scope="document"><!-- a sample security configuration. enable it by removing the 'disabled'
4     attribute above --><!-- Document level security. All documents are private -->
5        <exception><!-- except if you are in demo group -->
6            <group name="demo"/>
7        </exception>
8        <exception><!-- except for the publicset list of documents which are fully public -->
9            <documentSet name="publicset"/>
10            <group name=""/>
11        </exception>
12        <documentSet name="publicset">
13            <match>b17mie</match>
14            <match>b18ase</match>
15            <match>b20cre</match>
16            <match>b21wae</match>
17        </documentSet>
18    </security>
19    <metadataList>
20        <metadata lang="en" name="creator">Greenstone Project</metadata>
21        <metadata lang="en" name="maintainer">Greenstone Project</metadata>
22        <metadata lang="en" name="public">true</metadata>
23    </metadataList>
24    <displayItemList>
25        <displayItem assigned="true" dictionary="collectionConfig" key="description" name="description"/>
26        <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
27        <displayItem assigned="true" lang="en" name="name">Demo Collection</displayItem>
28        <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
29        <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
30        <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
31        <displayItem assigned="true" key="level.chapter" name="section"/>
32        <displayItem assigned="true" key="level.book" name="document"/>
33        <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
34    </displayItemList>
35    <format>
36<!--
37Define any global format statements here
38-->
39<!--
40Setting the RSS option to true here will display a link to the collection's RSS feed on all
41     pages of the collection. Can include the RSS feed link in section specific format statements
42     too, such as search, if wishing to display the link only in particular sections.
43-->
44            <gsf:option name="RSS" value="true"/>
45        </format>
46    <search type="lucene">
47        <level name="section">
48            <displayItem key="level.chapter" name="name"/>
49        </level>
50        <level name="document">
51            <displayItem key="level.book" name="name"/>
52        </level>
53        <defaultLevel name="section"/>
54        <index name="allfields"/>
55        <index name="text"/>
56        <index name="dc.Title,Title"/>
57        <index name="dc.Subject"/>
58        <index name="dls.Organization"/>
59        <sort name="rank"/>
60        <sort name="dls.Organization">
61            <displayItem key="Organisation.buttonname" name="name"/>
62        </sort>
63        <sort name="none"/>
64        <defaultSort name="rank"/>
65        <searchType name="plain"/>
66        <searchType name="simpleform"/>
67        <searchType name="advancedform"/>
68        <format>
69            <gsf:template match="documentNode">
70                <td valign="top">
71                    <gsf:link type="document">
72                        <gsf:icon type="document"/>
73                    </gsf:link>
74                </td>
75                <td>
76                    <gsf:choose-metadata>
77                        <gsf:metadata name="dc.Title"/>
78                        <gsf:metadata name="Title"/>
79                        <gsf:default>Untitled</gsf:default>
80                    </gsf:choose-metadata>
81                </td>
82            </gsf:template>
83        </format>
84    </search>
85    <infodb type="jdbm"/>
86    <import>
87        <pluginList>
88            <plugin name="GreenstoneXMLPlugin"/>
89            <plugin name="HTMLPlugin">
90                <option name="-description_tags"/>
91            </plugin>
92            <plugin name="MetadataXMLPlugin"/>
93            <plugin name="ArchivesInfPlugin"/>
94            <plugin name="DirectoryPlugin"/>
95        </pluginList>
96    </import>
97    <browse>
98        <classifier name="List">
99            <option name="-metadata" value="dc.Title"/>
100            <option name="-partition_type_within_level" value="per_letter"/>
101            <option name="-use_hlist_for" value="dc.Title"/>
102        </classifier>
103        <classifier name="Hierarchy">
104            <option name="-metadata" value="dc.Subject"/>
105            <option name="-sort" value="dc.Title"/>
106        </classifier>
107        <classifier name="List">
108            <option name="-metadata" value="dls.Organization"/>
109            <option name="-sort_leaf_nodes_using" value="dc.Title"/>
110            <option name="-partition_type_within_level" value="constant_size"/>
111            <option name="-bookshelf_type" value="always"/>
112            <option name="-buttonname" value="Organization"/>
113        </classifier>
114        <classifier name="List">
115            <option name="-metadata" value="dls.Keyword"/>
116            <option name="-buttonname" value="Howto"/>
117            <option name="-partition_type_within_level" value="none"/>
118            <format>
119<!--
120format statement specific to this classifier
121-->
122            <gsf:template match="documentNode">
123                <td>
124                    <gsf:link type="document">
125                        <gsf:metadata name="dls.Keyword"/>
126                    </gsf:link>
127                </td>
128            </gsf:template>
129        </format>
130        </classifier>
131        <format>
132<!--
133general format statements for all classifiers that don't have their own versions
134-->
135            <gsf:template match="documentNode">
136                <td valign="top">
137                    <gsf:link type="document">
138                        <gsf:icon type="document"/>
139                    </gsf:link>
140                </td>
141                <td valign="top">
142                    <gsf:choose-metadata>
143                        <gsf:metadata name="dc.Title"/>
144                        <gsf:metadata name="Title"/>
145                        <gsf:default>Untitled</gsf:default>
146                    </gsf:choose-metadata>
147                </td>
148            </gsf:template>
149            <gsf:template match="classifierNode[@classifierStyle = 'VList']">
150                <td valign="top">
151                    <gsf:link style="static" type="classifier">
152                        <gsf:icon type="classifier"/>
153                    </gsf:link>
154                </td>
155                <td valign="top">
156                    <gsf:link type="classifier">
157                        <gsf:metadata name="Title"/>
158                    </gsf:link>
159                </td>
160            </gsf:template>
161            <gsf:template match="classifierNode[@classifierStyle = 'HList']">
162                <gsf:link type="classifier">
163                    <gsf:metadata name="Title"/>
164                </gsf:link>
165            </gsf:template>
166            <gsf:option name="turnstyleClassifiers" value="true"/>
167        </format>
168    </browse>
169    <display>
170        <format>
171            <gsf:option name="TOC" value="true"/>
172            <gsf:headMetaTags>
173                <gsf:metadata name="dc.Title"/>
174                <gsf:metadata name="dc.Subject"/>
175                <gsf:metadata name="dls.Organization"/>
176            </gsf:headMetaTags>
177        </format>
178    </display>
179    <replaceListRef id="gs2-standard"/>
180    <serviceRackList>
181        <serviceRack name="RSSRetrieve"/><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
182        <serviceRack name="OAIPMH">
183            <setName>Lucene demo collection</setName>
184            <setDescription>A demo collection for greenstone, using Lucene and JDBM.</setDescription><!-- uncomment the following and set the name attribute if you want this
185       collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
186            <ListMetadataFormats><!--What metadata sets to support for this collection. You can select any set that is specified in OAIConfig.xml. To use a new set, you need to add a set definition in OAIConfig.xml, then reference it here, like:
187        <metadataFormat metadataPrefix="prefix"/> -->
188                <metadataFormat metadataPrefix="oai_dc"><!--   a custom mapping as this collection doesn't have exclusive dc metadata --><!-- this will replace the dc:publisher element from the main set -->
189                    <element name="dc:publisher">
190                        <mapping elements="dls.Organization"/>
191                    </element>
192                </metadataFormat>
193            </ListMetadataFormats>
194        </serviceRack>
195    </serviceRackList>
196    <importOption name="OIDtype" value="dirname"/>
197    <buildOption name="sections_sort_on_document_metadata" value="unless_section_metadata_exists"/>
198</CollectionConfig>
Note: See TracBrowser for help on using the browser.