Changeset 30640

Show
Ignore:
Timestamp:
28.07.2016 14:16:20 (3 years ago)
Author:
kjdon
Message:

indenting nicely in emacs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/sites/localsite/collect/gs2mgdemo/etc/collectionConfig.xml

    r30086 r30640  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<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 MG.</displayItem> 
    10         <!-- 
     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 MG.</displayItem> 
     10    <!-- 
    1111        <displayItem assigned="true" lang="en" name="smallicon">gs2mgdemo_sm.gif</displayItem> 
    1212        <displayItem assigned="true" lang="en" name="icon">gs2mgdemo.gif</displayItem> 
    13         --> 
    14         <displayItem assigned="true" lang="en" name="name">MG demo</displayItem> 
    15     </displayItemList> 
    16     <search type="mg"> 
    17         <index name="section:text"> 
    18             <displayItem lang="ru" name="name">Главы</displayItem> 
    19             <displayItem lang="en" name="name">chapters</displayItem> 
    20             <displayItem lang="es" name="name">capítulos</displayItem> 
    21             <displayItem lang="fr" name="name">chapitres</displayItem> 
    22         </index> 
    23         <index name="document:text"> 
    24             <displayItem lang="ru" name="name">ППлМые ЎПкуЌеМты</displayItem> 
    25             <displayItem lang="en" name="name">entire documents</displayItem> 
    26             <displayItem lang="es" name="name">documentos enteros</displayItem> 
    27             <displayItem lang="fr" name="name">documents entiers</displayItem> 
    28         </index> 
    29         <index name="section:Title"> 
    30             <displayItem lang="ru" name="name">НазваМОя разЎелПв</displayItem> 
    31             <displayItem lang="en" name="name">section titles</displayItem> 
    32             <displayItem lang="es" name="name">títulos de las secciones</displayItem> 
    33             <displayItem lang="fr" name="name">titres des sections</displayItem> 
    34         </index> 
    35         <indexOption> 
    36             <option name="casefold"/> 
    37             <option name="stem"/> 
    38         </indexOption> 
    39         <searchType name="plain"/> 
    40         <searchType name="simpleform"/> 
    41         <searchType name="advancedform"/> 
    42         <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> 
    43     </search> 
    44     <infodb type="gdbm"/> 
    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="dc.Title"/> 
    59             <option name="-partition_type_within_level" value="constant_size"/> 
    60         </classifier> 
    61         <classifier name="Hierarchy"> 
    62             <option name="-metadata" value="dc.Subject"/> 
    63             <option name="-sort" value="dc.Title"/> 
    64         </classifier> 
    65         <classifier name="List"> 
    66             <option name="-metadata" value="dls.Organization"/> 
    67             <option name="-sort_leaf_nodes_using" value="dc.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 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> 
    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     <setName>MG demo collection</setName> 
    88     <setDescription>A demo collection for greenstone, using MG and GDBM.</setDescription> 
    89     <!-- uncomment the following and set the name attribute if you want this 
    90          collection to be part of a super set. --> 
    91     <!--<oaiSuperSet name="xxx"/>--> 
    92     <ListMetadataFormats> 
    93       <!--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: 
    94            <metadataFormat metadataPrefix="prefix"/> --> 
    95       <metadataFormat metadataPrefix="oai_dc"> 
    96         <!--   a custom mapping as this collection doesn't have exclusive dc metadata --><!-- this will replace the dc:publisher element from the main set --> 
    97         <element name="dc:publisher"> 
    98           <mapping elements="dls.Organization"/> 
    99         </element> 
    100       </metadataFormat> 
    101     </ListMetadataFormats> 
    102       </serviceRack> 
    103     </serviceRackList> 
     13    --> 
     14    <displayItem assigned="true" lang="en" name="name">MG demo</displayItem> 
     15  </displayItemList> 
     16  <search type="mg"> 
     17    <index name="section:text"> 
     18      <displayItem lang="ru" name="name">Главы</displayItem> 
     19      <displayItem lang="en" name="name">chapters</displayItem> 
     20      <displayItem lang="es" name="name">capítulos</displayItem> 
     21      <displayItem lang="fr" name="name">chapitres</displayItem> 
     22    </index> 
     23    <index name="document:text"> 
     24      <displayItem lang="ru" name="name">ППлМые ЎПкуЌеМты</displayItem> 
     25      <displayItem lang="en" name="name">entire documents</displayItem> 
     26      <displayItem lang="es" name="name">documentos enteros</displayItem> 
     27      <displayItem lang="fr" name="name">documents entiers</displayItem> 
     28    </index> 
     29    <index name="section:Title"> 
     30      <displayItem lang="ru" name="name">НазваМОя разЎелПв</displayItem> 
     31      <displayItem lang="en" name="name">section titles</displayItem> 
     32      <displayItem lang="es" name="name">títulos de las secciones</displayItem> 
     33      <displayItem lang="fr" name="name">titres des sections</displayItem> 
     34    </index> 
     35    <indexOption> 
     36      <option name="casefold"/> 
     37      <option name="stem"/> 
     38    </indexOption> 
     39    <searchType name="plain"/> 
     40    <searchType name="simpleform"/> 
     41    <searchType name="advancedform"/> 
     42    <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> 
     43  </search> 
     44  <infodb type="gdbm"/> 
     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="dc.Title"/> 
     59      <option name="-partition_type_within_level" value="constant_size"/> 
     60    </classifier> 
     61    <classifier name="Hierarchy"> 
     62      <option name="-metadata" value="dc.Subject"/> 
     63      <option name="-sort" value="dc.Title"/> 
     64    </classifier> 
     65    <classifier name="List"> 
     66      <option name="-metadata" value="dls.Organization"/> 
     67      <option name="-sort_leaf_nodes_using" value="dc.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 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> 
     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      <setName>MG demo collection</setName> 
     88      <setDescription>A demo collection for greenstone, using MG and GDBM.</setDescription> 
     89      <!-- uncomment the following and set the name attribute if you want this 
     90       collection to be part of a super set. --> 
     91      <!--<oaiSuperSet name="xxx"/>--> 
     92      <ListMetadataFormats> 
     93    <!--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: 
     94        <metadataFormat metadataPrefix="prefix"/> --> 
     95    <metadataFormat metadataPrefix="oai_dc"> 
     96      <!--   a custom mapping as this collection doesn't have exclusive dc metadata --><!-- this will replace the dc:publisher element from the main set --> 
     97      <element name="dc:publisher"> 
     98        <mapping elements="dls.Organization"/> 
     99      </element> 
     100    </metadataFormat> 
     101      </ListMetadataFormats> 
     102    </serviceRack> 
     103  </serviceRackList> 
    104104</CollectionConfig>