Ignore:
Timestamp:
2003-10-21T11:05:42+13:00 (21 years ago)
Author:
kjdon
Message:

removed unnecessary stuff, made it so doc links carry info so the doc can link back to the place it was clicked from

File:
1 edited

Legend:

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

    r4900 r5689  
    1212
    1313  <xsl:template match="format">
    14     <format hello="yes">
     14    <format>
    1515      <xsl:apply-templates/>
    1616    </format>
     
    2121      <xsl:copy-of select="@*"/>
    2222      <xsl:attribute name="priority">2</xsl:attribute>
    23       <xsl:if test=".//gsf:link/@type">
     23      <xsl:if test=".//gsf:link">
    2424    <xslt:param name="serviceName"/>
    25       </xsl:if>
    26       <xsl:if test=".//gsf:link">
    2725    <xslt:param name="collName"/>
    2826      </xsl:if>
     
    3937      </xsl:when>
    4038      <xsl:otherwise> <!-- a document link -->
    41     <a><xslt:attribute name="href"><xslt:value-of select='$library_name'/>?a=d&amp;c=<xslt:value-of select='$collName'/>&amp;d=<xslt:value-of select='@nodeID'/>&amp;dt=<xslt:value-of select='@docType'/><xslt:if test="@nodeType='leaf'">&amp;sib=1</xslt:if></xslt:attribute><xsl:apply-templates/></a>
     39    <a><xslt:attribute name="href"><xslt:value-of select='$library_name'/>?a=d&amp;c=<xslt:value-of select='$collName'/>&amp;d=<xslt:value-of select='@nodeID'/>&amp;dt=<xslt:value-of select='@docType'/><xslt:if test="@nodeType='leaf'">&amp;sib=1</xslt:if>&amp;p.a=<xslt:value-of select="/page/pageRequest/@action"/>&amp;p.sa=<xsl:value-of select="/page/pageRequest/@subaction"/>&amp;p.s=<xslt:value-of select="$serviceName"/></xslt:attribute><xsl:apply-templates/></a>
    4240      </xsl:otherwise>
    4341    </xsl:choose>
     
    4745    <xsl:choose>
    4846      <xsl:when test="@type='classifier'">
    49     <img src='interfaces/default/images/bshelf.gif' border='0' width='20' height='16' />
     47    <xslt:call-template name="bookshelfimg"/>
    5048      </xsl:when>
    5149      <xsl:otherwise>
    5250    <xslt:apply-templates select="." mode="displayNodeIcon"/>
    53     <!--
    54     <img src='interfaces/default/images/book.gif' width='18' height='11' border='0'/>-->
    5551      </xsl:otherwise>
    5652    </xsl:choose>
    5753  </xsl:template>
    58 
     54 
    5955  <xsl:template match="gsf:metadata">
    6056    <xslt:value-of disable-output-escaping="yes"><xsl:attribute name="select">metadataList/metadata[@name="<xsl:if test="@select='parent'">parent_</xsl:if><xsl:if test="@select='ancestors'">ancestors'<xsl:value-of select='@separator'/>'_</xsl:if><xsl:value-of select="@name"/>"]</xsl:attribute></xslt:value-of>
    6157  </xsl:template>
    62   <!--  <xsl:choose>
    63       <xsl:when test="@select='parent'">
    64     <xslt:value-of><xsl:attribute name="select">parent::node()/metadataList/metadata[@name='<xsl:value-of select="@name"/>']</xsl:attribute></xslt:value-of>
    65       </xsl:when>
    66       <xsl:when test="@select='ancestors'">
    67     Ancestor metadata
    68       </xsl:when>
    69       <xsl:otherwise>
    70     <xslt:value-of><xsl:attribute name="select">metadataList/metadata[@name='<xsl:value-of select="@name"/>']</xsl:attribute></xslt:value-of>
    71       </xsl:otherwise>
    72     </xsl:choose>
    73   </xsl:template>-->
    74 
    7558 
    7659  <xsl:template match="gsf:text">
     
    8568  </xsl:template>
    8669
    87 
    88 <!-- copied from style for now-->
    89 <!-- Display the appropriate image, depending on the node type -->
    90 <xsl:template match="documentNode" mode="displayNodeIcon">
    91 
    92   <!-- Root node: book icon (open or closed) -->
    93   <xsl:if test="@nodeType='root'">
    94     <xsl:choose>
    95       <xsl:when test="documentNode">
    96     <img border="0" width="28" height="23"
    97          src="interfaces/default/images/openbook.gif"
    98          alt="Close this book"/>
    99       </xsl:when>
    100       <xsl:otherwise>
    101     <img border="0" width="18" height="11"
    102          src="interfaces/default/images/book.gif"
    103          alt="Open this document and view contents"/>
    104       </xsl:otherwise>
    105     </xsl:choose>
    106   </xsl:if>
    107 
    108   <!-- Interior node: folder icon (open or closed) -->
    109   <xsl:if test="@nodeType='interior'">
    110     <xsl:choose>
    111       <xsl:when test="documentNode">
    112     <img border="0" width="23" height="15"
    113          src="interfaces/default/images/openfldr.gif"
    114          alt="Close this folder"/>
    115       </xsl:when>
    116       <xsl:otherwise>
    117     <img border="0" width="23" height="15"
    118          src="interfaces/default/images/clsdfldr.gif"
    119          alt="Open this folder and view contents"/>
    120       </xsl:otherwise>
    121     </xsl:choose>
    122   </xsl:if>
    123 
    124   <!-- Leaf node: page icon -->
    125   <xsl:if test="@nodeType='leaf'">
    126     <img border="0" width="16" height="21"
    127      src="interfaces/default/images/itext.gif"
    128      alt="View the document"/>
    129   </xsl:if>
    130 </xsl:template>
    131 
    13270</xsl:stylesheet>
    13371
Note: See TracChangeset for help on using the changeset viewer.