Changeset 14540

Show
Ignore:
Timestamp:
19.09.2007 10:46:55 (12 years ago)
Author:
anna
Message:

Don't display document arrows when document is expanded.

Location:
greenstone3/trunk/web/interfaces
Files:
2 modified

Legend:

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

    r14508 r14540  
    8282  <xsl:template name="documentArrows"> 
    8383    <xsl:param name="collName"/> 
     84    <xsl:variable name="ed" select="/page/pageRequest/paramList/param[@name='ed']/@value"/> 
    8485    <xsl:variable name="dir"><xsl:call-template name="direction"/></xsl:variable>     
    8586    <xsl:variable name="firstDir"><xsl:choose><xsl:when test="$dir='rtl'">forward</xsl:when><xsl:otherwise>back</xsl:otherwise></xsl:choose></xsl:variable> 
     
    8788     
    8889    <div class="documentarrows"> 
     90    <xsl:if test="not(string($ed)='1')"> 
    8991       <xsl:call-template name="documentArrow"> 
    9092        <xsl:with-param name="collName" select="$collName"/> 
     
    9799      <xsl:with-param name="pageDir" select="$dir"/> 
    98100    </xsl:call-template> 
     101    </xsl:if> 
    99102    </div>     
    100103  </xsl:template> 
  • greenstone3/trunk/web/interfaces/default/transform/document.xsl

    r14535 r14540  
    557557  <xsl:template name="documentArrows"> 
    558558    <xsl:param name="collName"/> 
     559    <xsl:variable name="ed" select="/page/pageRequest/paramList/param[@name='ed']/@value"/> 
     560     
    559561    <div class="documentarrows"> 
     562    <xsl:if test="not(string($ed)='1')"> 
    560563       <xsl:call-template name="documentArrow"> 
    561564        <xsl:with-param name="collName" select="$collName"/> 
     
    566569      <xsl:with-param name="direction">forward</xsl:with-param> 
    567570    </xsl:call-template> 
     571    </xsl:if> 
    568572    </div> 
    569573