From 89b5b3ac3b56c2270c4b3c1ad08a2be99c7bc0e8 Mon Sep 17 00:00:00 2001 From: Francois Prunayre Date: Mon, 30 Sep 2024 09:47:14 +0200 Subject: [PATCH] Thesaurus / Avoid having multiple dates with same type code https://github.com/geonetwork/core-geonetwork/pull/6972 adds retrieval of `dct:issued|modified|created` dates but multiple dates could be added more than one time with same date type code. Improve the mapping. --- .../convert/thesaurus-transformation.xsl | 135 ++++-------------- .../convert/thesaurus-transformation.xsl | 102 +++---------- 2 files changed, 48 insertions(+), 189 deletions(-) diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/thesaurus-transformation.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/thesaurus-transformation.xsl index 40e13cd3e65..59a02c55f4d 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/thesaurus-transformation.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/thesaurus-transformation.xsl @@ -82,6 +82,12 @@ + + + + + + + + + else $thesaurus/title"/> - + @@ -282,121 +290,30 @@ - - - - + + + + + + - + + - - - - - - - - - - - - + + + + codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode" + codeListValue="{name(current-group()[1])}"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/schemas/iso19139/src/main/plugin/iso19139/convert/thesaurus-transformation.xsl b/schemas/iso19139/src/main/plugin/iso19139/convert/thesaurus-transformation.xsl index a27b85bcb18..9e3103d71c4 100644 --- a/schemas/iso19139/src/main/plugin/iso19139/convert/thesaurus-transformation.xsl +++ b/schemas/iso19139/src/main/plugin/iso19139/convert/thesaurus-transformation.xsl @@ -136,6 +136,10 @@ + + + + + + else $thesaurus/title"/> - + @@ -341,95 +347,31 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - + + - - - - - - - - - - - - + + + + codeListValue="{name(current-group()[1])}"/> - +