Skip to content

Commit

Permalink
Standard / ISO19115-3 / Formatters / ISO19139 / Fix scope code (#8224)
Browse files Browse the repository at this point in the history
Fixes "md:scope will be gmd:MD_Scope when it should be gmd:DQ_Scope" 

See #8220
  • Loading branch information
fxprunayre authored Jul 11, 2024
1 parent 427eae7 commit 111a1d7
Showing 1 changed file with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,24 +553,30 @@
<xsl:template match="mdb:resourceLineage[not(../mdb:dataQualityInfo)]">
<gmd:dataQualityInfo>
<gmd:DQ_DataQuality>
<xsl:apply-templates select="mrl:LI_Lineage/mrl:scope"/>
<gmd:lineage>
<gmd:LI_Lineage>
<xsl:call-template name="writeCharacterStringElement">
<xsl:with-param name="elementName"
select="'gmd:statement'"/>
<xsl:with-param name="nodeWithStringToWrite"
select="mrl:LI_Lineage/mrl:statement"/>
</xsl:call-template>
<xsl:apply-templates select="mrl:LI_Lineage/mrl:processStep"/>
<xsl:apply-templates select="mrl:LI_Lineage/mrl:source"/>
</gmd:LI_Lineage>
</gmd:lineage>
<xsl:if test="mrl:LI_Lineage/mrl:scope">
<gmd:scope>
<gmd:DQ_Scope>
<xsl:apply-templates select="mrl:LI_Lineage/mrl:scope/@*"/>
<xsl:apply-templates select="mrl:LI_Lineage/mrl:scope/mcc:MD_Scope/*"/>
</gmd:DQ_Scope>
</gmd:scope>
</xsl:if>
<gmd:lineage>
<gmd:LI_Lineage>
<xsl:call-template name="writeCharacterStringElement">
<xsl:with-param name="elementName"
select="'gmd:statement'"/>
<xsl:with-param name="nodeWithStringToWrite"
select="mrl:LI_Lineage/mrl:statement"/>
</xsl:call-template>
<xsl:apply-templates select="mrl:LI_Lineage/mrl:processStep"/>
<xsl:apply-templates select="mrl:LI_Lineage/mrl:source"/>
</gmd:LI_Lineage>
</gmd:lineage>
</gmd:DQ_DataQuality>
</gmd:dataQualityInfo>
</xsl:template>


<xsl:template match="mmi:maintenanceDate">
<gmd:dateOfNextUpdate>
<xsl:apply-templates select="cit:CI_Date/cit:date/*"/>
Expand Down

0 comments on commit 111a1d7

Please sign in to comment.