From 24a9415fd3ad9f6abb6067b62f12e53b2e67c47b Mon Sep 17 00:00:00 2001
From: GeryNi <gery.nicolay@spacebel.be>
Date: Wed, 8 May 2024 17:07:42 +0200
Subject: [PATCH] Updated license mapping to map to EU licenses for dcat-ap
 profile (removed xsl messages)

---
 .../formatter/dcat/dcat-core-access-and-use.xsl               | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/formatter/dcat/dcat-core-access-and-use.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/formatter/dcat/dcat-core-access-and-use.xsl
index 974beef7dfe..47d3c87477c 100644
--- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/formatter/dcat/dcat-core-access-and-use.xsl
+++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/formatter/dcat/dcat-core-access-and-use.xsl
@@ -95,14 +95,11 @@
             <dct:license>
               <dct:LicenseDocument>
                 <xsl:choose>
-                  <!-- TODO: map license To EU Vocabulary isMappingResourceConstraintsToEuVocabulary -->
                   <xsl:when test="gcx:Anchor/@xlink:href">
                     <xsl:if test="$isMappingResourceConstraintsToEuVocabulary = true()">
                       <xsl:variable name="licenseUri" select="replace(gcx:Anchor/@xlink:href,'https?://','')"/>
-                      <xsl:message><xsl:value-of select="$licenseUri"></xsl:value-of></xsl:message>
                       <xsl:variable name="dcatLicense"
                                     select="$euLicenses/rdf:RDF/skos:Concept[matches(skos:exactMatch/@rdf:resource,concat('https?://',$licenseUri,'/?'))]"/>
-                      <xsl:message><xsl:copy-of select="$dcatLicense"></xsl:copy-of></xsl:message>
                       <xsl:if test="$dcatLicense != ''"><!-- If license found in vocabulary -->
                         <skos:Concept rdf:about="{$dcatLicense/@rdf:about}">
                           <xsl:copy-of select="$dcatLicense/skos:prefLabel[@xml:lang = $languages/@iso2code] | $dcatLicense/skos:exactMatch"
@@ -113,7 +110,6 @@
 
                     <!-- KEEP License as is-->
                     <xsl:if test="$isMappingResourceConstraintsToEuVocabulary = false()">
-                      <xsl:message>Keep original license</xsl:message>
                       <xsl:attribute name="rdf:about" select="gcx:Anchor/@xlink:href"/>
                     </xsl:if>
                   </xsl:when>