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

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

removed displayItems that are not needed as we can get the strings from the dictionaries

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