Changeset 29399 for main/trunk


Ignore:
Timestamp:
2014-10-22T12:40:10+13:00 (9 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.

File:
1 edited

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