source: test-collections/trunk/macron/etc/collectionConfig.bak@ 32658

Last change on this file since 32658 was 32658, checked in by ak19, 5 years ago

Macron test collection. Useful for testing unicode fulltxt contents and metadata. This particular collection is set up with the GreenstoneSQLPlugout and GreenstoneSQLPlugin. Change to GreenstoneXML plugs if necessary.

  • Property svn:executable set to *
File size: 7.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <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="name">macron</displayItem>
10 <displayItem assigned="true" lang="en" name="text">text</displayItem>
11 <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,Title">titles</displayItem>
12 <displayItem assigned="true" lang="en" name="Source">filenames</displayItem>
13 <displayItem assigned="true" lang="en" name="document:text">text</displayItem>
14 <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem>
15 <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem>
16 <displayItem assigned="true" lang="en" name="document">document</displayItem>
17 <displayItem assigned="true" lang="en" name="section">section</displayItem>
18 <displayItem assigned="true" lang="en" name="shortDescription">macron</displayItem>
19 </displayItemList>
20 <format>
21 <gsf:template name="choose-title">
22 <gsf:choose-metadata>
23 <gsf:metadata name="dc.Title"/>
24 <gsf:metadata name="exp.Title"/>
25 <gsf:metadata name="ex.dc.Title"/>
26 <gsf:metadata name="Title"/>
27 <gsf:default>Untitled</gsf:default>
28 </gsf:choose-metadata>
29 </gsf:template>
30 </format>
31 <search type="lucene">
32 <level name="document">
33 <displayItem lang="en" name="name">document</displayItem>
34 </level>
35 <level name="section">
36 <displayItem lang="en" name="name">section</displayItem>
37 </level>
38 <defaultLevel name="document"/>
39 <index name="text">
40 <displayItem lang="en" name="name">text</displayItem>
41 </index>
42 <index name="dc.Title,ex.dc.Title,Title">
43 <displayItem lang="en" name="name">titles</displayItem>
44 </index>
45 <index name="Source">
46 <displayItem lang="en" name="name">filenames</displayItem>
47 </index>
48 <defaultIndex name="text"/>
49 <sort name="rank">
50 <displayItem lang="en" name="name">rank</displayItem>
51 </sort>
52 <sort name="none">
53 <displayItem lang="en" name="name">natural (build) order</displayItem>
54 </sort>
55 <searchType name="plain"/>
56 <searchType name="simpleform"/>
57 <searchType name="advancedform"/>
58 <format>
59 <gsf:template match="documentNode">
60 <td valign="top">
61 <gsf:link type="document">
62 <gsf:icon type="document"/>
63 </gsf:link>
64 </td>
65 <td>
66 <gsf:link type="document">
67 <xsl:call-template name="choose-title"/>
68 </gsf:link>
69 </td>
70 </gsf:template>
71 </format>
72 </search>
73 <infodb type="jdbm"/>
74 <import>
75 <pluginList>
76 <plugin name="ZIPPlugin"/>
77 <plugin name="GreenstoneSQLPlugin">
78 <option name="-process_mode" value="all"/>
79 <option name="-db_driver" value="mysql"/>
80 <option name="-db_client_user" value="root"/>
81 <option name="-db_client_pwd" value="6reenstone3"/>
82 <option name="-db_host" value="127.0.0.1"/>
83 </plugin>
84 <plugin name="TextPlugin"/>
85 <plugin name="HTMLPlugin"/>
86 <plugin name="EmailPlugin"/>
87 <plugin name="PDFv2Plugin"/>
88 <plugin name="RTFPlugin"/>
89 <plugin name="WordPlugin"/>
90 <plugin name="PostScriptPlugin"/>
91 <plugin name="PowerPointPlugin"/>
92 <plugin name="ExcelPlugin"/>
93 <plugin name="ImagePlugin"/>
94 <plugin name="ISISPlugin"/>
95 <plugin name="NulPlugin"/>
96 <plugin name="OAIPlugin"/>
97 <plugin name="MetadataXMLPlugin"/>
98 <plugin name="ArchivesInfPlugin"/>
99 <plugin name="DirectoryPlugin"/>
100 </pluginList>
101 </import>
102 <browse>
103 <classifier name="List">
104 <option name="-metadata" value="dc.Title;Title"/>
105 <option name="-partition_type_within_level" value="approximate_size"/>
106 </classifier>
107 <classifier name="List">
108 <option name="-metadata" value="Source"/>
109 <option name="-partition_type_within_level" value="approximate_size"/>
110 </classifier>
111 <format>
112 <gsf:template match="documentNode">
113 <td valign="top">
114 <gsf:link type="document">
115 <gsf:icon type="document"/>
116 </gsf:link>
117 </td>
118 <td valign="top">
119 <gsf:link type="source">
120 <gsf:choose-metadata>
121 <gsf:metadata name="thumbicon"/>
122 <gsf:metadata name="srcicon"/>
123 </gsf:choose-metadata>
124 </gsf:link>
125 </td>
126 <td valign="top">
127 <gsf:link type="document">
128<!--
129Defined in the global format statement
130-->
131 <xsl:call-template name="choose-title"/>
132 <gsf:switch>
133 <gsf:metadata name="Source"/>
134 <gsf:when test="exists">
135 <br/>
136 <i>(<gsf:metadata name="Source"/>)</i>
137 </gsf:when>
138 </gsf:switch>
139 </gsf:link>
140 </td>
141 </gsf:template>
142 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
143 <td valign="top">
144 <gsf:link style="static" type="classifier">
145 <gsf:icon type="classifier"/>
146 </gsf:link>
147 </td>
148 <td valign="top">
149 <gsf:link type="classifier">
150 <gsf:metadata name="Title"/>
151 </gsf:link>
152 </td>
153 </gsf:template>
154 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
155 <gsf:link type="classifier">
156 <gsf:metadata name="Title"/>
157 </gsf:link>
158 </gsf:template>
159 </format>
160 </browse>
161 <display>
162 <format>
163 <gsf:option name="TOC" value="true"/>
164 <gsf:option name="AllowUserComments" value="false"/>
165<!--
166Overwriting this template allows you to change the heading of the document.
167-->
168<!--
169<gsf:template name="documentHeading">
170 <span style="font-weight:bold; font-size: 120%;">
171 <xsl:call-template name="choose-title"/>
172 </span>
173 </gsf:template>
174-->
175<!--
176Overwriting this template can be used to redefine the content of the whole document.
177 This is useful for simple documents, but not recommended for more complex documents
178 (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
179-->
180<!--
181<gsf:template name="documentContent">
182 <xsl:call-template name="wrappedSectionImage"/>
183 <xsl:call-template name="wrappedSectionText"/>
184 </gsf:template>
185-->
186<!--
187Overwriting this template can be used to change the content of section headings.
188-->
189<!--
190<gsf:template name="sectionHeading">
191 <xsl:call-template name="choose-title"/>
192 </gsf:template>
193-->
194<!--
195Overwriting this template can be used to change the content of the top-level section.
196-->
197<!--
198<gsf:template name="topLevelSectionContent">
199 <xsl:call-template name="wrappedSectionImage"/>
200 <xsl:call-template name="wrappedSectionText"/>
201 </gsf:template>
202-->
203<!--
204Overwriting this template can be used to change the content of sections.
205-->
206<!--
207<gsf:template name="sectionContent">
208 <xsl:call-template name="wrappedSectionImage"/>
209 <xsl:call-template name="wrappedSectionText"/>
210 </gsf:template>
211-->
212 </format>
213 </display>
214 <replaceListRef id="gs2-standard"/>
215 <replaceListRef id="gs2-image"/>
216 <serviceRackList><!-- comment out the following serviceRack if you want to disable RSS for this collection -->
217 <serviceRack name="RSSRetrieve"/><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
218 <serviceRack name="OAIPMH">
219 <setName>macron</setName>
220 <setDescription/><!-- uncomment the following and set the name attribute if
221 you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>-->
222 <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:
223 <metadataFormat metadataPrefix="prefix"/> -->
224 <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat>
225 </ListMetadataFormats>
226 </serviceRack>
227 </serviceRackList>
228</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.