source: documented-examples/trunk/image-e/etc/collectionConfig.xml@ 36458

Last change on this file since 36458 was 36458, checked in by anupama, 21 months ago

The DEC collection image-e had already been ported to GS3 before I started porting the DEC collections. However, the collection descriptions (displayItemList section) had not been ported, and there were still macros in the collectionConfig.xml instead of using the gsf variables to load them. Have now ported the displayItemList (collection descriptions) for image-e from GS2 to GS3. I'll still need to rewrite them for GS3.

File size: 5.1 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="public">true</metadata>
6 </metadataList>
7 <displayItemList>
8 <displayItem dictionary="collectionConfig" key="name" name="name"/>
9 <displayItem lang="en" name="name">Simple image collection</displayItem>
10 <displayItem dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
11 <displayItem dictionary="collectionConfig" key="description1" name="description1"/>
12 <displayItem dictionary="collectionConfig" key="description2" name="description2"/>
13 <displayItem dictionary="collectionConfig" key="description3" name="description3"/>
14 <displayItem dictionary="collectionConfig" key="description4" name="description4"/>
15 <displayItem dictionary="collectionConfig" key="description5" name="description5"/>
16 <displayItem dictionary="collectionConfig" key="description6" name="description6"/>
17 <displayItem dictionary="collectionConfig" key="description7" name="description7"/>
18 <displayItem dictionary="collectionConfig" key="description8" name="description8"/>
19 <displayItem dictionary="collectionConfig" key="description9" name="description9"/>
20 <displayItem dictionary="collectionConfig" key="description10" name="description10"/>
21 <displayItem dictionary="collectionConfig" key="Height" name="Height"/>
22 <displayItem dictionary="collectionConfig" key="Size" name="Size"/>
23 <displayItem dictionary="collectionConfig" key="Width" name="Width"/>
24 <displayItem dictionary="collectionConfig" key="ImageName" name="ImageName"/>
25 <displayItem dictionary="collectionConfig" key="sampleoid" name="sampleoid"/>
26 </displayItemList>
27 <search type="mgpp">
28 <defaultIndex name=""/>
29 <level name="document"/>
30 <defaultLevel name="document"/>
31 <format>
32 <gsf:template match="documentNode">
33 <gsf:format-gs2><![CDATA[<td valign='top'>[link][thumbicon][/link]</td>
34<td valign='top'>_ImageName_: [Image]<br>_Width_: [ImageWidth] <br>_Height_: [ImageHeight]<br>_Size_: [ImageSize]</td>]]></gsf:format-gs2>
35 <td valign="top">
36 <gsf:link type="document">
37 <gsf:metadata name="thumbicon"/>
38 </gsf:link>
39 </td>
40 <td valign="top"><gsf:displayItem name="ImageName"/>:
41 <gsf:metadata name="Image"/>
42 <br/><gsf:displayItem name="Width"/>:
43 <gsf:metadata name="ImageWidth"/>
44 <br/><gsf:displayItem name="Height"/>:
45 <gsf:metadata name="ImageHeight"/>
46 <br/><gsf:displayItem name="Size"/>:
47 <gsf:metadata name="ImageSize"/>
48 </td>
49 </gsf:template>
50 </format>
51 </search>
52 <import>
53 <pluginList>
54 <plugin name="ImagePlugin">
55 <option name="-OIDtype" value="incremental"/>
56 </plugin>
57 <plugin name="GreenstoneXMLPlugin"/>
58 <plugin name="MetadataXMLPlugin"/>
59 <plugin name="ArchivesInfPlugin"/>
60 <plugin name="DirectoryPlugin"/>
61 </pluginList>
62 </import>
63 <browse>
64 <format>
65 <gsf:template match="documentNode">
66 <gsf:format-gs2><![CDATA[<td valign='top'>[link][thumbicon][/link]</td> <td valign='top'>_ImageName_: [Image]<br>_Width_: [ImageWidth] <br>_Height_: [ImageHeight]<br>_Size_: [ImageSize]</td>]]></gsf:format-gs2>
67 <td valign="top">
68 <gsf:link type="document">
69 <gsf:metadata name="thumbicon"/>
70 </gsf:link>
71 </td>
72 <td valign="top"><gsf:displayItem name="ImageName"/>:
73 <gsf:metadata name="Image"/>
74 <br/><gsf:displayItem name="Width"/>:
75 <gsf:metadata name="ImageWidth"/>
76 <br/><gsf:displayItem name="Height"/>:
77 <gsf:metadata name="ImageHeight"/>
78 <br/><gsf:displayItem name="Size"/>:
79 <gsf:metadata name="ImageSize"/>
80 </td>
81 </gsf:template>
82 <gsf:template match="classifierNode">
83 <gsf:format-gs2><![CDATA[<td valign='top'>[link][thumbicon][/link]</td> <td valign='top'>_ImageName_: [Image]<br>_Width_: [ImageWidth] <br>_Height_: [ImageHeight]<br>_Size_: [ImageSize]</td>]]></gsf:format-gs2>
84 <td valign="top">
85 <gsf:link type="classifier">
86 <gsf:metadata name="thumbicon"/>
87 </gsf:link>
88 </td>
89 <td valign="top"><gsf:displayItem name="ImageName"/>:
90 <gsf:metadata name="Image"/>
91 <br/><gsf:displayItem name="Width"/>:
92 <gsf:metadata name="ImageWidth"/>
93 <br/><gsf:displayItem name="Height"/>:
94 <gsf:metadata name="ImageHeight"/>
95 <br/><gsf:displayItem name="Size"/>:
96 <gsf:metadata name="ImageSize"/>
97 </td>
98 </gsf:template>
99 <gsf:template match="classifierNode" mode="horizontal">
100 <gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
101 <gsf:link type="classifier">
102 <span class="highlight">
103 <gsf:metadata name="Title"/>
104 </span>
105 </gsf:link>
106 </gsf:template>
107 </format>
108 <classifier name="List">
109 <option name="-metadata" value="Image"/>
110 <option name="-buttonname" value="Browse"/>
111 <option name="-partition_type_within_level" value="approximate_size"/>
112 </classifier>
113 </browse>
114 <replaceListRef id="gs2-standard"/>
115 <replaceListRef id="gs2-image"/>
116</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.