From 5b3c3f4ea19431973f4b7cca5f3007134ce97a78 Mon Sep 17 00:00:00 2001
From: wangf1122 <74916635+wangf1122@users.noreply.github.com>
Date: Fri, 28 Apr 2023 07:15:29 -0400
Subject: [PATCH] Use dates from the thesaurus file if exists instead of file
system last modified date from thesaurusDate (#327)
* Exclude file system last modified date from thesaurusDate
* thesaurusDate
* default HNAP template date to GC_Core_Subject.rdf
* default HNAP template date to GC_Core_Subject.rdf .
* group duplicate date parsing logic to single function
---
.../local/thesauri/theme/GC_Core_Subject.rdf | 3 +
.../convert/thesaurus-transformation.xsl | 120 +++++++++++-------
2 files changed, 76 insertions(+), 47 deletions(-)
diff --git a/src/main/config/codelist/local/thesauri/theme/GC_Core_Subject.rdf b/src/main/config/codelist/local/thesauri/theme/GC_Core_Subject.rdf
index 53471172..e1eb5fba 100644
--- a/src/main/config/codelist/local/thesauri/theme/GC_Core_Subject.rdf
+++ b/src/main/config/codelist/local/thesauri/theme/GC_Core_Subject.rdf
@@ -6,6 +6,7 @@
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:dcterms="http://purl.org/dc/terms/"
>
Government of Canada Core Subject Thesaurus
@@ -15,6 +16,8 @@
Government of Canada; Library and Archives Canada
Gouvernement du Canada; Bibliothèque et Archives Canada
+ 2004
+ 2016-07-04
diff --git a/src/main/plugin/iso19139.ca.HNAP/convert/thesaurus-transformation.xsl b/src/main/plugin/iso19139.ca.HNAP/convert/thesaurus-transformation.xsl
index 9153d454..f9a42208 100644
--- a/src/main/plugin/iso19139.ca.HNAP/convert/thesaurus-transformation.xsl
+++ b/src/main/plugin/iso19139.ca.HNAP/convert/thesaurus-transformation.xsl
@@ -38,7 +38,23 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -351,53 +367,63 @@
+
+
+
+
+
+
+
+
+
+
+
+ publication; publication
+
+
+
+
+
+
+
+
+
+ publication; publication
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- publication; publication
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- creation;création
-
-
-
-
+
+
+
+
+
+
+
+ creation;création
+
+
+
+
+
+
+
+
+
+
+ creation;création
+
+
+
+
+