Ignore:
Timestamp:
2014-08-29T18:18:02+12:00 (10 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed a bug that is apparent when doing the final step of the basic Scanned Image tutorial. The reference to the parent's metadata to obtain the parent's volume number and title failed. The metadata was being requested and was returned in the response from the GS3 server, but the returned metadata has parent_ prefixed to the metanames Volume and Title but the config_format.xsl wasn't prefixing the parent_ when trying to access the metadata from the xml. Dr Bainbridge's fixes this.

File:
1 edited

Legend:

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

    r29234 r29245  
    451451        <xsl:if test="not(@hidden = 'true')">
    452452            <!-- set hidden=true on a gsf:metadata so that it gets retrieved from the server but not displayed -->
    453             <xsl:variable name="meta_test"><xsl:call-template name="getMetadataTest"/></xsl:variable>             
     453            <xsl:variable name="meta_test"><xsl:call-template name="getMetadataTest"/></xsl:variable>
    454454            <xsl:variable name="separator">
    455455                <xsl:choose>
     
    552552  <!-- if we have metadata name="dc.Date,Date" will make a test like (@name = 'dc.Date' or @name = 'Date') -->
    553553  <xsl:template name="getMetadataTest">
    554     (<xsl:for-each select="xalan:tokenize(@name, ',')"><xsl:if test="position()!=1"> or </xsl:if>@name='<xsl:if test='@select'><xsl:value-of select='@select'/><xsl:text>_</xsl:text></xsl:if><xsl:value-of select="."/>'</xsl:for-each>)
     554  <xsl:variable name="selectattr"><xsl:value-of select='@select'/></xsl:variable>
     555    (<xsl:for-each select="xalan:tokenize(@name, ',')"><xsl:if test="position()!=1"> or </xsl:if>@name='<xsl:if test="$selectattr != ''"><xsl:value-of select="$selectattr"/><xsl:text>_</xsl:text></xsl:if><xsl:value-of select="."/>'</xsl:for-each>)
    555556  </xsl:template>
    556557
Note: See TracChangeset for help on using the changeset viewer.