Changeset 14672 for greenstone3/trunk/web/interfaces
- Timestamp:
- 2007-10-11T14:43:13+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/classic/transform/document.xsl
r14644 r14672 72 72 <xsl:otherwise> 73 73 74 74 <xsl:call-template name="documentHeading"> 75 75 <xsl:with-param name="collName" select="$collName"/> 76 76 </xsl:call-template> … … 90 90 91 91 <xsl:template name="documentArrows"> 92 <xsl:param name="collName"/> 93 <xsl:variable name="ed" select="/page/pageRequest/paramList/param[@name='ed']/@value"/> 92 <xsl:param name="collName"/> 93 <xsl:variable name="ed" select="/page/pageRequest/paramList/param[@name='ed']/@value"/> 94 94 <xsl:variable name="dir"><xsl:call-template name="direction"/></xsl:variable> 95 95 <xsl:variable name="firstDir"><xsl:choose><xsl:when test="$dir='rtl'">forward</xsl:when><xsl:otherwise>back</xsl:otherwise></xsl:choose></xsl:variable> 96 <xsl:variable name="secondDir"><xsl:choose><xsl:when test="$dir='rtl'">back</xsl:when><xsl:otherwise>forward</xsl:otherwise></xsl:choose></xsl:variable> 96 <xsl:variable name="secondDir"><xsl:choose><xsl:when test="$dir='rtl'">back</xsl:when><xsl:otherwise>forward</xsl:otherwise></xsl:choose></xsl:variable> 97 97 98 98 <div class="documentarrows"> … … 116 116 <xsl:param name="direction"/> 117 117 <xsl:param name="pageDir"/> 118 118 119 <xsl:variable name="disp"> 120 <xsl:choose> 121 <xsl:when test="$direction ='back' and nodeStructureInfo/info[@name='siblingPosition']/@value = -1">n</xsl:when> 122 <xsl:when test="$direction ='forward' and nodeStructureInfo/info[@name='siblingPosition']/@value = nodeStructureInfo/info[@name='numSiblings']/@value">n</xsl:when> 123 <xsl:otherwise>y</xsl:otherwise> 124 </xsl:choose> 125 </xsl:variable> 126 119 127 <xsl:variable name="request-params" select="/page/pageRequest/paramList"/> 120 <xsl:if test='$request-params/param[@name="dt"]/@value != "simple" '>128 <xsl:if test='$request-params/param[@name="dt"]/@value != "simple" and $disp = "y"'> 121 129 <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="$collName"/>&d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&sib=1&p.s=<xsl:value-of select='$request-params/param[@name="p.s"]/@value'/>&p.sa=<xsl:value-of select='$request-params/param[@name="p.sa"]/@value'/>&p.a=<xsl:value-of select='$request-params/param[@name="p.a"]/@value'/></xsl:attribute><xsl:choose> 122 130 <xsl:when test="$direction='back'"><img class="lessarrow{$pageDir}" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow{$pageDir}" src="interfaces/default/images/more.gif" /></xsl:otherwise></xsl:choose></a> … … 184 192 <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/> 185 193 <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable> 186 187 194 188 195 <!-- expand document --> 189 196 <!-- this doesn't work with MG so comment it out for now --> 190 <xsl:if test="@docType = 'hierarchy' or @docType = 'paged'"> 197 <!--<xsl:if test="@docType = 'hierarchy' or @docType = 'paged'">--> 198 <!-- shouldn't appear for paged document --> 199 <xsl:if test="@docType = 'hierarchy'"> 191 200 <div class="button"> 192 201 <span class="button">
Note:
See TracChangeset
for help on using the changeset viewer.