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