Changeset 3816


Ignore:
Timestamp:
2003-03-10T10:38:41+13:00 (21 years ago)
Author:
mdewsnip
Message:

Updated table of contents display to use generic "displayNodeIcon" template in style.xsl.

File:
1 edited

Legend:

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

    r3789 r3816  
    8989      <td valign="top">
    9090    <a href="{$library}?a=d&amp;c={$collName}&amp;d={@documentID}">
    91       <xsl:if test="@documentNodeType='root'">
    92         <img border="0" width="28" height="23"
    93          src="interfaces/default/images/openbook.gif"
    94              alt="Close this book"/>
    95       </xsl:if>
    96       <xsl:if test="@documentNodeType='interior'">
    97         <xsl:choose>
    98           <xsl:when test="documentNode">
    99             <img border="0" width="23" height="15"
    100              src="interfaces/default/images/openfldr.gif"
    101              alt="Close this folder"/>
    102           </xsl:when>
    103           <xsl:otherwise>
    104             <img border="0" width="23" height="15"
    105              src="interfaces/default/images/clsdfldr.gif"
    106              alt="Open this folder and view contents"/>
    107           </xsl:otherwise>
    108         </xsl:choose>
    109       </xsl:if>
    110       <xsl:if test="@documentNodeType='leaf'">
    111         <img border="0" width="16" height="21"
    112              src="interfaces/default/images/itext.gif"
    113              alt="View the document"/>
    114       </xsl:if>
     91      <xsl:apply-templates select="." mode="displayNodeIcon"/>
    11592    </a>
    11693      </td>
Note: See TracChangeset for help on using the changeset viewer.