Ignore:
Timestamp:
2019-12-03T11:19:42+13:00 (4 years ago)
Author:
kjdon
Message:

added a format statement to Titles classifier. This uses gsf:metadata pos=classifiedBy instead of choose-title template. As it is a titles list, we want to display the title teh document was classified by - in case of multiple titles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/collect/modelcol/etc/collectionConfig.xml

    r33613 r33740  
    101101    <browse>
    102102        <classifier name="List">
    103             <option name="-metadata" value="dc.Title;Title"/>
     103            <option name="-metadata" value="dc.Title,Title"/>
    104104            <option name="-partition_type_within_level" value="approximate_size"/>
    105105            <option name="-numeric_partition_type_within_level" value="approximate_size"/>
     106            <!-- only use one dc.Title/Title value. change to allvalues to use all of them -->
     107            <option name="-metadata_selection_mode_within_level" value="firstvalue"/>
     108            <format>
     109              <gsf:template match="documentNode">
     110                <td valign="top">
     111                  <gsf:link type="document">
     112                <gsf:icon type="document"/>
     113                  </gsf:link>
     114                </td>
     115                <td valign="top">
     116                  <gsf:link type="source">
     117                <gsf:choose-metadata>
     118                  <gsf:metadata name="thumbicon"/>
     119                  <gsf:metadata name="srcicon"/>
     120                </gsf:choose-metadata>
     121                  </gsf:link>
     122                </td>
     123                <td valign="top">
     124                  <gsf:link type="document">
     125                <!-- Instead of using choose-title here, we want to display the title that the document was classified on -->
     126                <gsf:metadata name="dc.Title,Title" pos="classifiedBy"/>
     127                <gsf:switch>
     128                  <gsf:metadata name="Source"/>
     129                  <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
     130                </gsf:switch>
     131                  </gsf:link>
     132                </td>
     133              </gsf:template>
     134            </format>
    106135        </classifier>
    107136        <classifier name="List">
Note: See TracChangeset for help on using the changeset viewer.