source: documented-examples/trunk/bibtex-e/etc/collectionConfig.xml@ 36258

Last change on this file since 36258 was 36258, checked in by anupama, 23 months ago

DEC's bibtex-e collection for GS3, only English properties file so far. But it took a while to get the metadata set up and display as I wanted, and for the basic functionality to work as in GS2. No Phind classifier sadly.

File size: 16.7 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">[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="name">Bibliography collection</displayItem>
10 <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
11 <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
12 <displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
13 <displayItem assigned="true" dictionary="collectionConfig" key="description2" name="description2"/>
14 <displayItem assigned="true" dictionary="collectionConfig" key="description3" name="description3"/>
15 <displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description4"/>
16 <displayItem assigned="true" dictionary="collectionConfig" key="description5" name="description5"/>
17 <displayItem assigned="true" dictionary="collectionConfig" key="description6" name="description6"/>
18 <displayItem assigned="true" dictionary="collectionConfig" key="description7" name="description7"/>
19 <displayItem assigned="true" dictionary="collectionConfig" key="description8" name="description8"/>
20 <displayItem assigned="true" dictionary="collectionConfig" key="description9" name="description9"/>
21 <displayItem assigned="true" dictionary="collectionConfig" key="description10" name="description10"/>
22 <displayItem assigned="true" dictionary="collectionConfig" key="description11" name="description11"/>
23 <displayItem assigned="true" dictionary="collectionConfig" key="description12" name="description12"/>
24 <displayItem assigned="true" dictionary="collectionConfig" key="description13" name="description13"/>
25 <displayItem assigned="true" dictionary="collectionConfig" key="ShowBibTeXrecord" name="ShowBibTeXrecord"/>
26 <displayItem assigned="true" dictionary="collectionConfig" key="HideBibTeXrecord" name="HideBibTeXrecord"/>
27 <displayItem assigned="true" dictionary="collectionConfig" key="Number" name="Number"/>
28 <displayItem assigned="true" dictionary="collectionConfig" key="AuthoredBy" name="AuthoredBy"/>
29 <displayItem assigned="true" dictionary="collectionConfig" key="PaperTitle" name="PaperTitle"/>
30 <displayItem assigned="true" dictionary="collectionConfig" key="DocType" name="DocType"/>
31 <displayItem assigned="true" dictionary="collectionConfig" key="BookJournalTitle" name="BookJournalTitle"/>
32 <displayItem assigned="true" dictionary="collectionConfig" key="BibTeXrecord" name="BibTeXrecord"/>
33 <displayItem assigned="true" dictionary="collectionConfig" key="PublicationDate" name="PublicationDate"/>
34 <displayItem assigned="true" dictionary="collectionConfig" key="Editors" name="Editors"/>
35 <displayItem assigned="true" dictionary="collectionConfig" key="PublicationPlace" name="PublicationPlace"/>
36 <displayItem assigned="true" dictionary="collectionConfig" key="Annotations" name="Annotations"/>
37 <displayItem assigned="true" dictionary="collectionConfig" key="Abstract" name="Abstract"/>
38 <displayItem assigned="true" dictionary="collectionConfig" key="Pages" name="Pages"/>
39 <displayItem assigned="true" dictionary="collectionConfig" key="Keywords" name="Keywords"/>
40 <displayItem assigned="true" dictionary="collectionConfig" key="In" name="In"/>
41 <displayItem assigned="true" dictionary="collectionConfig" key="EditorRole" name="EditorRole"/>
42 <displayItem assigned="true" dictionary="collectionConfig" key="Vol" name="Vol"/>
43 <displayItem assigned="true" dictionary="collectionConfig" key="MeetingPlace" name="MeetingPlace"/>
44 <displayItem assigned="true" dictionary="collectionConfig" key="Publisher" name="Publisher"/>
45 <displayItem assigned="true" dictionary="collectionConfig" key="LocationURL" name="LocationURL"/>
46 <displayItem assigned="true" dictionary="collectionConfig" key="MeetingDate" name="MeetingDate"/>
47 <displayItem assigned="true" dictionary="collectionConfig" key="source_text" name="source_text"/>
48 <displayItem assigned="true" dictionary="collectionConfig" key="text_text" name="text_text"/>
49 <displayItem assigned="true" dictionary="collectionConfig" key="Title_text" name="Title_text"/>
50 </displayItemList>
51 <format/>
52 <search type="mgpp">
53 <level name="document"/>
54 <defaultLevel name="document"/>
55 <index name="Number"/>
56 <index name="Date"/>
57 <index name="lastmodified"/>
58 <index name="FileFormat"/>
59 <index name="Creator"/>
60 <index name="oailastmodifieddate"/>
61 <index name="SourceFile"/>
62 <index name="Language"/>
63 <index name="EntryType"/>
64 <index name="URL"/>
65 <index name="Title">
66 <displayItem lang="en" name="name">Title</displayItem>
67 <displayItem lang="es" name="name">Title</displayItem>
68 </index>
69 <index name="lastmodifieddate"/>
70 <index name="Abstract"/>
71 <index name="SourceSegment"/>
72 <index name="Pages"/>
73 <index name="Keywords"/>
74 <index name="Author"/>
75 <index name="Year"/>
76 <index name="Source">
77 <displayItem lang="en" name="name">Source</displayItem>
78 <displayItem lang="es" name="name">Source</displayItem>
79 </index>
80 <index name="text">
81 <displayItem lang="fr" name="name">text</displayItem>
82 <displayItem lang="en" name="name">text</displayItem>
83 <displayItem lang="ru" name="name">text</displayItem>
84 <displayItem lang="es" name="name">text</displayItem>
85 <displayItem lang="zh" name="name">text</displayItem>
86 </index>
87 <index name="oailastmodified"/>
88 <index name="Encoding"/>
89 <index name="Plugin"/>
90 <index name="Publisher"/>
91 <index name="Month"/>
92 <index name="Keyword"/>
93 <defaultIndex name="text"/>
94 <indexOption name="casefold"/>
95 <indexOption name="stem"/>
96 <searchType name="plain"/>
97 <searchType name="simpleform"/>
98 <searchType name="advancedform"/>
99 <format>
100 <gsf:template match="documentNode">
101 <gsf:format-gs2><![CDATA[
102<td valign=top>[link][icon][/link]
103</td>
104<td valign=top>
105<b>[Title]
106</b> -
107<i>{Or}{[Creator],[Editor]}
108</i> {If}{[Year], - [Month] [Year]}
109</td>]]></gsf:format-gs2>
110 <td valign="top">
111 <gsf:link type="document">
112 <gsf:icon type="document"/>
113 </gsf:link>
114 </td>
115 <td valign="top"><b><gsf:metadata name="Title"/></b> -<i><gsf:choose-metadata><gsf:metadata name="Creator"/><gsf:metadata name="Editor"/></gsf:choose-metadata></i><gsf:switch><gsf:metadata name="Year"/><gsf:when test="exists">-<gsf:metadata name="Month"/><gsf:metadata name="Year"/></gsf:when></gsf:switch></td>
116 </gsf:template>
117 </format>
118 </search>
119 <infodb type="gdbm"/>
120 <import>
121 <pluginList>
122 <plugin name="BibTexPlugin">
123 <option name="-OIDtype" value="assigned"/>
124 <option name="-OIDmetadata" value="Number"/>
125 </plugin>
126 <plugin name="GreenstoneXMLPlugin"/>
127 <plugin name="MetadataXMLPlugin"/>
128 <plugin name="ArchivesInfPlugin"/>
129 <plugin name="DirectoryPlugin"/>
130 </pluginList>
131 </import>
132 <browse>
133 <classifier name="AZList">
134 <option name="-metadata" value="Title"/>
135 </classifier>
136 <classifier name="AZCompactList">
137 <option name="-metadata" value="Author"/>
138 <option name="-buttonname" value="Creator"/>
139 <format>
140 <gsf:template match="documentNode">
141 <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td> <td valign=top>{If}{[numleafdocs],<b>[Title]</b>, <b>[Author]</b> ([Creator]) -- <i>[Title]</i>} {If}{[Year], - [Month] [Year]}</td>]]></gsf:format-gs2>
142 <td valign="top">
143 <gsf:link type="document">
144 <gsf:icon type="document"/>
145 </gsf:link>
146 </td>
147 <td valign="top"><b><gsf:metadata name="Author"/></b> (<gsf:metadata name="Creator"/>) --<i><gsf:metadata name="Title"/></i><gsf:switch><gsf:metadata name="Year"/><gsf:when test="exists">-<gsf:metadata name="Month"/><gsf:metadata name="Year"/></gsf:when></gsf:switch></td>
148 </gsf:template>
149 <gsf:template match="classifierNode">
150 <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td> <td valign=top>{If}{[numleafdocs],<b>[Title]</b>, <b>[Author]</b> ([Creator]) -- <i>[Title]</i>} {If}{[Year], - [Month] [Year]}</td>]]></gsf:format-gs2>
151 <td valign="top">
152 <gsf:link type="classifier">
153 <gsf:icon type="classifier"/>
154 </gsf:link>
155 </td>
156 <td valign="top">
157 <b>
158 <gsf:metadata name="Title"/>
159 </b>
160 <gsf:switch>
161 <gsf:metadata name="Year"/>
162 <gsf:when test="exists">-<gsf:metadata name="Month"/><gsf:metadata name="Year"/></gsf:when>
163 </gsf:switch>
164 </td>
165 </gsf:template>
166 </format>
167 </classifier>
168 <classifier name="DateList">
169 <option name="-metadata" value="Date"/>
170 <format>
171 <gsf:template match="documentNode">
172 <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td> <td valign=top><b>[Title]</b> - <i>{Or}{[Creator],[Editor]}</i></td>]]></gsf:format-gs2>
173 <td valign="top">
174 <gsf:link type="document">
175 <gsf:icon type="document"/>
176 </gsf:link>
177 </td>
178 <td valign="top"><b><gsf:metadata name="Title"/></b> -<i><gsf:choose-metadata><gsf:metadata name="Creator"/><gsf:metadata name="Editor"/></gsf:choose-metadata></i></td>
179 </gsf:template>
180 </format>
181 </classifier>
182 <format>
183 <gsf:template match="documentNode">
184 <gsf:format-gs2><![CDATA[
185<td valign=top>[link][icon][/link]
186</td>
187<td valign=top>
188<b>[Title]
189</b> -
190<i>{Or}{[Creator],[Editor]}
191</i> {If}{[Year], - [Month] [Year]}
192</td>]]></gsf:format-gs2>
193 <td valign="top">
194 <gsf:link type="document">
195 <gsf:icon type="document"/>
196 </gsf:link>
197 </td>
198 <td valign="top"><b><gsf:metadata name="Title"/></b> -<i><gsf:choose-metadata><gsf:metadata name="Creator"/><gsf:metadata name="Editor"/></gsf:choose-metadata></i><gsf:switch><gsf:metadata name="Year"/><gsf:when test="exists">-<gsf:metadata name="Month"/><gsf:metadata name="Year"/></gsf:when></gsf:switch></td>
199 </gsf:template>
200 <gsf:template match="classifierNode">
201 <gsf:format-gs2><![CDATA[
202<td valign=top>[link][icon][/link]
203</td>
204<td valign=top>
205<b>[Title]
206</b> -
207<i>{Or}{[Creator],[Editor]}
208</i> {If}{[Year], - [Month] [Year]}
209</td>]]></gsf:format-gs2>
210 <td valign="top">
211 <gsf:link type="classifier">
212 <gsf:icon type="classifier"/>
213 </gsf:link>
214 </td>
215 <td valign="top"><b><gsf:metadata name="Title"/></b> -<i><gsf:choose-metadata><gsf:metadata name="Creator"/><gsf:metadata name="Editor"/></gsf:choose-metadata></i><gsf:switch><gsf:metadata name="Year"/><gsf:when test="exists">-<gsf:metadata name="Month"/><gsf:metadata name="Year"/></gsf:when></gsf:switch></td>
216 </gsf:template>
217 <gsf:template match="classifierNode" mode="horizontal">
218 <gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
219 <gsf:link type="classifier">
220 <span class="highlight">
221 <gsf:metadata name="Title"/>
222 </span>
223 </gsf:link>
224 </gsf:template>
225 </format>
226 </browse>
227 <display>
228 <format> <gsf:option name="TOC" value="true"/>
229 <gsf:option name="AllowUserComments" value="false"/>
230 <gsf:template name="documentHeading">
231 <gsf:switch><gsf:metadata name="Title"/><gsf:when test="exists"><h3><gsf:metadata name="Title"/></h3></gsf:when></gsf:switch><br/>
232 <hr/>
233
234 <gsf:switch><gsf:metadata name="Title"/><gsf:when test="exists"><b><gsf:displayItem name="PaperTitle"/>:</b><gsf:metadata name="Title"/><br/></gsf:when></gsf:switch>
235 <gsf:switch><gsf:metadata name="Creator"/><gsf:when test="exists"><b><gsf:displayItem name="AuthoredBy"/>:</b> <gsf:metadata name="Creator"/><br/></gsf:when></gsf:switch>
236 <gsf:switch><gsf:metadata name="Editor"/><gsf:when test="exists"><b><gsf:displayItem name="Editors"/>:</b> <gsf:metadata name="Editor"/><br/></gsf:when></gsf:switch>
237
238 <gsf:switch><gsf:metadata name="EditorRole"/><gsf:when test="exists"><b><gsf:displayItem name="EditorRole"/>:</b> <gsf:metadata name="EditorRole"/><br/></gsf:when></gsf:switch>
239 <gsf:switch><gsf:metadata name="Booktitle"/><gsf:when test="exists"><b><gsf:displayItem name="BookJournalTitle"/>:</b> <gsf:metadata name="Booktitle"/><br/></gsf:when></gsf:switch>
240 <gsf:switch><gsf:metadata name="Journal"/><gsf:when test="exists"><b><gsf:displayItem name="In"/>:</b> <gsf:metadata name="Journal"/><br/></gsf:when></gsf:switch>
241
242 <gsf:switch><gsf:metadata name="Volume"/><gsf:when test="exists">
243 <gsf:switch><gsf:metadata name="Number"/><gsf:when test="exists">
244 <b><gsf:displayItem name="Vol"/>:</b> <gsf:metadata name="Volume"/><br/>
245 <b><gsf:displayItem name="Number"/>:</b> <gsf:metadata name="Number"/><br/>
246 </gsf:when></gsf:switch>
247 </gsf:when>
248 <gsf:otherwise>
249 <gsf:switch><gsf:metadata name="Number"/><gsf:when test="exists"><b><gsf:displayItem name="Number"/>:</b> <gsf:metadata name="Number"/><br/></gsf:when></gsf:switch>
250 </gsf:otherwise>
251 </gsf:switch>
252
253 <gsf:switch><gsf:metadata name="MeetingDate"/><gsf:when test="exists"><b><gsf:displayItem name="MeetingDate"/>:</b> <gsf:metadata name="MeetingDate"/><br/></gsf:when></gsf:switch>
254 <gsf:switch><gsf:metadata name="MeetingPlace"/><gsf:when test="exists"><b><gsf:displayItem name="MeetingPlace"/>:</b> <gsf:metadata name="MeetingPlace"/><br/></gsf:when></gsf:switch>
255 <gsf:switch><gsf:metadata name="PublicationPlace"/><gsf:when test="exists"><b><gsf:displayItem name="PublicationPlace"/>:</b> <gsf:metadata name="PublicationPlace"/><br/></gsf:when></gsf:switch>
256
257 <gsf:switch><gsf:metadata name="Publisher"/><gsf:when test="exists"><b><gsf:displayItem name="Publisher"/>:</b> <gsf:metadata name="Publisher"/><br/></gsf:when></gsf:switch>
258 <gsf:switch><gsf:metadata name="Year"/><gsf:when test="exists"><b><gsf:displayItem name="PublicationDate"/>:</b> <gsf:metadata name="Year"/><br/></gsf:when></gsf:switch>
259 <gsf:switch><gsf:metadata name="Pages"/><gsf:when test="exists"><b><gsf:displayItem name="Pages"/>:</b> <gsf:metadata name="Pages"/><br/></gsf:when></gsf:switch>
260
261 <gsf:switch><gsf:metadata name="DocType"/><gsf:when test="exists"><b><gsf:displayItem name="DocType"/>:</b> <gsf:metadata name="DocType"/><br/></gsf:when></gsf:switch>
262 <gsf:switch><gsf:metadata name="Location"/><gsf:when test="exists"><b><gsf:displayItem name="LocationURL"/>:</b> <gsf:metadata name="Location"/><br/></gsf:when></gsf:switch>
263
264 <gsf:switch><gsf:metadata name="Notes"/><gsf:when test="exists"><b><gsf:displayItem name="Annotations"/>:</b> <gsf:metadata name="Notes"/><br/></gsf:when></gsf:switch>
265 <gsf:switch><gsf:metadata name="Abstract"/><gsf:when test="exists"><b><gsf:displayItem name="Abstract"/>:</b> <gsf:metadata name="Abstract"/><br/></gsf:when></gsf:switch>
266 <gsf:switch><gsf:metadata name="Keywords"/><gsf:when test="exists"><b><gsf:displayItem name="Keywords"/>:</b> <gsf:metadata name="Keywords"/><br/></gsf:when></gsf:switch>
267
268 <hr/>
269 </gsf:template>
270
271 <gsf:template name="documentContent">
272 <div id="gs-document">
273 <xsl:call-template name="documentPre"/>
274 <xsl:call-template name="wrappedSectionImage"/>
275 <div id="gs-document-text">
276 <div id="bibrecord" style="display:none">
277 <b>Bibtex Record:</b>
278 <br/>
279 <xsl:call-template name="documentNodeText"/>
280 </div>
281 <center><a href="javascript:;" id="bibreclink">Show/Hide Record</a></center>
282 </div>
283 </div>
284
285 <script type="text/javascript">
286 <xsl:text disable-output-escaping="yes">
287 var link=document.getElementById("bibreclink");
288 var div=document.getElementById("bibrecord");
289 gs.functions.makeToggle(link, div);
290 </xsl:text>
291 </script>
292 </gsf:template>
293<!--
294Overwriting this template allows you to change the heading of the document.
295-->
296<!--
297<gsf:template name="documentHeading">
298<span style="font-weight:bold; font-size: 120%;">
299<xsl:call-template name="choose-title"/>
300</span>
301</gsf:template>
302-->
303<!--
304Overwriting 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.
305-->
306<!--
307<gsf:template name="documentContent">
308<div id="gs-document">
309<xsl:call-template name="documentPre"/>
310<xsl:call-template name="wrappedSectionImage"/>
311<div id="gs-document-text">
312<xsl:call-template name="documentNodeText"/>
313</div>
314</div>
315</gsf:template>
316-->
317<!--
318Overwriting this template can be used to change the content of section headings.
319-->
320<!--
321<gsf:template name="sectionHeading">
322<xsl:call-template name="choose-title"/>
323</gsf:template>
324-->
325<!--
326Overwriting this template can be used to change the content of the top-level section.
327-->
328<!--
329<gsf:template name="topLevelSectionContent">
330<xsl:call-template name="wrappedSectionImage"/>
331<xsl:call-template name="wrappedSectionText"/>
332</gsf:template>
333-->
334<!--
335Overwriting this template can be used to change the content of sections.
336-->
337<!--
338<gsf:template name="sectionContent">
339<xsl:call-template name="wrappedSectionImage"/>
340<xsl:call-template name="wrappedSectionText"/>
341</gsf:template>
342-->
343
344</format>
345 </display>
346 <replaceListRef id="gs2-standard"/>
347</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.