Changeset 29399

Show
Ignore:
Timestamp:
22.10.2014 12:40:10 (5 years ago)
Author:
kjdon
Message:

when using the hl (highlight) option, test for it being off rather than on. This gives search term highlighting on by default. This hl value is only set when we are in a hierarchical document and we do an ajax call to get the text of a new section.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r29321 r29399  
    461461    <xsl:template name="displayAnnotation"> 
    462462        <xsl:choose> 
    463             <xsl:when test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'"> 
     463            <xsl:when test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'off'"> 
     464                <span class="noTermHighlight"><xsl:value-of select="."/></span> 
     465            </xsl:when> 
     466            <xsl:otherwise> 
    464467                <span class="termHighlight"><xsl:value-of select="."/></span> 
    465             </xsl:when> 
    466             <xsl:otherwise> 
    467                 <span class="noTermHighlight"><xsl:value-of select="."/></span> 
    468468            </xsl:otherwise> 
    469469        </xsl:choose>