Changeset 36908


Ignore:
Timestamp:
2022-11-21T08:57:00+13:00 (2 weeks ago)
Author:
kjdon
Message:

have to handle the case where there might be multiple tk label fields, not just one

File:
1 edited

Legend:

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

    r36907 r36908  
    882882    <xsl:param name="label-metadata">tk.Labels</xsl:param>
    883883    <xsl:call-template name="js-for-loading-tk-metadata-set"/>
    884     <xsl:variable name="labels-csv"><xsl:value-of select="metadataList/metadata[@name=$label-metadata]"/></xsl:variable>
     884    <xsl:variable name="labels-csv"><xsl:for-each select="metadataList/metadata[@name=$label-metadata]"><xsl:value-of select="."/>,</xsl:for-each></xsl:variable>
    885885    <gsf:div class="tklabels">
    886886      <xsl:if test="util:csvContains($labels-csv, 'tk.Attribution')">
Note: See TracChangeset for help on using the changeset viewer.