Skip to content

Commit

Permalink
EEA / SDMX / Add maintenance info to FREQ_DISS.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Aug 5, 2024
1 parent f9ebc7c commit c3949e2
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,19 @@
<xsl:with-param name="description" select="gmd:maintenanceNote/gco:CharacterString/text()"/>
</xsl:call-template>
</xsl:for-each>-->

<xsl:variable name="maintenanceNote"
select="string-join($metadata/gmd:identificationInfo/*/gmd:resourceMaintenance/*/gmd:maintenanceAndUpdateFrequency/*/@codeListValue, ', ')"/>
<xsl:for-each select="$metadata/gmd:dataQualityInfo/*/gmd:report/*[gmd:nameOfMeasure/gco:CharacterString = 'Frequency of dissemination']">
<xsl:variable name="frequencyOfDisseminationDesc"
select="if ($maintenanceNote)
then concat($maintenanceNote, ' ', gmd:measureDescription/gco:CharacterString/text())
else gmd:measureDescription/gco:CharacterString/text()"/>

<xsl:call-template name="sdmx-measure">
<xsl:with-param name="baseAttribute" select="'FREQ_DISS'"/>
<xsl:with-param name="value" select="gmd:result/*/gmd:value/gco:Record/text()"/>
<xsl:with-param name="description" select="gmd:measureDescription/gco:CharacterString/text()"/>
<xsl:with-param name="description" select="$frequencyOfDisseminationDesc"/>
</xsl:call-template>
</xsl:for-each>

Expand Down

0 comments on commit c3949e2

Please sign in to comment.