Changeset 25843

Show
Ignore:
Timestamp:
28.06.2012 10:44:42 (7 years ago)
Author:
kjdon
Message:

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

Files:
1 modified

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">