Changeset 5701 for trunk/gsdl3


Ignore:
Timestamp:
2003-10-21T14:31:48+13:00 (21 years ago)
Author:
kjdon
Message:

ec arg not saved, so an expanded toc must put ec=1 onto every node to keep it expanded

File:
1 edited

Legend:

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

    r5699 r5701  
    173173          <table>
    174174        <xsl:for-each select="documentNode/documentNode[@nodeID]">
    175           <xsl:apply-templates select='.'><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
     175          <xsl:apply-templates select='.'><xsl:with-param name="collName" select="$collName"/><xsl:with-param name="ec" select="$ec"/></xsl:apply-templates>
    176176        </xsl:for-each>
    177177          </table>
     
    185185  <xsl:template match="documentNode">
    186186    <xsl:param name="collName"/>
     187    <xsl:param name="ec"/>
    187188    <!-- Display the appropriate image, depending on the node type -->
    188189    <tr><td valign="top">
    189     <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='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if><xsl:if test="@nodeType='leaf'">&amp;sib=1</xsl:if></xsl:attribute>
     190    <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='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if><xsl:if test="@nodeType='leaf'">&amp;sib=1</xsl:if><xsl:if test="string($ec) = '1'">&amp;ec=1</xsl:if></xsl:attribute>
    190191      <xsl:apply-templates select="." mode="displayNodeIcon"/>
    191192    </a>
     
    209210        <xsl:apply-templates select="documentNode[@nodeID]">
    210211          <xsl:with-param name="collName" select="$collName"/>
     212          <xsl:with-param name="ec" select="$ec"/>
    211213          <!--<xsl:with-param name="depth" select="$depth + 1"/>-->
    212214        </xsl:apply-templates>
Note: See TracChangeset for help on using the changeset viewer.