Changeset 14391


Ignore:
Timestamp:
2007-08-31T11:09:41+12:00 (17 years ago)
Author:
anna
Message:

Added next and previous page arrows on document page.

File:
1 edited

Legend:

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

    r14379 r14391  
    6767    </xsl:call-template>
    6868   
     69    <xsl:call-template name="documentArrows">
     70      <xsl:with-param name="collName" select="$collName"/>
     71    </xsl:call-template>         
    6972    <xsl:call-template name="documentContent">
    7073      <xsl:with-param name="collName" select="$collName"/>
    7174    </xsl:call-template>
    72   </xsl:template>
     75    <xsl:call-template name="documentArrows">
     76      <xsl:with-param name="collName" select="$collName"/>
     77    </xsl:call-template>
     78    <br/>
     79  </xsl:template>
     80 
     81  <xsl:template name="documentArrows">
     82    <xsl:param name="collName"/>
     83    <div class="documentarrows">
     84       <xsl:call-template name="documentArrow">
     85        <xsl:with-param name="collName" select="$collName"/>
     86       <xsl:with-param name="direction">back</xsl:with-param>
     87     </xsl:call-template>
     88    <xsl:call-template name="documentArrow">
     89      <xsl:with-param name="collName" select="$collName"/>
     90      <xsl:with-param name="direction">forward</xsl:with-param>
     91    </xsl:call-template>
     92    </div>   
     93  </xsl:template>
     94 
     95  <xsl:template name="documentArrow">
     96    <xsl:param name="collName"/>
     97    <xsl:param name="direction"/>
     98    <xsl:variable name="request-params" select="/page/pageRequest/paramList"/>
     99    <xsl:if test='$request-params/param[@name="dt"]/@value != "simple"'> 
     100    <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="$collName"/>&amp;d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&amp;sib=1&amp;p.s=<xsl:value-of select='$request-params/param[@name="p.s"]/@value'/>&amp;p.sa=<xsl:value-of select='$request-params/param[@name="p.sa"]/@value'/>&amp;p.a=<xsl:value-of select='$request-params/param[@name="p.a"]/@value'/></xsl:attribute><xsl:choose><xsl:when test="$direction='back'"><img class="lessarrow" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow" src="interfaces/default/images/more.gif"  /></xsl:otherwise></xsl:choose></a>
     101    </xsl:if>
     102  </xsl:template>
     103         
    73104
    74105  <xsl:template name="documentHeading">
Note: See TracChangeset for help on using the changeset viewer.