source: main/trunk/greenstone3/web/sites/localsite/groupConfig.xml

Last change on this file was 36982, checked in by kjdon, 2 months ago

updated the sample groupConfig file to use displayItems, including some that use dictionary texts. adding a sample groupConfig dictionary

File size: 3.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Collection groups configuration file
3
4A collection group is a set of collections that are presented under one
5icon/link on the home page. Clicking that link takes you to the group home page,
6which lists all the collections in that group.
7
8By default, there are no groups.
9
10Uncomment or add hierarchy and groupDescriptions elements to add groups to your library.
11
12Describe your structure inside a hierarchy tag as shown in the examples below.
13
14Hierarchy can contain groups and/or collections. Groups can contain other groups and/or collections.
15The order they are listed is the order they will appear on the home page.
16
17Describe your groups in groupDescriptions element as shown in the example below.
18You can do a simple, single language option, using the <title>, <description>, <shortDescription> elements.
19Or you can use displayItems so that the text can be customised for different languages. Format like that in collectionConfig.xml. DisplayItem text can be directly added, or can come from a dictionary file, eg groupConfig.properties.
20
21Without a matching group element in groupDescriptions, a group will display its group name only.
22
23If a collection is not mentioned in the hierarchy or as part of a group it will be listed on the main
24home page after the specified groups and collections.
25-->
26
27<!-- this example puts a few Greenstone demo collections into some groups. The home page
28will display the demo group plus any unlisted collections. The demo group home page will display its two subgroups;
29their home pages will display their list of collections. -->
30
31<groupConfig>
32<!--
33 <hierarchy>
34 <group name="demo">
35 <group name="standard">
36 <collection name="solr-jdbm-demo" />
37 <collection name="lucene-jdbm-demo" />
38 </group>
39 <group name="dec">
40 <collection name="bibtex-e"/>
41 <collection name="dls-e"/>
42 <collection name="garish-e"/>
43 <collection name="isis-e"/>
44 </group>
45 </group>
46 </hierarchy>
47 <groupDescriptions>
48 <group name="demo">
49 <title>Demo Collections</title>
50 <description>Collections for demonstration purposes, provided by the Greenstone project.</description>
51 <shortDescription>Greenstone demonstration collections</shortDescription>
52 <backgroundImage>/images/Group3.jpg</backgroundImage>
53 </group>
54 <group name="standard">
55 <displayItem name="name" lang="en">Standard Demos</displayItem>
56 <displayItem name="description" lang="en">These collections are the standard demonstration collections that come with a Greenstone binary release.</displayItem>
57 <displayItem name="shortDescription" lang="en">Demonstration collections that come with the Greenstone binary.</displayItem>
58 </group>
59 <group name="dec">
60 <displayItem name="name" dictionary="groupConfig" key="dec.title"/>
61 <displayItem name="description" dictionary="groupConfig" key="dec.description"/>
62 <displayItem name="shortDescription" dictionary="groupConfig" key="dec.shortDescription"/>
63 </group>
64 </groupDescriptions>
65-->
66
67
68<!-- If you want to put your collections into a specific order, you can list them in the hierarchy. Any unmentioned collections will be listed at the end. -->
69
70<!--
71
72 <hierarchy>
73 <collection name="solr-jdbm-demo"/>
74 <collection name="lucene-jdbm-demo"/>
75 <collection name="paradise-gardens"/>
76 </hierarchy>
77
78-->
79
80
81</groupConfig>
Note: See TracBrowser for help on using the repository browser.