source: main/trunk/greenstone3/web/sites/localsite/collect/gs2mgdemo/etc/collectionConfig.xml

Last change on this file was 38897, checked in by kjdon, 3 weeks ago

set partition_type_with_level to none for classifiers, otherwise you get a single bookshlef which is odd.

File size: 5.5 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) from the Humanity Development Library. It is the Greenstone 3 equivalent of the Greenstone 2 demo collection, built with MG and GDBM.</displayItem>
10 <displayItem lang="en" name="shortDescription">Demonstration collection built with MG for the indexer and GDBM for the database.</displayItem>
11 <displayItem assigned="true" lang="en" name="name">MG demo</displayItem>
12 <displayItem assigned="true" name="name" key="name" dictionary="collectionConfig"/>
13 </displayItemList>
14 <search type="mg">
15 <index name="section:text">
16 <displayItem name="name" key="level.chapters" dictionary="ServiceRack"/>
17 </index>
18 <index name="document:text"/>
19 <index name="section:Title"/>
20 <indexOption>
21 <option name="casefold"/>
22 <option name="stem"/>
23 </indexOption>
24 <searchType name="plain"/>
25 <searchType name="simpleform"/>
26 <searchType name="advancedform"/>
27 <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>
28 </search>
29 <infodb type="gdbm"/>
30 <import>
31 <pluginList>
32 <plugin name="GreenstoneXMLPlugin"/>
33 <plugin name="HTMLPlugin">
34 <option name="-description_tags"/>
35 </plugin>
36 <plugin name="MetadataXMLPlugin"/>
37 <plugin name="ArchivesInfPlugin"/>
38 <plugin name="DirectoryPlugin"/>
39 </pluginList>
40 </import>
41 <browse>
42 <classifier name="List">
43 <option name="-metadata" value="dc.Title"/>
44 <option name="-partition_type_within_level" value="none"/>
45 </classifier>
46 <classifier name="Hierarchy">
47 <option name="-metadata" value="dc.Subject"/>
48 <option name="-sort" value="dc.Title"/>
49 </classifier>
50 <classifier name="List">
51 <option name="-metadata" value="dls.Organization"/>
52 <option name="-sort_leaf_nodes_using" value="dc.Title"/>
53 <option name="-partition_type_within_level" value="none"/>
54 <option name="-bookshelf_type" value="always"/>
55 <option name="-buttonname" value="Organization"/>
56 </classifier>
57 <classifier name="List">
58 <option name="-metadata" value="dls.Keyword"/>
59 <option name="-buttonname" value="Howto"/>
60 <option name="-partition_type_within_level" value="none"/>
61 <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>
62 </classifier>
63 <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 valign="top"><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>
64 </browse>
65 <display>
66 <format><gsf:option name="TOC" value="true"/></format>
67 </display>
68 <replaceListRef id="gs2-standard"/>
69 <serviceRackList>
70 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
71 <serviceRack name="OAIPMH">
72 <setName>MG demo collection</setName>
73 <setDescription>A demo collection for greenstone, using MG and GDBM.</setDescription>
74 <!-- uncomment the following and set the name attribute if you want this
75 collection to be part of a super set. -->
76 <!--<oaiSuperSet name="xxx"/>-->
77 <ListMetadataFormats>
78 <!--What metadata sets to support for this collection. You can select any set that is specified in OAIConfig.xml. To use a new set, you need to add a set definition in OAIConfig.xml, then reference it here, like:
79 <metadataFormat metadataPrefix="prefix"/> -->
80 <metadataFormat metadataPrefix="oai_dc">
81 <!-- a custom mapping as this collection doesn't have exclusive dc metadata --><!-- this will replace the dc:publisher element from the main set -->
82 <element name="dc:publisher">
83 <mapping elements="dls.Organization"/>
84 </element>
85 </metadataFormat>
86 </ListMetadataFormats>
87 </serviceRack>
88 </serviceRackList>
89</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.