Changeset 29401

Show
Ignore:
Timestamp:
22.10.2014 13:22:30 (5 years ago)
Author:
kjdon
Message:

added a test for NoText? metadata - if present, don't output the option for search term highlighting. This will suppress it for image documents etc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/toc.xsl

    r29400 r29401  
    278278                 
    279279                <!-- Highlight on/off button --> 
    280                 <xsl:if test="util:contains(/page/pageRequest/paramList/param[@name = 'p.s']/@value, 'Query')"> 
     280                <xsl:if test="util:contains(/page/pageRequest/paramList/param[@name = 'p.s']/@value, 'Query') and not(metadataList/metadata[@name='NoText'])"> 
    281281                    <li> 
    282282                        <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.highlightTooltip')"/></xsl:attribute>