Show
Ignore:
Timestamp:
21.08.2020 16:12:59 (2 months ago)
Author:
ak19
Message:

Removed a recently introduced custom format statement for the titles classifier (CL1 VList) with Kathy's permission and instruction. She said that what made it different from the general browse format statement would only make the custom format statement necessary if the title's classifier option was set to allvalues rather than firstvalue as it is at present, and said leaving the breadcrumb in the form of a comment (dictation from her) would allow reconstituting the special, different behaviour if the option ever needed to be set to allvalues. With the custom format statement gone again, the tutorials are no longer almost uniformly affected and in need of updating to accomodate the second existing browse format statement.

Files:
1 modified

Legend:

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

    r34197 r34319  
    130130            <option name="-partition_type_within_level" value="approximate_size"/> 
    131131            <option name="-numeric_partition_type_within_level" value="approximate_size"/> 
    132             <!-- only use one dc.Title/Title value. change to allvalues to use all of them --> 
     132            <!-- only use one dc.Title/Title value. change to allvalues to use all of them.--> 
    133133            <option name="-metadata_selection_mode_within_level" value="firstvalue"/> 
    134             <format> 
     134            <!-- 
     135                If you are classifying by multiple title values for each document, then  
     136                (1) edit above line to: <option name="-metadata_selection_mode_within_level" value="allvalues"/> 
     137                (2) create a custom <format> statement immediately below this <option> element, 
     138                and copy the existing browse <format>'s <gsf:template match="documentNode"> into it 
     139                (3) then change its choose-title line (<xsl:call-template name="choose-title"/>) 
     140                to the following (note pos=classifiedBy) preceded by the XML comment: 
     141                Instead of using choose-title here, we want to display the title that the document was classified on 
     142                <gsf:metadata name="dc.Title,Title" pos="classifiedBy"/> 
     143            --> 
     144            <!--<format> 
    135145              <gsf:template match="documentNode"> 
    136146                <td valign="top"> 
     
    149159                <td valign="top"> 
    150160                  <gsf:link type="document"> 
    151                 <!-- Instead of using choose-title here, we want to display the title that the document was classified on --> 
     161                Instead of using choose-title here, we want to display the title that the document was classified on 
    152162                <gsf:metadata name="dc.Title,Title" pos="classifiedBy"/> 
    153163                <gsf:switch> 
     
    159169              </gsf:template> 
    160170            </format> 
     171            --> 
    161172        </classifier> 
    162173        <classifier name="List">