source: gs3-extensions/solr/trunk/src/collect/solr-jdbm-demo/etc/collectionConfig.xml@ 30642

Last change on this file since 30642 was 30642, checked in by kjdon, 5 years ago

indented nicely in emacs

  • Property svn:executable set to *
File size: 7.2 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"/>
6 <metadata lang="en" name="maintainer"/>
7 <metadata lang="en" name="public">true</metadata>
8 </metadataList>
9
10 <displayItemList>
11 <displayItem assigned="true" lang="en" name="name">Solr Demo</displayItem>
12 <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) from the Humanity Development Library. It is similar to the Lucene demo collection, using JDBM for the database but uses Solr instead for indexing. Solr offers faceted browsing of search results.</displayItem>
13 <displayItem lang="en" name="shortDescription">Demonstration collection using Solr as the indexer and JDBM as the metadata database.</displayItem>
14 </displayItemList>
15
16 <format>
17 <!-- Define any global format statements here -->
18
19 <!-- Setting the RSS option to true here will display a link to the collection's RSS feed on all
20 pages of the collection. Can include the RSS feed link in section specific format statements
21 too, such as search, if wishing to display the link only in particular sections.-->
22 <gsf:option name="RSS" value="true"/>
23 </format>
24
25 <search type="solr">
26 <level name="section">
27 <displayItem lang="en" name="name">chapter</displayItem>
28 </level>
29 <level name="document">
30 <displayItem lang="en" name="name">book</displayItem>
31 </level>
32 <defaultLevel name="section"/>
33 <index name="allfields">
34 <displayItem lang="en" name="name">all fields</displayItem>
35 </index>
36 <index name="text">
37 <displayItem lang="en" name="name">text</displayItem>
38 </index>
39 <index name="dc.Title,Title">
40 <displayItem lang="en" name="name">titles</displayItem>
41 </index>
42 <index name="dc.Subject">
43 <displayItem lang="en" name="name">subjects</displayItem>
44 </index>
45 <index name="dls.Organization">
46 <displayItem lang="en" name="name">organisations</displayItem>
47 </index>
48 <sort name="rank">
49 <displayItem lang="en" name="name">rank</displayItem>
50 </sort>
51 <sort name="dls.Organization">
52 <displayItem lang="en" name="name">organisations</displayItem>
53 </sort>
54 <sort name="none">
55 <displayItem lang="en" name="name">build order</displayItem>
56 </sort>
57 <facet name="dls.Organization">
58 <displayItem lang="en" name="name">organisations</displayItem>
59 </facet>
60 <searchType name="plain"/>
61 <searchType name="simpleform"/>
62 <searchType name="advancedform"/>
63 <format>
64 <gsf:template match="documentNode">
65 <td valign="top">
66 <gsf:link type="document">
67 <gsf:icon type="document"/>
68 </gsf:link>
69 </td>
70 <td>
71 <gsf:link type="document">
72 <gsf:choose-metadata>
73 <gsf:metadata name="dc.Title"/>
74 <gsf:metadata name="exp.Title"/>
75 <gsf:metadata name="ex.dc.Title"/>
76 <gsf:metadata name="Title"/>
77 <gsf:default>Untitled</gsf:default>
78 </gsf:choose-metadata>
79 </gsf:link>
80 </td>
81
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 <importOption name="OIDtype" value="dirname"/>
98 <buildOption name="sections_sort_on_document_metadata" value="unless_section_metadata_exists"/>
99 <browse>
100 <classifier name="List">
101 <option name="-metadata" value="dc.Title"/>
102 <option name="-partition_type_within_level" value="constant_size"/>
103 </classifier>
104 <classifier name="Hierarchy">
105 <option name="-metadata" value="dc.Subject"/>
106 <option name="-sort" value="dc.Title"/>
107 </classifier>
108 <classifier name="List">
109 <option name="-metadata" value="dls.Organization"/>
110 <option name="-sort_leaf_nodes_using" value="dc.Title"/>
111 <option name="-partition_type_within_level" value="constant_size"/>
112 <option name="-bookshelf_type" value="always"/>
113 <option name="-buttonname" value="Organization"/>
114 </classifier>
115 <classifier name="List">
116 <option name="-metadata" value="dls.Keyword"/>
117 <option name="-buttonname" value="Howto"/>
118 <option name="-partition_type_within_level" value="constant_size"/>
119 <format>
120 <gsf:template match="documentNode">
121 <td>
122 <gsf:link type="document">
123 <gsf:metadata name="dls.Keyword"/>
124 </gsf:link>
125 </td>
126 </gsf:template>
127 <gsf:template match="classifierNode">
128 <td>
129 <gsf:link type="classifier">
130 <gsf:metadata name="Title"/>
131 </gsf:link>
132 </td>
133 </gsf:template>
134 </format>
135 </classifier>
136 <format>
137 <gsf:template match="documentNode">
138 <td valign="top">
139 <gsf:link type="document">
140 <gsf:icon type="document"/>
141 </gsf:link>
142 </td>
143 <td valign="top">
144 <gsf:link type="document">
145 <gsf:choose-metadata>
146 <gsf:metadata name="dc.Title"/>
147 <gsf:metadata name="Title"/>
148 <gsf:default>Untitled</gsf:default>
149 </gsf:choose-metadata>
150 </gsf:link>
151 </td>
152 </gsf:template>
153 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
154 <td valign="top">
155 <gsf:link type="classifier">
156 <gsf:icon type="classifier"/>
157 </gsf:link>
158 </td>
159 <td valign="top">
160 <gsf:metadata name="Title"/>
161 </td>
162 </gsf:template>
163 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
164 <gsf:link type="classifier">
165 <gsf:metadata name="Title"/>
166 </gsf:link>
167 </gsf:template>
168 </format>
169 </browse>
170 <display>
171 <format>
172 <gsf:option name="TOC" value="true"/>
173
174 <gsf:headMetaTags>
175 <gsf:metadata name="dc.Title"/>
176 <gsf:metadata name="dc.Subject"/>
177 <gsf:metadata name="dls.Organization"/>
178 </gsf:headMetaTags>
179
180 </format>
181 </display>
182 <replaceListRef id="gs2-standard"/>
183 <serviceRackList>
184 <serviceRack name="RSSRetrieve"/>
185 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
186 <serviceRack name="OAIPMH">
187 <setName>Solr demo collection</setName>
188 <setDescription>A demo collection for Greenstone3, using Solr and JDBM.</setDescription>
189 <!-- uncomment the following and set the name attribute if you want this
190 collection to be part of a super set. -->
191 <!--<oaiSuperSet name="xxx"/>-->
192 <ListMetadataFormats>
193 <!--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:
194 <metadataFormat metadataPrefix="prefix"/> -->
195 <metadataFormat metadataPrefix="oai_dc">
196 <!-- a custom mapping as this collection doesn't have exclusive dc metadata --><!-- this will replace the dc:publisher element from the main set -->
197 <element name="dc:publisher">
198 <mapping elements="dls.Organization"/>
199 </element>
200 </metadataFormat>
201 </ListMetadataFormats>
202 </serviceRack>
203 </serviceRackList>
204</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.