<?xml version="1.0" encoding="UTF-8"?>
<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <metadataList>
    <metadata lang="en" name="creator"/>
    <metadata lang="en" name="maintainer"/>
    <metadata lang="en" name="public">true</metadata>
  </metadataList>
  <displayItemList>
    <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>
    <displayItem lang="en" name="shortDescription">Demonstration collection built with MG for the indexer and GDBM for the database.</displayItem>     
    <displayItem assigned="true" lang="en" name="name">MG demo</displayItem>
    <displayItem assigned="true" name="name" key="name" dictionary="collectionConfig"/>
  </displayItemList>
  <search type="mg">
    <index name="section:text">
      <displayItem name="name" key="level.chapters" dictionary="ServiceRack"/>
    </index>
    <index name="document:text"/>
    <index name="section:Title"/>
    <indexOption>
      <option name="casefold"/>
      <option name="stem"/>
    </indexOption>
    <searchType name="plain"/>
    <searchType name="simpleform"/>
    <searchType name="advancedform"/>
    <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>
  </search>
  <infodb type="gdbm"/>
  <import>
    <pluginList>
      <plugin name="GreenstoneXMLPlugin"/>
      <plugin name="HTMLPlugin">
	<option name="-description_tags"/>
      </plugin>
      <plugin name="MetadataXMLPlugin"/>
      <plugin name="ArchivesInfPlugin"/>
      <plugin name="DirectoryPlugin"/>
    </pluginList>
  </import>
  <browse>
    <classifier name="List">
      <option name="-metadata" value="dc.Title"/>
      <option name="-partition_type_within_level" value="none"/>
    </classifier>
    <classifier name="Hierarchy">
      <option name="-metadata" value="dc.Subject"/>
      <option name="-sort" value="dc.Title"/>
    </classifier>
    <classifier name="List">
      <option name="-metadata" value="dls.Organization"/>
      <option name="-sort_leaf_nodes_using" value="dc.Title"/>
      <option name="-partition_type_within_level" value="none"/>
      <option name="-bookshelf_type" value="always"/>
      <option name="-buttonname" value="Organization"/>
    </classifier>
    <classifier name="List">
      <option name="-metadata" value="dls.Keyword"/>
      <option name="-buttonname" value="Howto"/>
      <option name="-partition_type_within_level" value="none"/>
      <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>
    </classifier>
    <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>
  </browse>
  <display>
    <format><gsf:option name="TOC" value="true"/></format>
  </display>
  <replaceListRef id="gs2-standard"/>
  <serviceRackList>
    <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
    <serviceRack name="OAIPMH">
      <setName>MG demo collection</setName>
      <setDescription>A demo collection for greenstone, using MG and GDBM.</setDescription>
      <!-- uncomment the following and set the name attribute if you want this
	   collection to be part of a super set. -->
      <!--<oaiSuperSet name="xxx"/>-->
      <ListMetadataFormats>
	<!--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:
	    <metadataFormat metadataPrefix="prefix"/> -->
	<metadataFormat metadataPrefix="oai_dc">
	  <!--   a custom mapping as this collection doesn't have exclusive dc metadata --><!-- this will replace the dc:publisher element from the main set -->
	  <element name="dc:publisher">
	    <mapping elements="dls.Organization"/>
	  </element>
	</metadataFormat>
      </ListMetadataFormats>
    </serviceRack>
  </serviceRackList>
</CollectionConfig>
