Skip to content

Commit

Permalink
Metawal / CSW / Migrate namespace to 2.0 #900.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Sep 6, 2024
1 parent 58c5363 commit 109ed0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 49 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
xmlns:gcx="http://standards.iso.org/iso/19115/-3/gcx/1.0"
xmlns:mdb="http://standards.iso.org/iso/19115/-3/mdb/2.0"
xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0"
xmlns:srv115-3="http://standards.iso.org/iso/19115/-3/srv/2.1"
xmlns:mco="http://standards.iso.org/iso/19115/-3/mco/1.0"
xmlns:cit="http://standards.iso.org/iso/19115/-3/cit/2.0"
xmlns:lan="http://standards.iso.org/iso/19115/-3/lan/1.0"
xmlns:srv2="http://standards.iso.org/iso/19115/-3/srv/2.1"
xmlns:srv2="http://standards.iso.org/iso/19115/-3/srv/2.0"
xmlns:mrs="http://standards.iso.org/iso/19115/-3/mrs/1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:util="java:org.fao.geonet.util.XslUtil"
Expand All @@ -37,7 +36,7 @@
select="count(//mco:otherConstraints/*[@xlink:href]) > 0"/>

<xsl:variable name="isService"
select="count(//srv115-3:SV_ServiceIdentification) > 0"/>
select="count(//srv2:SV_ServiceIdentification) > 0"/>

<xsl:variable name="isInspireRecord"
select="count(//mri:keyword[gco:CharacterString = 'Reporting INSPIRE']) > 0"/>
Expand Down Expand Up @@ -218,6 +217,7 @@
select="document($apiUrlRelated)"/>
<xsl:variable name="existingAssociations"
select="../mri:associatedResource/*/mri:metadataReference/@uuidref"/>

<xsl:for-each-group select="$associatedRecords/related/*/item" group-by="id">
<xsl:variable name="uuid" select="current-grouping-key()"/>
<xsl:if test="count($existingAssociations[. = $uuid]) = 0">
Expand Down

0 comments on commit 109ed0d

Please sign in to comment.