root/main/trunk/greenstone3/web/sites/localsite/collect/gs2mgppdemo/etc/collectionConfig.xml @ 27031

Revision 27031, 7.2 KB (checked in by ak19, 8 years ago)

Updating demo collection's import documents to use dc.Title, dc.Language and dc.Subject fields in place of their dls.* equivalents, as these are common to both dc and dls metadata sets. The collect.cfg for GS2 had just been updated to make use of this. Now have made similar changes to GS3's collectionConfig.xml files for the demo docs (gs2mgppdemo, gs2mgdemo and lucene).

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"/>
5        <metadata lang="en" name="maintainer"/>
6        <metadata lang="en" name="public">true</metadata>
7    </metadataList>
8    <displayItemList>
9    <displayItem lang="en" name="shortDescription">Demonstration collection containing a few books from the Humanitarian and Development Libraries. Uses MGPP and GDBM.</displayItem>
10        <displayItem assigned="true" lang="en" name="description">This is a demonstration collection for the Greenstone3 digital library software. It contains a small subset (11 books) of the Humanitarian and Development Libraries. It is the Greenstone 3 equivalent of the Greenstone 2 demo collection, built with MGPP.</displayItem>
11        <!--
12        <displayItem assigned="true" lang="en" name="smallicon">gs2mgppdemo_sm.gif</displayItem>
13        <displayItem assigned="true" lang="en" name="icon">gs2mgppdemo.gif</displayItem>
14        -->
15        <displayItem assigned="true" lang="en" name="name">MGPP demo</displayItem>
16    </displayItemList>
17    <search type="mgpp">
18        <level name="section">
19            <displayItem lang="en" name="name">chapter</displayItem>
20        </level>
21        <level name="document">
22            <displayItem lang="en" name="name">book</displayItem>
23        </level>
24        <defaultLevel name="section"/>
25        <index name="allfields">
26            <displayItem lang="en" name="name">all fields</displayItem>
27        </index>
28        <index name="text">
29            <displayItem lang="en" name="name">text</displayItem>
30        </index>
31        <index name="dc.Title,Title">
32            <displayItem lang="en" name="name">titles</displayItem>
33        </index>
34        <index name="dc.Subject">
35            <displayItem lang="en" name="name">subjects</displayItem>
36        </index>
37        <index name="dls.Organization">
38            <displayItem lang="en" name="name">organisations</displayItem>
39        </index>
40        <indexOption>
41            <option name="accentfold"/>
42            <option name="casefold"/>
43            <option name="stem"/>
44        </indexOption>
45        <searchType name="plain"/>
46        <searchType name="simpleform"/>
47        <searchType name="advancedform"/>
48        <format><gsf:template match="documentNode"><td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td><td><gsf:switch><gsf:metadata name="Title" select="ancestors" separator=": "/><gsf:when test="exists"><gsf:metadata name="Title" select="ancestors" separator=": "/>:</gsf:when></gsf:switch><gsf:link type="document"><gsf:metadata name="Title"/></gsf:link></td></gsf:template></format>
49    </search>
50    <infodb type="gdbm"/>
51    <import>
52        <pluginList>
53            <plugin name="GreenstoneXMLPlugin"/>
54            <plugin name="HTMLPlugin">
55                <option name="-description_tags"/>
56            </plugin>
57            <plugin name="MetadataXMLPlugin"/>
58            <plugin name="ArchivesInfPlugin"/>
59            <plugin name="DirectoryPlugin"/>
60        </pluginList>
61    </import>
62    <browse>
63        <classifier name="List">
64            <option name="-metadata" value="dc.Title"/>
65            <option name="-partition_type_within_level" value="constant_size"/>
66        </classifier>
67        <classifier name="Hierarchy">
68            <option name="-metadata" value="dc.Subject"/>
69            <option name="-sort" value="dc.Title"/>
70        </classifier>
71        <classifier name="List">
72            <option name="-metadata" value="dls.Organization"/>
73            <option name="-sort_leaf_nodes_using" value="dc.Title"/>
74            <option name="-partition_type_within_level" value="constant_size"/>
75            <option name="-bookshelf_type" value="always"/>
76            <option name="-buttonname" value="Organization"/>
77        </classifier>
78        <classifier name="List">
79            <option name="-metadata" value="dls.Keyword"/>
80            <option name="-buttonname" value="Howto"/>
81            <option name="-partition_type_within_level" value="constant_size"/>
82            <format><gsf:template match="documentNode"><td><gsf:link type="document"><gsf:metadata name="dls.Keyword"/></gsf:link></td></gsf:template><gsf:template match="classifierNode"><td><gsf:link type="classifier"><gsf:metadata name="Title"/></gsf:link></td></gsf:template></format>
83        </classifier>
84        <format><gsf:template match="documentNode"><td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td><td valign="top"><gsf:link type="source"><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata></gsf:link></td><td valign="top"><gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/><gsf:default>Untitled</gsf:default></gsf:choose-metadata><gsf:switch><gsf:metadata name="Source"/><gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when></gsf:switch></td></gsf:template><gsf:template match="classifierNode"><td valign="top"><gsf:link type="classifier"><gsf:icon type="classifier"/></gsf:link></td><td valign="top"><gsf:link type="source"><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata></gsf:link></td><td valign="top"><gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/><gsf:default>Untitled</gsf:default></gsf:choose-metadata><gsf:switch><gsf:metadata name="Source"/><gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when></gsf:switch></td></gsf:template><gsf:template match="classifierNode" mode="horizontal"><gsf:link type="horizontal"><gsf:metadata name="Title"/></gsf:link></gsf:template></format>
85    </browse>
86    <display>
87        <format><gsf:option name="TOC" value="true"/></format>
88    </display>
89    <replaceListRef id="gs2-standard"/>
90    <serviceRackList>
91        <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
92        <serviceRack name="OAIPMH">
93            <ListMetadataFormats>
94                <!--What metadata sets to support is collection specific. To support other metadata schema, add another metadataFormat element here.
95            The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
96            -->
97                <metadataFormat metadataPrefix="oai_dc">
98                    <metadataPrefix>oai_dc</metadataPrefix>
99                    <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
100                    <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
101                    <!--   a custom mapping as this collection doesn't have dc metadata -->
102                    <mappingList>
103                        <mapping>dc:title,dc.Title</mapping>
104                        <mapping>dc:subject,dc.Subject</mapping>
105                        <mapping>dc:language,dc.Language</mapping>
106                        <mapping>dc:publisher,dls.Organization</mapping>
107                    </mappingList>
108                </metadataFormat>
109            </ListMetadataFormats>
110        </serviceRack>
111    </serviceRackList>
112</CollectionConfig>
Note: See TracBrowser for help on using the browser.