Changeset 30868

Show
Ignore:
Timestamp:
17.10.2016 09:54:08 (3 years ago)
Author:
kjdon
Message:

removed a heap of hat-Ms, and modified the gsf:if-metadata-exists template so that you can use the pos attribute in the test metadata element

Files:
1 modified

Legend:

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

    r30727 r30868  
    627627    <xsl:template match="gsf:if-metadata-exists"> 
    628628        <xsl:variable name="meta-path"> 
    629             <xsl:for-each select="gsf:metadata">(.//metadataList)[last()]/metadata[@name='<xsl:call-template name="getMetadataName"/>']</xsl:for-each> 
     629            <xsl:for-each select="gsf:metadata">(.//metadataList)[last()]/metadata[@name='<xsl:call-template name="getMetadataName"/>']<xsl:if test="@pos">[<xsl:value-of select="@pos"/>]</xsl:if></xsl:for-each> 
    630630        </xsl:variable> 
    631631        <xslt:choose>