Changeset 31561

Show
Ignore:
Timestamp:
03.04.2017 10:22:59 (2 years ago)
Author:
kjdon
Message:

small changes for classifier format statements to bring them in line with the default ones. changed titles list to an hlist just to add more variety to the examples

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/etc/collectionConfig.xml

    r31047 r31561  
    9696    <classifier name="List"> 
    9797      <option name="-metadata" value="dc.Title"/> 
    98       <option name="-partition_type_within_level" value="constant_size"/> 
     98      <option name="-partition_type_within_level" value="per_letter"/> 
     99      <option name="-use_hlist_for" value="dc.Title"/> 
    99100    </classifier> 
    100101    <classifier name="Hierarchy"> 
     
    112113      <option name="-metadata" value="dls.Keyword"/> 
    113114      <option name="-buttonname" value="Howto"/> 
    114       <option name="-partition_type_within_level" value="constant_size"/> 
     115      <option name="-partition_type_within_level" value="none"/> 
    115116      <format> <!-- format statement specific to this classifier --> 
    116117    <gsf:template match="documentNode"> 
     
    118119        <gsf:link type="document"> 
    119120          <gsf:metadata name="dls.Keyword"/> 
    120         </gsf:link> 
    121       </td> 
    122     </gsf:template> 
    123     <gsf:template match="classifierNode"> 
    124       <td> 
    125         <gsf:link type="classifier"> 
    126           <gsf:metadata name="Title"/> 
    127121        </gsf:link> 
    128122      </td> 
     
    147141      <gsf:template match="classifierNode[@classifierStyle = 'VList']"> 
    148142    <td valign="top"> 
    149       <gsf:link type="classifier"> 
     143      <gsf:link type="classifier" style="static"> 
    150144        <gsf:icon type="classifier"/> 
    151145      </gsf:link> 
    152146    </td> 
    153147    <td valign="top"> 
    154       <gsf:metadata name="Title"/> 
     148      <gsf:link type="classifier"> 
     149        <gsf:metadata name="Title"/> 
     150      </gsf:link> 
    155151    </td> 
    156152      </gsf:template> 
     
    159155      <gsf:metadata name="Title"/> 
    160156    </gsf:link> 
    161       </gsf:template> 
     157       </gsf:template> 
     158    <gsf:option name="turnstyleClassifiers" value="true"/> 
    162159    </format> 
    163160  </browse> 
     
    184181      <ListMetadataFormats> 
    185182    <!--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: 
    186          <metadataFormat metadataPrefix="prefix"/> --> 
    187     <metadataFormat metadataPrefix="oai_dc"> 
    188       <!--   a custom mapping as this collection doesn't have exclusive dc metadata --><!-- this will replace the dc:publisher element from the main set --> 
     183        <metadataFormat metadataPrefix="prefix"/> --> 
     184    <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 --> 
    189185      <element name="dc:publisher"> 
    190186        <mapping elements="dls.Organization"/>