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

Last change on this file since 30663 was 30663, checked in by kjdon, 8 years ago

added shortDescription. index displayItems now come from dictionaries

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