Changeset 28307


Ignore:
Timestamp:
09/24/13 14:28:02 (8 years ago)
Author:
kjdon
Message:

when doing collection metadata, need the parentheses around the entire path up to metadataList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl

    r28036 r28307  
    476476            <xslt:for-each>
    477477                <xsl:attribute name="select">
    478                     <xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>(.//metadataList)[last()]/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang">
     478                    (<xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>.//metadataList)[last()]/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang">
    479479                        <xsl:text> and @lang=</xsl:text>
    480480                        <xsl:value-of select="@lang"/>
     
    505505    <xslt:for-each>
    506506      <xsl:attribute name="select">
    507     <xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>(.//metadataList)[last()]/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang"><xsl:text> and @lang=</xsl:text><xsl:value-of select="@lang"/></xsl:if><xsl:text>]</xsl:text>
     507    (<xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>.//metadataList)[last()]/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang"><xsl:text> and @lang=</xsl:text><xsl:value-of select="@lang"/></xsl:if><xsl:text>]</xsl:text>
    508508      </xsl:attribute><xsl:if test='@separator'><xslt:if test='position()>1'><xsl:value-of select='@separator'/></xslt:if></xsl:if>
    509509      <xsl:apply-templates/>
Note: See TracChangeset for help on using the changeset viewer.