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 committed Jul 18, 2024
1 parent e04dd91 commit 605e755
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 605e755

Please sign in to comment.