source: gs3-extensions/i-jetty/trunk/src/sites/without-jni/collect/lucene-jdbm-demo/etc/collectionConfig.xml@ 23890

Last change on this file since 23890 was 23890, checked in by davidb, 13 years ago

Test site/collection using lucene and jdbm

  • Property svn:executable set to *
File size: 7.5 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 <metadataList>
4 <metadata lang="en" name="creator"/>
5 <metadata lang="en" name="maintainer"/>
6 <metadata lang="en" name="public">true</metadata>
7 </metadataList>
8 <displayItemList>
9 <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 MGPP.</displayItem>
10 <displayItem assigned="true" lang="en" name="name">Lucene/JDBM demo</displayItem>
11 </displayItemList>
12 <search type="lucene">
13 <level name="section">
14 <displayItem lang="en" name="name">chapter</displayItem>
15 </level>
16 <level name="document">
17 <displayItem lang="en" name="name">book</displayItem>
18 </level>
19 <defaultLevel name="section"/>
20 <index name="allfields">
21 <displayItem lang="en" name="name">all fields</displayItem>
22 </index>
23 <index name="text">
24 <displayItem lang="en" name="name">text</displayItem>
25 </index>
26 <index name="dls.Title,Title">
27 <displayItem lang="en" name="name">titles</displayItem>
28 </index>
29 <index name="dls.Subject">
30 <displayItem lang="en" name="name">subjects</displayItem>
31 </index>
32 <index name="dls.Organization">
33 <displayItem lang="en" name="name">organisations</displayItem>
34 </index>
35 <indexOption>
36 <option name="accentfold"/>
37 <option name="casefold"/>
38 <option name="stem"/>
39 </indexOption>
40 <searchType name="plain"/>
41 <searchType name="simpleform"/>
42 <searchType name="advancedform"/>
43 <format><gsf:template match="documentNode"><td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td><td><gsf:switch><gsf:metadata name="Title" select="ancestors" separator=": "/><gsf:when test="exists"><gsf:metadata name="Title" select="ancestors" separator=": "/>:</gsf:when></gsf:switch><gsf:link type="document"><gsf:metadata name="Title"/></gsf:link></td></gsf:template></format>
44 </search>
45 <infodb type="jdbm"/>
46 <import>
47 <pluginList>
48 <plugin name="GreenstoneXMLPlugin"/>
49 <plugin name="HTMLPlugin">
50 <option name="-description_tags"/>
51 </plugin>
52 <plugin name="MetadataXMLPlugin"/>
53 <plugin name="ArchivesInfPlugin"/>
54 <plugin name="DirectoryPlugin"/>
55 </pluginList>
56 </import>
57 <browse>
58 <classifier name="List">
59 <option name="-metadata" value="dls.Title"/>
60 <option name="-partition_type_within_level" value="constant_size"/>
61 </classifier>
62 <classifier name="Hierarchy">
63 <option name="-metadata" value="dls.Subject"/>
64 <option name="-sort" value="dls.Title"/>
65 </classifier>
66 <classifier name="List">
67 <option name="-metadata" value="dls.Organization"/>
68 <option name="-sort_leaf_nodes_using" value="dls.Title"/>
69 <option name="-partition_type_within_level" value="constant_size"/>
70 <option name="-bookshelf_type" value="always"/>
71 <option name="-buttonname" value="Organization"/>
72 </classifier>
73 <classifier name="List">
74 <option name="-metadata" value="dls.Keyword"/>
75 <option name="-buttonname" value="Howto"/>
76 <option name="-partition_type_within_level" value="constant_size"/>
77 <format><gsf:template match="documentNode"><td><gsf:link type="document"><gsf:metadata name="dls.Keyword"/></gsf:link></td></gsf:template><gsf:template match="classifierNode"><td><gsf:link type="classifier"><gsf:metadata name="Title"/></gsf:link></td></gsf:template></format>
78 </classifier>
79 <format><gsf:template match="documentNode"><td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td><td valign="top"><gsf:metadata name="srclink"/><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata><gsf:metadata name="/srclink"/></td><td valign="top"><gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/><gsf:default>Untitled</gsf:default></gsf:choose-metadata><gsf:switch><gsf:metadata name="Source"/><gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when></gsf:switch></td></gsf:template><gsf:template match="classifierNode"><td valign="top"><gsf:link type="classifier"><gsf:icon type="classifier"/></gsf:link></td><td><gsf:metadata name="Title"/></td></gsf:template><gsf:template match="classifierNode" mode="horizontal"><gsf:link type="horizontal"><gsf:metadata name="Title"/></gsf:link></gsf:template></format>
80 </browse>
81 <display>
82 <format><gsf:option name="TOC" value="true"/></format>
83 </display>
84 <replaceListRef id="gs2-standard"/>
85 <OAIXX>
86 <ListMetadataFormats>
87 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
88 The support of unqualified Dublin Core metadata set is mendatory in the oai specification.
89 -->
90 <metadataFormat metadataPrefix="oai_dc">
91 <metadataPrefix>oai_dc</metadataPrefix>
92 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
93 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
94 <mappingList>
95 <!--
96 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
97 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
98 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
99 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
100 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
101
102 **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.
103 -->
104 <mapping>dc.Title,dls.Title</mapping>
105 <mapping>dc.Subject,dls.Subject</mapping>
106 <mapping>dc.Language,dls.Language</mapping>
107 <mapping>dc.Organization,dls.Organization</mapping>
108 </mappingList>
109 </metadataFormat>
110 <!--
111 This metadata format is an example of user created metadata fields
112 <metadataFormat metadataPrefix="oai_gs">
113 <metadataPrefix>oai_gs</metadataPrefix>
114 <schema>http://www.greenstone.org/OAI/2.0/oai_gs.xsd</schema>
115 <metadataNamespace>http://www.greenstone.org/OAI/2.0/oai_gs/</metadataNamespace>
116 <mappingList>
117 <mapping>dls.Title</mapping>
118 <mapping>dls.Subject</mapping>
119 <mapping>dls.Language</mapping>
120 <mapping>dls.Organization</mapping>
121 </mappingList>
122 </metadataFormat>
123 -->
124 </ListMetadataFormats>
125 </OAIXX>
126
127</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.