Changeset 3686 for trunk/gsdl3/interfaces/default/transform/about.xsl
- Timestamp:
- 2003-01-17T11:04:39+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/interfaces/default/transform/about.xsl
r3655 r3686 15 15 <body xsl:use-attribute-sets="body-style"> 16 16 <center> 17 <table width='537'> 18 <tr><td> 17 19 <xsl:apply-templates select="response/collection|response/serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates> 20 </td></tr></table> 18 21 </center> 19 22 <xsl:call-template name="greenstoneFooter"/> … … 22 25 </xsl:template> 23 26 24 <xsl:template match="collection"> 25 <xsl:param name="collName">x</xsl:param> 27 <xsl:template match="collection|serviceCluster"> 28 <xsl:param name="collName">coll-name</xsl:param> 29 <xsl:if test='name()="collection"'> 26 30 <xsl:call-template name="collectionPageBanner"> 27 31 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 28 <xsl:with-param name="collIcon"><xsl:value-of select="metadataList/metadata[@name=' iconCollection']"/></xsl:with-param>32 <xsl:with-param name="collIcon"><xsl:value-of select="metadataList/metadata[@name='colIcon']"/></xsl:with-param> 29 33 </xsl:call-template> 34 </xsl:if> 35 <xsl:if test='name()="serviceCluster"'> 36 <xsl:call-template name="clusterPageBanner"> 37 <xsl:with-param name="clusterName"><xsl:value-of select="$collName"/></xsl:with-param></xsl:call-template> 38 </xsl:if> 30 39 <p/><xsl:apply-templates select="metadataList"> 31 40 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 32 41 </xsl:apply-templates> 33 <p/><xsl:apply-templates select="serviceList" mode="collection">42 <p/><xsl:apply-templates select="serviceList"> 34 43 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 35 44 </xsl:apply-templates> 36 45 </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">46 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>47 </xsl:apply-templates>48 </xsl:template>49 50 46 51 47 … … 54 50 <h2><xsl:call-template name="text"><xsl:with-param name="key">about.description</xsl:with-param></xsl:call-template></h2> 55 51 <p/> 56 <table >52 <table width='537'> 57 53 <xsl:for-each select="metadata"> 58 <tr ><td><b><xsl:value-of select="@name"/></b></td><td><xsl:value-of select="."/></td></tr>54 <tr valign='top'><td><b><xsl:value-of select="@name"/></b></td><td><xsl:value-of select="."/></td></tr> 59 55 </xsl:for-each> 60 56 </table> 61 57 </xsl:template> 62 58 63 <xsl:template match="serviceList" mode="collection">59 <xsl:template match="serviceList"> 64 60 <xsl:param name="collName">coll-name</xsl:param> 65 61 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 66 62 <h2><xsl:call-template name="text"><xsl:with-param name="key">about.services</xsl:with-param></xsl:call-template></h2> 67 63 <table> 68 <xsl:for-each select="service[@type='query']"> 69 <xsl:variable name="serviceName"><xsl:value-of select="@name"/></xsl:variable> 70 <tr> 71 <xsl:if test="contains($serviceName, 'Query')"> 72 <xsl:variable name="s-type"><xsl:value-of select="substring-before($serviceName, 'Query')"/></xsl:variable> 73 <td><a href="{$library}?a=q&sa={$s-type}&c={$collName}"><xsl:value-of select="$serviceName"/></a></td> 64 <xsl:for-each select="service"> 65 <xsl:variable name="action"><xsl:choose> 66 <xsl:when test="@type='query'">q</xsl:when> 67 <xsl:when test="@type='browse'">b</xsl:when> 68 <xsl:when test="@type='process'">pr</xsl:when> 69 <xsl:when test="@type='applet'">a</xsl:when> 70 <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise> 71 </xsl:choose></xsl:variable> 72 <xsl:if test="$action !='DO_NOT_DISPLAY'"> 73 <tr><td><a href="{$library}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:value-of select="@name"/></a></td></tr> 74 74 </xsl:if> 75 <xsl:if test="contains($serviceName, 'Browse')">76 <xsl:variable name="s-type"><xsl:value-of select="substring-before($serviceName, 'Browse')"/></xsl:variable>77 <td><a href="{$library}?a=b&sa={$s-type}&c={$collName}"><xsl:value-of select="$serviceName"/></a></td>78 </xsl:if>79 <xsl:if test="contains($serviceName, 'Applet')">80 <xsl:variable name="s-type"><xsl:value-of select="substring-before($serviceName, 'Applet')"/></xsl:variable>81 <td><a href="{$library}?a=a&sa=d&s={$s-type}&c={$collName}"><xsl:value-of select="$serviceName"/></a></td>82 </xsl:if>83 </tr>84 75 </xsl:for-each> 85 76 </table> … … 88 79 89 80 90 <xsl:template match="serviceList" mode="cluster">91 <xsl:param name="collName">coll-name</xsl:param>92 <xsl:variable name="library" select="ancestor::page/config/library_name"/>93 <h2><xsl:call-template name="text"><xsl:with-param name="key">about.services</xsl:with-param></xsl:call-template></h2>94 <table>95 <xsl:for-each select="service">96 <tr><td><a href="{$library}?a=pr&sa=d&c={$collName}&s={@name}"><xsl:value-of select="@name"/></a></td></tr>97 </xsl:for-each>98 </table>99 <xsl:call-template name="greenBar"/>100 </xsl:template>101 81 102 82 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.