Changeset 3474
- Timestamp:
- 2002-10-25T10:13:09+13:00 (22 years ago)
- Location:
- trunk/gsdl3/interfaces/default/transform
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/interfaces/default/transform/about.xsl
r3464 r3474 15 15 <body xsl:use-attribute-sets="body-style"> 16 16 <center> 17 <xsl:apply-templates select="response/collection "><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>17 <xsl:apply-templates select="response/collection|response/serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates> 18 18 </center> 19 19 <xsl:call-template name="greenstoneFooter"/> … … 31 31 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 32 32 </xsl:apply-templates> 33 <p/><xsl:apply-templates select="serviceList"> 33 <p/><xsl:apply-templates select="serviceList" mode="collection"> 34 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 35 </xsl:apply-templates> 36 </xsl:template> 37 38 <xsl:template match="serviceCluster"> 39 <xsl:param name="collName">x</xsl:param> 40 <xsl:call-template name="clusterPageBanner"> 41 <xsl:with-param name="clusterName"><xsl:value-of select="$collName"/></xsl:with-param></xsl:call-template> 42 <p/><xsl:apply-templates select="metadataList"> 43 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 44 </xsl:apply-templates> 45 <p/><xsl:apply-templates select="serviceList" mode="cluster"> 34 46 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 35 47 </xsl:apply-templates> … … 37 49 38 50 51 39 52 <xsl:template match="metadataList"> 40 53 <xsl:param name="collName">coll-name</xsl:param> 41 <h2> Collection description</h2>54 <h2>Description</h2> 42 55 <p/> 43 56 <table> 44 57 <xsl:for-each select="metadata"> 45 <tr><td>< xsl:value-of select="@name"/></td><td><xsl:value-of select="."/></td></tr>58 <tr><td><b><xsl:value-of select="@name"/></b></td><td><xsl:value-of select="."/></td></tr> 46 59 </xsl:for-each> 47 60 </table> 48 61 </xsl:template> 49 62 50 <xsl:template match="serviceList" >63 <xsl:template match="serviceList" mode="collection"> 51 64 <xsl:param name="collName">coll-name</xsl:param> 52 65 <xsl:variable name="library" select="ancestor::page/config/library_name"/> … … 74 87 </xsl:if> 75 88 </tr> 76 77 89 </xsl:for-each> 78 90 </table> … … 81 93 82 94 95 <xsl:template match="serviceList" mode="cluster"> 96 <xsl:param name="collName">coll-name</xsl:param> 97 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 98 <h2>Services available</h2> 99 <table> 100 <xsl:for-each select="service"> 101 <tr><td><a href="{$library}?a={$collName}&sa={@name}"><xsl:value-of select="@name"/></a></td></tr> 102 </xsl:for-each> 103 </table> 104 <xsl:call-template name="greenBar"/> 105 </xsl:template> 106 83 107 </xsl:stylesheet> 84 108 -
trunk/gsdl3/interfaces/default/transform/home.xsl
r3436 r3474 15 15 <center> 16 16 <xsl:apply-templates select="response/collectionList"/> 17 <xsl:apply-templates select="response/serviceClusterList"/> 18 <xsl:apply-templates select="response/serviceList"/> 17 19 </center> 18 20 <xsl:call-template name="greenstoneFooter"/> … … 30 32 </xsl:template> 31 33 34 <!-- 35 <xsl:template match="serviceList"> 36 <xsl:if test="service[@type='transform']"> 37 <p/><a <b>Transformation Services</b> 38 </xsl:if> 39 <xsl:if test="service[@type='enrich']"> 40 <p/><b>Enrichment Services</b> 41 </xsl:if> 42 <xsl:if test="service[@type='build']"> 43 <p/><b>Collection Building Services</b> 44 </xsl:if> 45 <p/><xsl:call-template name="greenBar"/> 46 </xsl:template> 47 --> 48 49 <xsl:template match="serviceClusterList"> 50 <xsl:for-each select="serviceCluster"> 51 <p/><a><xsl:attribute name='href'><xsl:value-of select="ancestor::page/config/library_name"/>?a=p&sa=about&sc=<xsl:value-of select='@name'/></xsl:attribute><xsl:value-of select='@name'/></a> 52 </xsl:for-each> 53 <xsl:call-template name="greenBar"/> 54 </xsl:template> 32 55 </xsl:stylesheet> 33 56 -
trunk/gsdl3/interfaces/default/transform/style.xsl
r3436 r3474 69 69 </xsl:template> 70 70 71 <!-- do we want different stuff for cluster or same as collection --> 72 <xsl:template name="clusterPageBanner"> 73 <xsl:param name="clusterName">coll-name</xsl:param> 74 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 75 <table width="537"> 76 <tr><td align="left"><a href="{$library}?a=p&sa=about&sc={$clusterName}"><xsl:value-of select="$clusterName"/></a></td><td align="right"><a href="{$library}?a=p&sa=home"><xsl:call-template name="text"><xsl:with-param name="key">common/home</xsl:with-param></xsl:call-template></a></td></tr></table> 77 78 <xsl:call-template name="greenBar"/> 79 </xsl:template> 71 80 72 81 <xsl:template name="greenBar">
Note:
See TracChangeset
for help on using the changeset viewer.