source: documentation/trunk/tutorial_sample_files/beatles/advbeat_large/etc/collectionConfig.xml@ 26132

Last change on this file since 26132 was 26132, checked in by ak19, 12 years ago

An attribute called select has been added to gsf:icon when its file attribute is also set. select's value can be either collection, site or nothing (in which case it defaults to site), which determines where GS3 is to look for the icon file. Updated affected tutorial collectionConfig.xml file for this change to GS3.

File size: 10.3 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 <metadataList>
4 <metadata lang="en" name="creator">[email protected]</metadata>
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="description">Demonstration collection illustrating the use of heterogeneous documents. Source documents are about The Beatles pop group in the following formats: HTML, TXT, JPEG, Word, PDF, MIDI, MP3, and MARC file formats.</displayItem>
10 <displayItem assigned="true" lang="en" name="icon">beatlesmm.png</displayItem>
11 <displayItem assigned="true" lang="en" name="name">Advanced Beatles -- large</displayItem>
12 <displayItem assigned="true" lang="en" name="document:text">document:text</displayItem>
13 <displayItem assigned="true" lang="en" name="document:Source">document:Source</displayItem>
14 <displayItem assigned="true" lang="en" name="document:Title">document:Title</displayItem>
15 <displayItem assigned="true" lang="en" name="text">text</displayItem>
16 <displayItem assigned="true" lang="en" name="ex.Title">Title</displayItem>
17 <displayItem assigned="true" lang="en" name="ex.Source">Source</displayItem>
18 </displayItemList>
19 <format>
20 <gsf:template name="choose-title">
21 <gsf:choose-metadata>
22 <gsf:metadata name="dc.Title"/>
23 <gsf:metadata name="exp.Title"/>
24 <gsf:metadata name="ex.dc.Title"/>
25 <gsf:metadata name="Title"/>
26 <gsf:default>Untitled</gsf:default>
27 </gsf:choose-metadata>
28 </gsf:template>
29 </format>
30 <search type="mg">
31 <index name="document:text">
32 <displayItem lang="en" name="name">document:text</displayItem>
33 </index>
34 <index name="document:Source">
35 <displayItem lang="en" name="name">document:Source</displayItem>
36 </index>
37 <index name="document:Title">
38 <displayItem lang="en" name="name">document:Title</displayItem>
39 </index>
40 <defaultIndex name="document:text"/>
41 <searchType name="plain"/>
42 <searchType name="simpleform"/>
43 <searchType name="advancedform"/>
44 <format>
45 <gsf:template match="documentNode">
46 <td valign="top">
47 <gsf:switch>
48 <gsf:metadata name="numleafdocs"/>
49 <gsf:when test="exists">
50 <gsf:link type="document">
51 <gsf:icon type="document"/>
52 </gsf:link>
53 </gsf:when>
54 </gsf:switch>
55 <gsf:switch>
56 <gsf:metadata name="dc.Format"/>
57 <gsf:when test="equals" test-value="Lyrics">
58 <gsf:link type="document">
59 <gsf:icon file="lyrics.gif" select="collection" />
60 </gsf:link>
61 </gsf:when>
62 </gsf:switch>
63 <gsf:switch>
64 <gsf:metadata name="dc.Format"/>
65 <gsf:when test="equals" test-value="Discography">
66 <gsf:link type="document">
67 <gsf:icon file="disc.gif" select="collection" />
68 </gsf:link>
69 </gsf:when>
70 </gsf:switch>
71 <gsf:switch>
72 <gsf:metadata name="dc.Format"/>
73 <gsf:when test="equals" test-value="Tablature">
74 <gsf:link type="document">
75 <gsf:icon file="tab.gif" select="collection" />
76 </gsf:link>
77 </gsf:when>
78 </gsf:switch>
79 <gsf:switch>
80 <gsf:metadata name="dc.Format"/>
81 <gsf:when test="equals" test-value="MARC">
82 <gsf:link type="document">
83 <gsf:icon file="marc.gif" select="collection" />
84 </gsf:link>
85 </gsf:when>
86 </gsf:switch>
87 <gsf:switch>
88 <gsf:metadata name="dc.Format"/>
89 <gsf:when test="equals" test-value="Images">
90 <gsf:link type="source">
91 <gsf:metadata name="thumbicon"/>
92 </gsf:link>
93 </gsf:when>
94 </gsf:switch>
95 <gsf:switch>
96 <gsf:metadata name="dc.Format"/>
97 <gsf:when test="equals" test-value="Supplementary">
98 <gsf:link type="source">
99 <gsf:metadata name="srcicon"/>
100 </gsf:link>
101 </gsf:when>
102 </gsf:switch>
103 <gsf:switch>
104 <gsf:metadata name="dc.Format"/>
105 <gsf:when test="equals" test-value="Audio">
106 <gsf:link type="source">
107 <gsf:switch>
108 <gsf:metadata name="FileFormat"/>
109 <gsf:when test="equals" test-value="MIDI">
110 <gsf:icon file="midi.gif" select="collection"/>
111 </gsf:when>
112 <gsf:otherwise>
113 <gsf:metadata name="srcicon"/>
114 </gsf:otherwise>
115 </gsf:switch>
116 </gsf:link>
117 </gsf:when>
118 </gsf:switch>
119 </td>
120 <td>
121 <gsf:switch>
122 <gsf:metadata name="numleafdocs"/>
123 <gsf:when test="exists">(<gsf:metadata name="numleafdocs"/>)</gsf:when>
124 </gsf:switch>
125 </td>
126 <td valign="top">
127 <gsf:choose-metadata>
128 <gsf:metadata name="dc.Title"/>
129 <gsf:metadata name="Title"/>
130 <gsf:default>Untitled</gsf:default>
131 </gsf:choose-metadata>
132 </td>
133 </gsf:template>
134 </format>
135 </search>
136 <infodb type="gdbm"/>
137 <import>
138 <pluginList>
139 <plugin name="ZIPPlugin"/>
140 <plugin name="GreenstoneXMLPlugin"/>
141 <plugin name="TextPlugin"/>
142 <plugin name="HTMLPlugin"/>
143 <plugin name="ImagePlugin"/>
144 <plugin name="EmailPlugin"/>
145 <plugin name="PDFPlugin"/>
146 <plugin name="RTFPlugin"/>
147 <plugin name="WordPlugin"/>
148 <plugin name="PostScriptPlugin"/>
149 <plugin name="MARCPlugin"/>
150 <plugin name="MP3Plugin"/>
151 <plugin name="UnknownPlugin">
152 <option name="-process_exp" value="\.mid$"/>
153 <option name="-mime_type" value="audio/midi"/>
154 <option name="-file_format" value="MIDI"/>
155 </plugin>
156 <plugin name="MetadataXMLPlugin"/>
157 <plugin name="ArchivesInfPlugin"/>
158 <plugin name="DirectoryPlugin"/>
159 </pluginList>
160 </import>
161 <browse>
162 <classifier name="AZCompactList">
163 <option name="-mingroup" value="1"/>
164 <option name="-metadata" value="dc.Title,Title"/>
165 <option name="-minnesting" value="20"/>
166 <option name="-firstvalueonly"/>
167 <option name="-removesuffix" value="(?i)(\\s+\\d+)|(\\s*[[:punct:]]\\s+.*)|(\\s+&amp;#091;.*)|(\\s*by the beatles\\s*)"/>
168 <option name="-buttonname" value="Title"/>
169 <option name="-removeprefix" value="(?i)\\s*beatles\\s+\\-\\s+"/>
170 </classifier>
171 <classifier name="AZCompactList">
172 <option name="-metadata" value="dc.Format"/>
173 <option name="-buttonname" value="Browse"/>
174 <option name="-sort" value="Title"/>
175 </classifier>
176 <classifier name="Collage"/>
177 <format> <gsf:template match="documentNode">
178 <td valign="top">
179 <gsf:switch>
180 <gsf:metadata name="dc.Format"/>
181 <gsf:when test="equals" test-value="Lyrics">
182 <gsf:link type="document">
183 <gsf:icon file="lyrics.gif"/>
184 </gsf:link>
185 </gsf:when>
186 <gsf:when test="equals" test-value="Discography">
187 <gsf:link type="document">
188 <gsf:icon file="disc.gif"/>
189 </gsf:link>
190 </gsf:when>
191 <gsf:when test="equals" test-value="Tablature">
192 <gsf:link type="document">
193 <gsf:icon file="tab.gif"/>
194 </gsf:link>
195 </gsf:when>
196 <gsf:when test="equals" test-value="MARC">
197 <gsf:link type="document">
198 <gsf:icon file="marc.gif"/>
199 </gsf:link>
200 </gsf:when>
201 <gsf:when test="equals" test-value="Images">
202 <gsf:link type="source">
203 <gsf:metadata name="thumbicon"/>
204 </gsf:link>
205 </gsf:when>
206 <gsf:when test="equals" test-value="Supplementary">
207 <gsf:link type="source">
208 <gsf:metadata name="srcicon"/>
209 </gsf:link>
210 </gsf:when>
211 <gsf:when test="equals" test-value="Audio">
212 <gsf:link type="source">
213 <gsf:switch>
214 <gsf:metadata name="FileFormat"/>
215 <gsf:when test="equals" test-value="MIDI">
216 <gsf:icon file="midi.gif"/>
217 </gsf:when>
218 <gsf:otherwise>
219 <gsf:metadata name="srcicon"/>
220 </gsf:otherwise>
221 </gsf:switch>
222 </gsf:link>
223 </gsf:when>
224 </gsf:switch>
225 </td>
226 <td valign="top">
227 <gsf:link type="document">
228<!--
229Defined in the global format statement
230-->
231 <xsl:call-template name="choose-title"/>
232 </gsf:link>
233 </td>
234 </gsf:template>
235 <gsf:template match="classifierNode[@classifierStyle = 'VList']">
236 <td valign="top">
237 <gsf:link type="classifier">
238 <gsf:icon type="classifier"/>
239 </gsf:link>
240 </td>
241 <td valign="top">
242 <gsf:link type="source">
243 <gsf:choose-metadata>
244 <gsf:metadata name="thumbicon"/>
245 <gsf:metadata name="srcicon"/>
246 </gsf:choose-metadata>
247 </gsf:link>
248 </td>
249 <td valign="top">
250<!--
251Defined in the global format statement
252-->
253 <xsl:call-template name="choose-title"/>
254 </td>
255 <td>(<gsf:metadata name="numleafdocs"/>)</td>
256 </gsf:template>
257 <gsf:template match="classifierNode[@classifierStyle = 'HList']">
258 <gsf:link type="classifier">
259 <gsf:metadata name="Title"/>
260 </gsf:link>
261 </gsf:template>
262
263</format>
264 </browse>
265 <display>
266 <format>
267 <gsf:option name="TOC" value="true"/>
268<!--
269Overwriting this template allows you to change the heading of the document.
270-->
271<!--
272<gsf:template name="documentHeading"><span style="font-weight:bold; font-size: 120%;"><xsl:call-template name="choose-title"/></span></gsf:template>
273-->
274<!--
275Overwriting this template can be used to redefine the content of the whole document.This is useful for simple documents, but not recommended for more complex documents(e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
276-->
277<!--
278<gsf:template name="documentContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
279-->
280<!--
281Overwriting this template can be used to change the content of section headings.
282-->
283<!--
284<gsf:template name="sectionHeading"><xsl:call-template name="choose-title"/></gsf:template>
285-->
286<!--
287Overwriting this template can be used to change the content of the top-level section.
288-->
289<!--
290<gsf:template name="topLevelSectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
291-->
292<!--
293Overwriting this template can be used to change the content of sections.
294-->
295<!--
296<gsf:template name="sectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
297-->
298 </format>
299 </display>
300 <replaceListRef id="gs2-standard"/>
301 <replaceListRef id="gs2-image"/>
302</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.