Ignore:
Timestamp:
2002-10-25T10:13:09+13:00 (22 years ago)
Author:
kjdon
Message:

added support for service clusters

File:
1 edited

Legend:

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

    r3464 r3474  
    1515<body xsl:use-attribute-sets="body-style">
    1616<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>
    1818</center>
    1919<xsl:call-template name="greenstoneFooter"/>
     
    3131<xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>
    3232</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">
    3446<xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>
    3547</xsl:apply-templates>
     
    3749
    3850
     51
    3952<xsl:template match="metadataList">
    4053<xsl:param name="collName">coll-name</xsl:param>
    41 <h2>Collection description</h2>
     54<h2>Description</h2>
    4255<p/>
    4356<table>
    4457<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>
    4659</xsl:for-each>
    4760</table>
    4861</xsl:template>
    4962
    50 <xsl:template match="serviceList">
     63<xsl:template match="serviceList" mode="collection">
    5164<xsl:param name="collName">coll-name</xsl:param>
    5265<xsl:variable name="library" select="ancestor::page/config/library_name"/>
     
    7487</xsl:if>
    7588</tr>
    76 
    7789</xsl:for-each>
    7890</table>
     
    8193
    8294
     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}&amp;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
    83107</xsl:stylesheet> 
    84108
Note: See TracChangeset for help on using the changeset viewer.