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

Revision 31561, 7.0 KB (checked in by kjdon, 21 months ago)

small changes for classifier format statements to bring them in line with the default ones. changed titles list to an hlist just to add more variety to the examples

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