source: main/trunk/greenstone3/web/sites/localsite/collect/gs2mgppdemo/etc/collectionConfig.xml@ 21778

Last change on this file since 21778 was 21778, checked in by kjdon, 14 years ago

OAI config stuff now in an OAI serviceRack - specify the servicerack in collectionConfig so that its easy to switch it on/off without having to rebuild the collection or modify buildConfig.xml

File size: 8.1 KB
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 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>
10 <displayItem assigned="true" lang="en" name="smallicon">gs2mgppdemo_sm.gif</displayItem>
11 <displayItem assigned="true" lang="en" name="icon">gs2mgppdemo.gif</displayItem>
12 <displayItem assigned="true" lang="en" name="name">MGPP demo</displayItem>
13 </displayItemList>
14 <search type="mgpp">
15 <level name="section">
16 <displayItem lang="en" name="name">chapter</displayItem>
17 </level>
18 <level name="document">
19 <displayItem lang="en" name="name">book</displayItem>
20 </level>
21 <defaultLevel name="section"/>
22 <index name="allfields">
23 <displayItem lang="en" name="name">all fields</displayItem>
24 </index>
25 <index name="text">
26 <displayItem lang="en" name="name">text</displayItem>
27 </index>
28 <index name="dls.Title,Title">
29 <displayItem lang="en" name="name">titles</displayItem>
30 </index>
31 <index name="dls.Subject">
32 <displayItem lang="en" name="name">subjects</displayItem>
33 </index>
34 <index name="dls.Organization">
35 <displayItem lang="en" name="name">organisations</displayItem>
36 </index>
37 <indexOption>
38 <option name="accentfold"/>
39 <option name="casefold"/>
40 <option name="stem"/>
41 </indexOption>
42 <format name="searchType">plain,form</format>
43 <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>
44 </search>
45 <import>
46 <pluginList>
47 <plugin name="GreenstoneXMLPlugin"/>
48 <plugin name="HTMLPlugin">
49 <option name="-description_tags"/>
50 </plugin>
51 <plugin name="MetadataXMLPlugin"/>
52 <plugin name="ArchivesInfPlugin"/>
53 <plugin name="DirectoryPlugin"/>
54 </pluginList>
55 </import>
56 <browse>
57 <classifier name="List">
58 <option name="-metadata" value="dls.Title"/>
59 <option name="-partition_type_within_level" value="constant_size"/>
60 </classifier>
61 <classifier name="Hierarchy">
62 <option name="-metadata" value="dls.Subject"/>
63 <option name="-sort" value="dls.Title"/>
64 </classifier>
65 <classifier name="List">
66 <option name="-metadata" value="dls.Organization"/>
67 <option name="-sort_leaf_nodes_using" value="dls.Title"/>
68 <option name="-partition_type_within_level" value="constant_size"/>
69 <option name="-bookshelf_type" value="always"/>
70 <option name="-buttonname" value="Organization"/>
71 </classifier>
72 <classifier name="List">
73 <option name="-metadata" value="dls.Keyword"/>
74 <option name="-buttonname" value="Howto"/>
75 <option name="-partition_type_within_level" value="constant_size"/>
76 <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>
77 </classifier>
78 <format><gsf:template match="documentNode"><td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td><td valign="top"><gsf:metadata name="srclink"/><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata><gsf:metadata name="/srclink"/></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><gsf:metadata name="Title"/></td></gsf:template><gsf:template match="classifierNode" mode="horizontal"><gsf:link type="horizontal"><gsf:metadata name="Title"/></gsf:link></gsf:template></format>
79 </browse>
80 <display>
81 <format><gsf:option name="TOC" value="true"/></format>
82 </display>
83 <replaceListRef id="gs2-standard"/>
84 <serviceRackList>
85 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
86 <serviceRack name="OAIPMH">
87 <ListMetadataFormats>
88 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
89 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
90 -->
91 <metadataFormat metadataPrefix="oai_dc">
92 <metadataPrefix>oai_dc</metadataPrefix>
93 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
94 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
95 <!--<metadataElements>dc.Title,dc.Creator,dc.Subject,dc.Description,dc.Publisher,dc.Contributor,dc.Date,dc.Type,dc.Format,dc.Identifier,dc.Source,dc.Language,dc.Relation,dc.Coverage,dc.Rights</metadataElements>
96 -->
97 <mappingList>
98 <!--
99 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
100 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
101 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
102 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
103 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
104
105 **Bear in mind: if this mapping list is not present, the standard dc. metadata names (15 in total) will be used to retrieve metadata in the database.
106
107 **The only case when this mapping is not present is that: 1. this metadata format is oai_dc; 2. the metadata is also stored in the database by Dublin Core's names.
108 -->
109 <mapping>dc.Title,dls.Title</mapping>
110 <mapping>dc.Subject,dls.Subject</mapping>
111 <mapping>dc.Language,dls.Language</mapping>
112 <mapping>dc.Organization,dls.Organization</mapping>
113 <!-- This mapping example means that the dc.Title is requested and the value of the metadata Title, which is used in this repository, is returned as response. -->
114 </mappingList>
115 </metadataFormat>
116 <!--
117 This metadata format is an example of user created metadata fields
118 <metadataFormat metadataPrefix="oai_gs">
119 <metadataPrefix>oai_gs</metadataPrefix>
120 <schema>http://www.greenstone.org/OAI/2.0/oai_gs.xsd</schema>
121 <metadataNamespace>http://www.greenstone.org/OAI/2.0/oai_gs/</metadataNamespace>
122 <mappingList>
123 <mapping>dls.Title</mapping>
124 <mapping>dls.Subject</mapping>
125 <mapping>dls.Language</mapping>
126 <mapping>dls.Organization</mapping>
127 </mappingList>
128 </metadataFormat>
129 -->
130 </ListMetadataFormats>
131 </serviceRack>
132 </serviceRackList>
133</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.