Changeset 13580 for trunk


Ignore:
Timestamp:
2007-01-12T11:38:52+13:00 (17 years ago)
Author:
shaoqun
Message:

suppress the less and more arrows when there is only one section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/web/interfaces/default/transform/document.xsl

    r13548 r13580  
    160160          <xsl:choose><xsl:when test="string($ec)='1'">
    161161          <a href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_tip')"/></xsl:attribute>
    162         <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/>         </a>
     162        <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/></a>
    163163        </xsl:when>
    164164        <xsl:otherwise>
     
    436436    <xsl:param name="direction"/>
    437437    <xsl:variable name="request-params" select="/page/pageRequest/paramList"/>
     438    <xsl:if test='$request-params/param[@name="dt"]/@value != "simple"'> 
    438439    <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>
     440    </xsl:if>
    439441  </xsl:template>
    440442</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.