Changeset 30639


Ignore:
Timestamp:
07/28/16 14:11:09 (4 years ago)
Author:
kjdon
Message:

tidied up format statements, removed displayItems that are not needed anymore

File:
1 edited

Legend:

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

    r30637 r30639  
    22<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    33  <metadataList>
    4     <metadata lang="en" name="creator"/>
    5     <metadata lang="en" name="maintainer"/>
     4    <metadata lang="en" name="creator">Greenstone project</metadata>
     5    <metadata lang="en" name="maintainer">Greenstone project</metadata>
    66    <metadata lang="en" name="public">true</metadata>
    77  </metadataList>
    88  <displayItemList>
    99    <displayItem lang="en" name="shortDescription">Demonstration collection containing a few books from the Humanitarian and Development Libraries. Uses MGPP and GDBM.</displayItem>
    10     <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>
    11     <!--
    12     <displayItem assigned="true" lang="en" name="smallicon">gs2mgppdemo_sm.gif</displayItem>
    13     <displayItem assigned="true" lang="en" name="icon">gs2mgppdemo.gif</displayItem>
    14     -->
     10    <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 a Greenstone 3 equivalent of the Greenstone 2 demo collection, built with MGPP.</displayItem>
    1511    <displayItem assigned="true" lang="en" name="name">MGPP demo</displayItem>
    1612  </displayItemList>
    1713  <search type="mgpp">
    1814    <level name="section">
    19       <displayItem lang="en" name="name">chapter</displayItem>
     15      <displayItem name="name" key="level.chapter"/>
    2016    </level>
    2117    <level name="document">
    22       <displayItem lang="en" name="name">book</displayItem>
     18      <displayItem name="name" key="level.book"/>
    2319    </level>
    2420    <defaultLevel name="section"/>
    25     <index name="allfields">
    26       <displayItem lang="en" name="name">all fields</displayItem>
    27     </index>
    28     <index name="text">
    29       <displayItem lang="en" name="name">text</displayItem>
    30     </index>
    31     <index name="dc.Title,Title">
    32       <displayItem lang="en" name="name">titles</displayItem>
    33     </index>
    34     <index name="dc.Subject">
    35       <displayItem lang="en" name="name">subjects</displayItem>
    36     </index>
    37     <index name="dls.Organization">
    38       <displayItem lang="en" name="name">organisations</displayItem>
    39     </index>
     21    <index name="allfields"/>
     22    <index name="text"/>
     23    <index name="dc.Title,Title"/>
     24    <index name="dc.Subject"/>
     25    <index name="dls.Organization"/>
    4026    <indexOption name="accentfold"/>
    4127    <indexOption name="casefold"/>
     
    4430    <searchType name="simpleform"/>
    4531    <searchType name="advancedform"/>
    46     <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>
     32    <format>
     33      <gsf:template match="documentNode">
     34    <td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td>
     35    <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>
     36      </gsf:template>
     37    </format>
    4738  </search>
    4839  <infodb type="gdbm"/>
     
    7869      <option name="-buttonname" value="Howto"/>
    7970      <option name="-partition_type_within_level" value="constant_size"/>
    80       <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>
     71      <format>
     72    <gsf:template match="documentNode">
     73      <td><gsf:link type="document"><gsf:metadata name="dls.Keyword"/></gsf:link></td>
     74    </gsf:template>
     75    <gsf:template match="classifierNode">
     76      <td><gsf:link type="classifier"><gsf:metadata name="Title"/></gsf:link></td></gsf:template></format>
    8177    </classifier>
    82     <format><gsf:template match="documentNode"><td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td><td valign="top"><gsf:link type="source"><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata></gsf:link></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:link type="source"><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata></gsf:link></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" mode="horizontal"><gsf:link type="horizontal"><gsf:metadata name="Title"/></gsf:link></gsf:template></format>
     78    <format> <!-- general format statements for all classifiers that don't have their own versions -->
     79      <gsf:template match="documentNode">
     80    <td valign="top">
     81      <gsf:link type="document">
     82        <gsf:icon type="document"/>
     83      </gsf:link>
     84    </td>
     85    <td valign="top">
     86      <gsf:choose-metadata>
     87        <gsf:metadata name="dc.Title"/>
     88        <gsf:metadata name="Title"/>
     89        <gsf:default>Untitled</gsf:default>
     90      </gsf:choose-metadata>
     91    </td>
     92      </gsf:template>
     93      <gsf:template match="classifierNode[@classifierStyle = 'VList']">
     94    <td valign="top">
     95      <gsf:link type="classifier">
     96        <gsf:icon type="classifier"/>
     97      </gsf:link>
     98    </td>
     99    <td valign="top">
     100      <gsf:metadata name="Title"/>
     101    </td>
     102      </gsf:template>
     103      <gsf:template match="classifierNode[@classifierStyle = 'HList']">
     104    <gsf:link type="classifier">
     105      <gsf:metadata name="Title"/>
     106    </gsf:link>
     107      </gsf:template>
     108    </format>
    83109  </browse>
    84110  <display>
Note: See TracChangeset for help on using the changeset viewer.