source: documented-examples/trunk/isis-e/etc/collectionConfig.xml@ 36274

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

I think I've now finished up the basic changes for the isis-e collection by overriding the documentHeading and documentContent templates (as for bibtex-e) to do what the GS2 version did, having worked out that the existing documentContent was coming from the perl plugins (IsisPlugin) which appears hardcoded to use English strings. However, the GS2 format statements used macros, so converting these to their GS3 equivalents (manually, as for bibtex-e collection), produced what I wanted. I can't work out where the GS2 runtime-src's formattools.cpp handles or should handle documentHeading/documentContent, in order to get this automatically converted with the formatconversion wizard.

File size: 18.6 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">CDS/ISIS example</displayItem>
10 <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
11 <displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
12 <displayItem assigned="true" dictionary="collectionConfig" key="description2" name="description2"/>
13 <displayItem assigned="true" dictionary="collectionConfig" key="description3" name="description3"/>
14 <displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description4"/>
15 <displayItem assigned="true" dictionary="collectionConfig" key="description5" name="description5"/>
16 <displayItem assigned="true" dictionary="collectionConfig" key="description6" name="description6"/>
17 <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
18 <displayItem assigned="true" dictionary="collectionConfig" key="Collation" name="Collation"/>
19 <displayItem assigned="true" dictionary="collectionConfig" key="HideCDSrecord" name="HideCDSrecord"/>
20 <displayItem assigned="true" dictionary="collectionConfig" key="CorporateAuthors" name="CorporateAuthors"/>
21 <displayItem assigned="true" dictionary="collectionConfig" key="ShowCDSrecord" name="ShowCDSrecord"/>
22 <displayItem assigned="true" dictionary="collectionConfig" key="Series" name="Series"/>
23 <displayItem assigned="true" dictionary="collectionConfig" key="Authors" name="Authors"/>
24 <displayItem assigned="true" dictionary="collectionConfig" key="OtherLanguageTitles" name="OtherLanguageTitles"/>
25 <displayItem assigned="true" dictionary="collectionConfig" key="Imprint" name="Imprint"/>
26 <displayItem assigned="true" dictionary="collectionConfig" key="Keywords" name="Keywords"/>
27 <displayItem assigned="true" dictionary="collectionConfig" key="Title" name="Title"/>
28 <displayItem assigned="true" dictionary="collectionConfig" key="Conference" name="Conference"/>
29 <displayItem assigned="true" dictionary="collectionConfig" key="Notes" name="Notes"/>
30 <displayItem assigned="true" dictionary="collectionConfig" key="CDSrecord" name="CDSrecord"/>
31 <displayItem assigned="true" dictionary="collectionConfig" key="AddedTitle" name="AddedTitle"/>
32 <displayItem assigned="true" dictionary="collectionConfig" key="Edition" name="Edition"/>
33 <displayItem assigned="true" dictionary="collectionConfig" key="Meetings" name="Meetings"/>
34 <displayItem assigned="true" dictionary="collectionConfig" key=".Notes^all" name=".Notes^all"/>
35 <displayItem assigned="true" dictionary="collectionConfig" key=".PersonalAuthors^all" name=".PersonalAuthors^all"/>
36 <displayItem assigned="true" dictionary="collectionConfig" key=".AddedTitle^all" name=".AddedTitle^all"/>
37 <displayItem assigned="true" dictionary="collectionConfig" key=".Imprint^all" name=".Imprint^all"/>
38 <displayItem assigned="true" dictionary="collectionConfig" key=".ConferenceMainEntry^all" name=".ConferenceMainEntry^all"/>
39 <displayItem assigned="true" dictionary="collectionConfig" key=".CorporateBodies^all" name=".CorporateBodies^all"/>
40 <displayItem assigned="true" dictionary="collectionConfig" key=".Series^all" name=".Series^all"/>
41 <displayItem assigned="true" dictionary="collectionConfig" key=".OtherLanguageTitles^all" name=".OtherLanguageTitles^all"/>
42 <displayItem assigned="true" dictionary="collectionConfig" key=".Keywords^all" name=".Keywords^all"/>
43 <displayItem assigned="true" dictionary="collectionConfig" key=".Collation^all" name=".Collation^all"/>
44 <displayItem assigned="true" dictionary="collectionConfig" key=".Title^all" name=".Title^all"/>
45 <displayItem assigned="true" dictionary="collectionConfig" key=".text" name=".text"/>
46 <displayItem assigned="true" dictionary="collectionConfig" key=".Meetings^all" name=".Meetings^all"/>
47 <displayItem assigned="true" dictionary="collectionConfig" key=".Edition^all" name=".Edition^all"/>
48 </displayItemList>
49 <format/>
50 <search type="mgpp">
51 <level name="document"/>
52 <defaultLevel name="document"/>
53 <index name="PersonalAuthors^all"/>
54 <index name="ConferenceMainEntry^all"/>
55 <index name="CorporateBodies^all"/>
56 <index name="text"/>
57 <index name="OtherLanguageTitles^all"/>
58 <index name="Series^all"/>
59 <index name="Keywords^all"/>
60 <index name="Imprint^all"/>
61 <index name="Collation^all"/>
62 <index name="Edition^all"/>
63 <index name="Notes^all"/>
64 <index name="Title^all"/>
65 <index name="AddedTitle^all"/>
66 <index name="Meetings^all"/>
67 <defaultIndex name="ConferenceMainEntry^all"/>
68 <indexOption name="casefold"/>
69 <indexOption name="stem"/>
70 <searchType name="plain"/>
71 <searchType name="simpleform"/>
72 <searchType name="advancedform"/>
73 <format>
74 <gsf:template match="documentNode">
75 <gsf:format-gs2><![CDATA[
76<td valign=top>[link][icon][/link]
77</td>
78<td>[Title]
79<br>
80<i>{If}{[PersonalAuthors^all], {If}{[CorporateBodies^all], [sibling(All'; '):PersonalAuthors] - , [sibling(All'; '):PersonalAuthors]}}{If}{[CorporateBodies^all], [CorporateBodies^all]}
81</i>
82</td>]]></gsf:format-gs2>
83 <td valign="top">
84 <gsf:link type="document">
85 <gsf:icon type="document"/>
86 </gsf:link>
87 </td>
88 <td>
89 <gsf:metadata name="Title"/>
90 <br/>
91 <i>
92 <gsf:switch>
93 <gsf:metadata name="PersonalAuthors^all"/>
94 <gsf:when test="exists">
95 <gsf:switch>
96 <gsf:metadata name="CorporateBodies^all"/>
97 <gsf:when test="exists"><gsf:metadata name="PersonalAuthors"/> -</gsf:when>
98 <gsf:otherwise>
99 <gsf:metadata name="PersonalAuthors"/>
100 </gsf:otherwise>
101 </gsf:switch>
102 </gsf:when>
103 </gsf:switch>
104 <gsf:switch>
105 <gsf:metadata name="CorporateBodies^all"/>
106 <gsf:when test="exists">
107 <gsf:metadata name="CorporateBodies^all"/>
108 </gsf:when>
109 </gsf:switch>
110 </i>
111 </td>
112 </gsf:template>
113 </format>
114 </search>
115 <infodb type="gdbm"/>
116 <import>
117 <pluginList>
118 <plugin name="GreenstoneXMLPlugin"/>
119 <plugin name="ISISPlugin">
120 <option name="-input_encoding" value="dos_437"/>
121 <option name="-OIDtype" value="incremental"/>
122 <option name="-subfield_separator" value=", "/>
123 <option name="-entry_separator" value="&lt;br>"/>
124 </plugin>
125 <plugin name="MetadataXMLPlugin"/>
126 <plugin name="ArchivesInfPlugin"/>
127 <plugin name="DirectoryPlugin"/>
128 </pluginList>
129 </import>
130 <browse>
131 <classifier name="AZList">
132 <option name="-metadata" value="Title"/>
133 </classifier>
134 <classifier name="AZCompactList">
135 <option name="-mingroup" value="1"/>
136 <option name="-metadata" value="Keywords^sub"/>
137 <option name="-buttonname" value="Keyword"/>
138 <format>
139 <gsf:template match="documentNode">
140 <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td><td>{If}{[numleafdocs], [Title] ([numleafdocs]), [Title]}</td>]]></gsf:format-gs2>
141 <td valign="top">
142 <gsf:link type="document">
143 <gsf:icon type="document"/>
144 </gsf:link>
145 </td>
146 <td>
147 <gsf:metadata name="Title"/>
148 </td>
149 </gsf:template>
150 <gsf:template match="classifierNode">
151 <gsf:format-gs2><![CDATA[<td valign=top>[link][icon][/link]</td><td>{If}{[numleafdocs], [Title] ([numleafdocs]), [Title]}</td>]]></gsf:format-gs2>
152 <td valign="top">
153 <gsf:link type="classifier">
154 <gsf:icon type="classifier"/>
155 </gsf:link>
156 </td>
157 <td><gsf:metadata name="Title"/> (<gsf:metadata name="numleafdocs"/>)</td>
158 </gsf:template>
159 </format>
160 </classifier>
161 <format>
162 <gsf:template match="documentNode">
163 <gsf:format-gs2><![CDATA[
164<td valign=top>[link][icon][/link]
165</td>
166<td>[Title]
167<br>
168<i>{If}{[PersonalAuthors^all], {If}{[CorporateBodies^all], [sibling(All'; '):PersonalAuthors] - , [sibling(All'; '):PersonalAuthors]}}{If}{[CorporateBodies^all], [CorporateBodies^all]}
169</i>
170</td>]]></gsf:format-gs2>
171 <td valign="top">
172 <gsf:link type="document">
173 <gsf:icon type="document"/>
174 </gsf:link>
175 </td>
176 <td>
177 <gsf:metadata name="Title"/>
178 <br/>
179 <i>
180 <gsf:switch>
181 <gsf:metadata name="PersonalAuthors^all"/>
182 <gsf:when test="exists">
183 <gsf:switch>
184 <gsf:metadata name="CorporateBodies^all"/>
185 <gsf:when test="exists"><gsf:metadata name="PersonalAuthors"/> -</gsf:when>
186 <gsf:otherwise>
187 <gsf:metadata name="PersonalAuthors"/>
188 </gsf:otherwise>
189 </gsf:switch>
190 </gsf:when>
191 </gsf:switch>
192 <gsf:switch>
193 <gsf:metadata name="CorporateBodies^all"/>
194 <gsf:when test="exists">
195 <gsf:metadata name="CorporateBodies^all"/>
196 </gsf:when>
197 </gsf:switch>
198 </i>
199 </td>
200 </gsf:template>
201 <gsf:template match="classifierNode">
202 <gsf:format-gs2><![CDATA[
203<td valign=top>[link][icon][/link]
204</td>
205<td>[Title]
206<br>
207<i>{If}{[PersonalAuthors^all], {If}{[CorporateBodies^all], [sibling(All'; '):PersonalAuthors] - , [sibling(All'; '):PersonalAuthors]}}{If}{[CorporateBodies^all], [CorporateBodies^all]}
208</i>
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>
216 <gsf:metadata name="Title"/>
217 <br/>
218 <i>
219 <gsf:switch>
220 <gsf:metadata name="PersonalAuthors^all"/>
221 <gsf:when test="exists">
222 <gsf:switch>
223 <gsf:metadata name="CorporateBodies^all"/>
224 <gsf:when test="exists"><gsf:metadata name="PersonalAuthors"/> -</gsf:when>
225 <gsf:otherwise>
226 <gsf:metadata name="PersonalAuthors"/>
227 </gsf:otherwise>
228 </gsf:switch>
229 </gsf:when>
230 </gsf:switch>
231 <gsf:switch>
232 <gsf:metadata name="CorporateBodies^all"/>
233 <gsf:when test="exists">
234 <gsf:metadata name="CorporateBodies^all"/>
235 </gsf:when>
236 </gsf:switch>
237 </i>
238 </td>
239 </gsf:template>
240 <gsf:template match="classifierNode" mode="horizontal">
241 <gsf:format-gs2><![CDATA[[link][highlight]{Or}{[dls.Title],[dc.Title],[Title],Untitled}[/highlight][/link]]]></gsf:format-gs2>
242 <gsf:link type="classifier">
243 <span class="highlight">
244 <gsf:choose-metadata><gsf:metadata name="dls.Title"/><gsf:metadata name="dc.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
245 </span>
246 </gsf:link>
247 </gsf:template>
248 </format>
249 </browse>
250 <display>
251 <format> <gsf:option name="TOC" value="true"/>
252 <gsf:option name="AllowUserComments" value="false"/>
253 <gsf:template name="documentHeading">
254 <table cellpadding="4" cellspacing="0">
255 <gsf:switch>
256 <gsf:metadata name="Title^all"/>
257 <gsf:when test="exists">
258 <tr>
259 <td valign="top">
260 <nobr>
261 <b>
262 <gsf:displayItem name="Title"/>
263 </b>
264 </nobr>
265 </td>
266 <td>
267 <gsf:metadata name="Title^all"/>
268 </td>
269 </tr>
270 </gsf:when>
271 </gsf:switch>
272 <gsf:switch>
273 <gsf:metadata name="PersonalAuthors^all"/>
274 <gsf:when test="exists">
275 <tr>
276 <td valign="top">
277 <nobr>
278 <b>
279 <gsf:displayItem name="Authors"/>
280 </b>
281 </nobr>
282 </td>
283 <td>
284 <gsf:metadata name="PersonalAuthors^all"/>
285 </td>
286 </tr>
287 </gsf:when>
288 </gsf:switch>
289 <gsf:switch>
290 <gsf:metadata name="CorporateBodies^all"/>
291 <gsf:when test="exists">
292 <tr>
293 <td valign="top">
294 <nobr>
295 <b>
296 <gsf:displayItem name="CorporateAuthors"/>
297 </b>
298 </nobr>
299 </td>
300 <td>
301 <gsf:metadata name="CorporateBodies^all"/>
302 </td>
303 </tr>
304 </gsf:when>
305 </gsf:switch>
306 <gsf:switch>
307 <gsf:metadata name="ConferenceMainEntry^all"/>
308 <gsf:when test="exists">
309 <tr>
310 <td valign="top">
311 <nobr>
312 <b>
313 <gsf:displayItem name="Conference"/>
314 </b>
315 </nobr>
316 </td>
317 <td>
318 <gsf:metadata name="ConferenceMainEntry^all"/>
319 </td>
320 </tr>
321 </gsf:when>
322 </gsf:switch>
323 <gsf:switch>
324 <gsf:metadata name="Edition^all"/>
325 <gsf:when test="exists">
326 <tr>
327 <td valign="top">
328 <nobr>
329 <b>
330 <gsf:displayItem name="Edition"/>
331 </b>
332 </nobr>
333 </td>
334 <td>
335 <gsf:metadata name="Edition^all"/>
336 </td>
337 </tr>
338 </gsf:when>
339 </gsf:switch>
340 <gsf:switch>
341 <gsf:metadata name="Imprint^all"/>
342 <gsf:when test="exists">
343 <tr>
344 <td valign="top">
345 <nobr>
346 <b>
347 <gsf:displayItem name="Imprint"/>
348 </b>
349 </nobr>
350 </td>
351 <td>
352 <gsf:metadata name="Imprint^all"/>
353 </td>
354 </tr>
355 </gsf:when>
356 </gsf:switch>
357 <gsf:switch>
358 <gsf:metadata name="Collation^all"/>
359 <gsf:when test="exists">
360 <tr>
361 <td valign="top">
362 <nobr>
363 <b>
364 <gsf:displayItem name="Collation"/>
365 </b>
366 </nobr>
367 </td>
368 <td>
369 <gsf:metadata name="Collation^all"/>
370 </td>
371 </tr>
372 </gsf:when>
373 </gsf:switch>
374 <gsf:switch>
375 <gsf:metadata name="Series^all"/>
376 <gsf:when test="exists">
377 <tr>
378 <td valign="top">
379 <nobr>
380 <b>
381 <gsf:displayItem name="Series"/>
382 </b>
383 </nobr>
384 </td>
385 <td>
386 <gsf:metadata name="Series^all"/>
387 </td>
388 </tr>
389 </gsf:when>
390 </gsf:switch>
391 <gsf:switch>
392 <gsf:metadata name="Notes^all"/>
393 <gsf:when test="exists">
394 <tr>
395 <td valign="top">
396 <nobr>
397 <b>
398 <gsf:displayItem name="Notes"/>
399 </b>
400 </nobr>
401 </td>
402 <td>
403 <gsf:metadata name="Notes^all"/>
404 </td>
405 </tr>
406 </gsf:when>
407 </gsf:switch>
408 <gsf:switch>
409 <gsf:metadata name="Keywords^all"/>
410 <gsf:when test="exists">
411 <tr>
412 <td valign="top">
413 <nobr>
414 <b>
415 <gsf:displayItem name="Keywords"/>
416 </b>
417 </nobr>
418 </td>
419 <td>
420 <gsf:metadata name="Keywords^all"/>
421 </td>
422 </tr>
423 </gsf:when>
424 </gsf:switch>
425 <gsf:switch>
426 <gsf:metadata name="Meetings^all"/>
427 <gsf:when test="exists">
428 <tr>
429 <td valign="top">
430 <nobr>
431 <b>
432 <gsf:displayItem name="Meetings"/>
433 </b>
434 </nobr>
435 </td>
436 <td>
437 <gsf:metadata name="Meetings^all"/>
438 </td>
439 </tr>
440 </gsf:when>
441 </gsf:switch>
442 <gsf:switch>
443 <gsf:metadata name="AddedTitle^all"/>
444 <gsf:when test="exists">
445 <tr>
446 <td valign="top">
447 <nobr>
448 <b>
449 <gsf:displayItem name="AddedTitle"/>
450 </b>
451 </nobr>
452 </td>
453 <td>
454 <gsf:metadata name="AddedTitle^all"/>
455 </td>
456 </tr>
457 </gsf:when>
458 </gsf:switch>
459 <gsf:switch>
460 <gsf:metadata name="OtherLanguageTitles^all"/>
461 <gsf:when test="exists">
462 <tr>
463 <td valign="top">
464 <nobr>
465 <b>
466 <gsf:displayItem name="OtherLanguageTitles"/>
467 </b>
468 </nobr>
469 </td>
470 <td>
471 <gsf:metadata name="OtherLanguageTitles^all"/>
472 </td>
473 </tr>
474 </gsf:when>
475 </gsf:switch>
476 </table>
477 </gsf:template>
478
479<!--
480Overwriting this template allows you to change the heading of the document.
481-->
482<!--
483<gsf:template name="documentHeading">
484<span style="font-weight:bold; font-size: 120%;">
485<xsl:call-template name="choose-title"/>
486</span>
487</gsf:template>
488-->
489<gsf:template name="documentContent">
490 <div id="gs-document">
491 <center>
492 <a href="javascript:;" id="cdsreclink">Show/Hide CDS Record</a>
493 </center>
494 <div id="cdsrecord" style="display:none">
495 <b>CDS Record:</b>
496 <br/>
497 <tt>
498 <gsf:metadata name="ISISRawRecord"/>
499 </tt>
500 <p>
501 <xsl:call-template name="wrappedSectionText"/>
502 </p>
503 </div>
504 <script type="text/javascript">
505 <xsl:text disable-output-escaping="yes">var link=document.getElementById("cdsreclink");var div=document.getElementById("cdsrecord");gs.functions.makeToggle(link, div);</xsl:text>
506 </script>
507 </div>
508 </gsf:template>
509<!--
510Overwriting 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.
511-->
512<!--
513<gsf:template name="documentContent">
514<div id="gs-document">
515<xsl:call-template name="documentPre"/>
516<xsl:call-template name="wrappedSectionImage"/>
517<div id="gs-document-text">
518<xsl:call-template name="documentNodeText"/>
519</div>
520</div>
521</gsf:template>
522-->
523<!--
524Overwriting this template can be used to change the content of section headings.
525-->
526<!--
527<gsf:template name="sectionHeading">
528<xsl:call-template name="choose-title"/>
529</gsf:template>
530-->
531<!--
532Overwriting this template can be used to change the content of the top-level section.
533-->
534<!--
535<gsf:template name="topLevelSectionContent">
536<xsl:call-template name="wrappedSectionImage"/>
537<xsl:call-template name="wrappedSectionText"/>
538</gsf:template>
539-->
540<!--
541Overwriting this template can be used to change the content of sections.
542-->
543<!--
544<gsf:template name="sectionContent">
545<xsl:call-template name="wrappedSectionImage"/>
546<xsl:call-template name="wrappedSectionText"/>
547</gsf:template>
548-->
549
550</format>
551 </display>
552 <replaceListRef id="gs2-standard"/>
553</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.