Ignore:
Timestamp:
2012-06-28T10:44:42+12:00 (12 years ago)
Author:
kjdon
Message:

if book is not defined then we need to set the bookswitch variable to off

File:
1 edited

Legend:

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

    r25699 r25843  
    4848  </xsl:variable>
    4949  <xsl:variable name="bookswitch">
     50    <xsl:choose>
     51      <xsl:when test="/page/pageRequest/paramList/param[@name='book']">
    5052    <xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/>
     53    </xsl:when>
     54    <xsl:otherwise>off</xsl:otherwise>
     55    </xsl:choose>
    5156  </xsl:variable>
    5257  <xsl:template name="pageTitle">
Note: See TracChangeset for help on using the changeset viewer.