Ignore:
Timestamp:
2016-12-15T10:16:26+13:00 (7 years ago)
Author:
kjdon
Message:

added option disableSearchTermHighlighting=true so the user can switch this behaviour off

File:
1 edited

Legend:

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

    r30774 r31238  
    286286               
    287287                <!-- Highlight on/off button -->
    288                 <xsl:if test="util:contains(/page/pageRequest/paramList/param[@name = 'p.s']/@value, 'Query') and not(metadataList/metadata[@name='NoText'])">
     288                <xsl:if test="util:contains(/page/pageRequest/paramList/param[@name = 'p.s']/@value, 'Query') and not(metadataList/metadata[@name='NoText']) and not(/page/pageResponse/format[@type='display']/gsf:option[@name='disableSearchTermHighlighting']/@value='true')">
    289289                    <li>
    290290                        <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.