Changeset 3474


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

added support for service clusters

Location:
trunk/gsdl3/interfaces/default/transform
Files:
3 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
  • trunk/gsdl3/interfaces/default/transform/home.xsl

    r3436 r3474  
    1515<center>
    1616<xsl:apply-templates select="response/collectionList"/>
     17<xsl:apply-templates select="response/serviceClusterList"/>
     18<xsl:apply-templates select="response/serviceList"/>
    1719</center>
    1820<xsl:call-template name="greenstoneFooter"/>
     
    3032</xsl:template>
    3133
     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&amp;sa=about&amp;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>
    3255</xsl:stylesheet> 
    3356
  • trunk/gsdl3/interfaces/default/transform/style.xsl

    r3436 r3474  
    6969</xsl:template>
    7070
     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&amp;sa=about&amp;sc={$clusterName}"><xsl:value-of select="$clusterName"/></a></td><td align="right"><a href="{$library}?a=p&amp;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>
    7180
    7281<xsl:template name="greenBar">
Note: See TracChangeset for help on using the changeset viewer.