Ignore:
Timestamp:
2002-10-14T16:18:14+13:00 (22 years ago)
Author:
kjdon
Message:

using the from attribute in the response rather than the name attribute in the collection elem, for the collection name - this makes it relative to the current site, not just the local name

File:
1 edited

Legend:

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

    r3436 r3464  
    1010
    1111<xsl:template match="page">
     12<xsl:variable name="collName" select="response/@from"/>
    1213<html>
    1314<xsl:call-template name="greenstoneHead"/>
    1415<body xsl:use-attribute-sets="body-style">
    1516<center>
    16 <xsl:apply-templates select="response/collection"/>
     17<xsl:apply-templates select="response/collection"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
    1718</center>
    1819<xsl:call-template name="greenstoneFooter"/>
     
    2223
    2324<xsl:template match="collection">
    24 
     25<xsl:param name="collName">x</xsl:param>
    2526<xsl:call-template name="collectionPageBanner">
    26 <xsl:with-param name="collName"><xsl:value-of select="@name"/></xsl:with-param>
     27<xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>
    2728<xsl:with-param name="collIcon"><xsl:value-of select="metadataList/metadata[@name='iconCollection']"/></xsl:with-param>
    2829</xsl:call-template>
    2930<p/><xsl:apply-templates select="metadataList">
    30 <xsl:with-param name="collName"><xsl:value-of select="@name"/></xsl:with-param>
     31<xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>
    3132</xsl:apply-templates>
    3233<p/><xsl:apply-templates select="serviceList">
    33 <xsl:with-param name="collName"><xsl:value-of select="@name"/></xsl:with-param>
     34<xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>
    3435</xsl:apply-templates>
    3536</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.