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

Last change on this file since 25836 was 25836, checked in by sjm84, 8 years ago

Updated the default format statements

  • Property svn:executable set to *
File size: 5.9 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 <displayItemList>
10 <displayItem assigned="true" lang="en" name="name">Demo Collection</displayItem>
11 <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>
12 <displayItem lang="en" name="shortDescription">Demonstration collection containing a few books from the Humanitarian and Development Libraries. Uses Lucene and JDBM.</displayItem>
13 </displayItemList>
14 <search type="lucene">
15 <level name="section">
16 <displayItem lang="en" name="name">chapter</displayItem>
17 </level>
18 <level name="document">
19 <displayItem lang="en" name="name">book</displayItem>
20 </level>
21 <defaultLevel name="section"/>
22 <index name="allfields">
23 <displayItem lang="en" name="name">all fields</displayItem>
24 </index>
25 <index name="text">
26 <displayItem lang="en" name="name">text</displayItem>
27 </index>
28 <index name="dls.Title,Title">
29 <displayItem lang="en" name="name">titles</displayItem>
30 </index>
31 <index name="dls.Subject">
32 <displayItem lang="en" name="name">subjects</displayItem>
33 </index>
34 <index name="dls.Organization">
35 <displayItem lang="en" name="name">organisations</displayItem>
36 </index>
37 <indexOption>
38 <option name="accentfold"/>
39 <option name="casefold"/>
40 <option name="stem"/>
41 </indexOption>
42 <searchType name="plain"/>
43 <searchType name="simpleform"/>
44 <searchType name="advancedform"/>
45 <format>
46 <gsf:template match="documentNode">
47 <td valign="top">
48 <gsf:link type="document">
49 <gsf:icon type="document"/>
50 </gsf:link>
51 </td>
52 <td>
53 <gsf:link type="document">
54 <gsf:choose-metadata>
55 <gsf:metadata name="dc.Title"/>
56 <gsf:metadata name="exp.Title"/>
57 <gsf:metadata name="ex.dc.Title"/>
58 <gsf:metadata name="Title"/>
59 <gsf:default>Untitled</gsf:default>
60 </gsf:choose-metadata>
61 </gsf:link>
62 </td>
63 </gsf:template>
64 </format>
65 </search>
66 <infodb type="jdbm"/>
67 <import>
68 <pluginList>
69 <plugin name="GreenstoneXMLPlugin"/>
70 <plugin name="HTMLPlugin">
71 <option name="-description_tags"/>
72 </plugin>
73 <plugin name="MetadataXMLPlugin"/>
74 <plugin name="ArchivesInfPlugin"/>
75 <plugin name="DirectoryPlugin"/>
76 </pluginList>
77 </import>
78 <browse>
79 <classifier name="List">
80 <option name="-metadata" value="dls.Title"/>
81 <option name="-partition_type_within_level" value="constant_size"/>
82 </classifier>
83 <classifier name="Hierarchy">
84 <option name="-metadata" value="dls.Subject"/>
85 <option name="-sort" value="dls.Title"/>
86 </classifier>
87 <classifier name="List">
88 <option name="-metadata" value="dls.Organization"/>
89 <option name="-sort_leaf_nodes_using" value="dls.Title"/>
90 <option name="-partition_type_within_level" value="constant_size"/>
91 <option name="-bookshelf_type" value="always"/>
92 <option name="-buttonname" value="Organization"/>
93 </classifier>
94 <classifier name="List">
95 <option name="-metadata" value="dls.Keyword"/>
96 <option name="-buttonname" value="Howto"/>
97 <option name="-partition_type_within_level" value="constant_size"/>
98 <format>
99 <gsf:template match="documentNode">
100 <td>
101 <gsf:link type="document">
102 <gsf:metadata name="dls.Keyword"/>
103 </gsf:link>
104 </td>
105 </gsf:template>
106 <gsf:template match="classifierNode">
107 <td>
108 <gsf:link type="classifier">
109 <gsf:metadata name="Title"/>
110 </gsf:link>
111 </td>
112 </gsf:template>
113 </format>
114 </classifier>
115 <format>
116 <gsf:template match="documentNode">
117 <td valign="top">
118 <gsf:link type="document">
119 <gsf:icon type="document"/>
120 </gsf:link>
121 </td>
122 <td valign="top">
123 <gsf:link type="source">
124 <gsf:choose-metadata>
125 <gsf:metadata name="thumbicon"/>
126 <gsf:metadata name="srcicon"/>
127 </gsf:choose-metadata>
128 </gsf:link>
129 </td>
130 <td valign="top">
131 <gsf:link type="document">
132 <gsf:choose-metadata>
133 <gsf:metadata name="dc.Title"/>
134 <gsf:metadata name="exp.Title"/>
135 <gsf:metadata name="ex.dc.Title"/>
136 <gsf:metadata name="Title"/>
137 <gsf:default>Untitled</gsf:default>
138 </gsf:choose-metadata>
139 </gsf:link>
140 <gsf:switch>
141 <gsf:metadata name="Source"/>
142 <gsf:when test="exists">
143 <br/>
144 <i>(<gsf:metadata name="Source"/>)</i>
145 </gsf:when>
146 </gsf:switch>
147 </td>
148 </gsf:template>
149 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
150 <td valign="top">
151 <gsf:link type="classifier">
152 <gsf:icon type="classifier"/>
153 </gsf:link>
154 </td>
155 <td valign="top">
156 <gsf:choose-metadata>
157 <gsf:metadata name="dc.Title"/>
158 <gsf:metadata name="exp.Title"/>
159 <gsf:metadata name="ex.dc.Title"/>
160 <gsf:metadata name="Title"/>
161 <gsf:default>Untitled</gsf:default>
162 </gsf:choose-metadata>
163 <gsf:switch>
164 <gsf:metadata name="Source"/>
165 <gsf:when test="exists">
166 <br/>
167 <i>(<gsf:metadata name="Source"/>)</i>
168 </gsf:when>
169 </gsf:switch>
170 </td>
171 </gsf:template>
172 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
173 <gsf:link type="classifier">
174 <gsf:metadata name="Title"/>
175 </gsf:link>
176 </gsf:template>
177 </format>
178 </browse>
179 <display>
180 <format>
181 <gsf:option name="TOC" value="true"/>
182 </format>
183 </display>
184 <replaceListRef id="gs2-standard"/>
185</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.