From 9fcdfb02ff93e8b5c650b1429cfece940a22dcd1 Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Thu, 30 Mar 2023 16:12:55 +0200 Subject: [PATCH 1/4] gn - fix(ods): fix mapping of ods metadata and ressource dates metadata: creation = considered "modified" (md is created when ressource is loaded) revision = "metadata processed" publication = "modified" ressource: creation = not avavailable in ods revision = "data processed" publication = "modified" --- .../convert/fromJsonOpenDataSoft.xsl | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl index 2e024e84cc8..818c28a8706 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl @@ -135,6 +135,16 @@ + + + + + + + + + + @@ -164,7 +174,17 @@ - + + + + + + + + + + + From e646de1d6f8fff3490a80bba887b4af417eb0661 Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Fri, 7 Apr 2023 09:49:54 +0200 Subject: [PATCH 2/4] gn - fix(dkan): make regExLoc for date conversion more permissive this accepts - and / as date separators and just whitespace chars between date and time --- .../main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl index ea1c042cc5e..99a2f76a70b 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl @@ -366,9 +366,9 @@ - - ^.*([0-9]{2})/([0-9]{2})/([0-9]{4}) - ([0-9]{2}:[0-9]{2})$ - + + ^.*([0-9]{2})[-/]([0-9]{2})[-/]([0-9]{4})\s+([0-9]{2}:[0-9]{2})$ + ^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}:[0-9]{2}:[0-9]{2})$ From d2acddf6be3d5033e89aa1e224822f85ff6f8a5b Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Fri, 7 Apr 2023 12:09:56 +0200 Subject: [PATCH 3/4] gn - fix(dkan): accept optional - separator and seconds --- .../src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl index 99a2f76a70b..d5fa421810e 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonDkan.xsl @@ -367,7 +367,7 @@ - ^.*([0-9]{2})[-/]([0-9]{2})[-/]([0-9]{4})\s+([0-9]{2}:[0-9]{2})$ + ^.*([0-9]{2})[-/]([0-9]{2})[-/]([0-9]{4})[-\s]+([0-9]{2}:[0-9]{2}).*$ ^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}:[0-9]{2}:[0-9]{2})$ From 3cdf60376f34d6df868eb8f69138675cbfc4846a Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Tue, 2 May 2023 15:21:48 +0200 Subject: [PATCH 4/4] gn - fix(ods): copy ods themes to topicCategory instead of keywords --- .../convert/fromJsonOpenDataSoft.xsl | 32 ++++++------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl index 818c28a8706..c23687e7c04 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl @@ -264,9 +264,16 @@ - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - -