Changeset 29401


Ignore:
Timestamp:
2014-10-22T13:22:30+13:00 (8 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

File:
1 edited

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>
Note: See TracChangeset for help on using the changeset viewer.