Changeset 5689 for trunk/gsdl3/web/interfaces
- Timestamp:
- 2003-10-21T11:05:42+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/config_format.xsl
r4900 r5689 12 12 13 13 <xsl:template match="format"> 14 <format hello="yes">14 <format> 15 15 <xsl:apply-templates/> 16 16 </format> … … 21 21 <xsl:copy-of select="@*"/> 22 22 <xsl:attribute name="priority">2</xsl:attribute> 23 <xsl:if test=".//gsf:link /@type">23 <xsl:if test=".//gsf:link"> 24 24 <xslt:param name="serviceName"/> 25 </xsl:if>26 <xsl:if test=".//gsf:link">27 25 <xslt:param name="collName"/> 28 26 </xsl:if> … … 39 37 </xsl:when> 40 38 <xsl:otherwise> <!-- a document link --> 41 <a><xslt:attribute name="href"><xslt:value-of select='$library_name'/>?a=d&c=<xslt:value-of select='$collName'/>&d=<xslt:value-of select='@nodeID'/>&dt=<xslt:value-of select='@docType'/><xslt:if test="@nodeType='leaf'">&sib=1</xslt:if> </xslt:attribute><xsl:apply-templates/></a>39 <a><xslt:attribute name="href"><xslt:value-of select='$library_name'/>?a=d&c=<xslt:value-of select='$collName'/>&d=<xslt:value-of select='@nodeID'/>&dt=<xslt:value-of select='@docType'/><xslt:if test="@nodeType='leaf'">&sib=1</xslt:if>&p.a=<xslt:value-of select="/page/pageRequest/@action"/>&p.sa=<xsl:value-of select="/page/pageRequest/@subaction"/>&p.s=<xslt:value-of select="$serviceName"/></xslt:attribute><xsl:apply-templates/></a> 42 40 </xsl:otherwise> 43 41 </xsl:choose> … … 47 45 <xsl:choose> 48 46 <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"/> 50 48 </xsl:when> 51 49 <xsl:otherwise> 52 50 <xslt:apply-templates select="." mode="displayNodeIcon"/> 53 <!--54 <img src='interfaces/default/images/book.gif' width='18' height='11' border='0'/>-->55 51 </xsl:otherwise> 56 52 </xsl:choose> 57 53 </xsl:template> 58 54 59 55 <xsl:template match="gsf:metadata"> 60 56 <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> 61 57 </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 metadata68 </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 75 58 76 59 <xsl:template match="gsf:text"> … … 85 68 </xsl:template> 86 69 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 132 70 </xsl:stylesheet> 133 71
Note:
See TracChangeset
for help on using the changeset viewer.