From 04f3507e8cfff299960a98f4b4337d8e87a64586 Mon Sep 17 00:00:00 2001 From: Twan Goosen Date: Mon, 6 Jan 2025 16:10:37 +0200 Subject: [PATCH] set provider name as collection display name if parameter is set. Refs #16 --- datacite-cmdi/datacite-cmdi.xpr | 83 +++++++++++++++---- datacite-cmdi/datacite_to_cmdi-common.xsl | 9 ++ datacite-cmdi/datacite_to_cmdi-kernel3.xsl | 6 +- datacite-cmdi/datacite_to_cmdi-kernel4.xsl | 6 +- datacite-cmdi/datacite_to_cmdi.xsl | 3 + .../output/doi_10_5072_FK2_VA3BVU.cmdi | 3 +- 6 files changed, 88 insertions(+), 22 deletions(-) diff --git a/datacite-cmdi/datacite-cmdi.xpr b/datacite-cmdi/datacite-cmdi.xpr index 79fae23..8da56e2 100644 --- a/datacite-cmdi/datacite-cmdi.xpr +++ b/datacite-cmdi/datacite-cmdi.xpr @@ -1,25 +1,25 @@ - + - + scenario.associations - datacite_to_cmdi.xsl + test/example/trolling/doi_10_5072_FK2_VA3BVU.xml - datacite_to_cmdi_hamburg + DataCite to CMDI - XML + XSL @@ -30,16 +30,16 @@ - ../../test-oai-harvest/output-test/filtertest/workdir/test-test/oai-pmh/DataCite/DataCite_0000001.xml + datacite_to_cmdi.xsl - OAI-PMH filter + datacite_to_cmdi_hamburg - XSL + XML @@ -50,11 +50,11 @@ - ../../../../../Downloads/oai_doreco_huma_num_fr_anal1239.xml + ../../test-oai-harvest/output-test/filtertest/workdir/test-test/oai-pmh/DataCite/DataCite_0000001.xml - olac2cmdi + OAI-PMH filter @@ -70,7 +70,7 @@ - ../../../../../Desktop/Untitled1.xml + ../../../../../Downloads/oai_doreco_huma_num_fr_anal1239.xml @@ -90,11 +90,11 @@ - test/example/dariah/10.20375_0000-000E-8BE7-1.xml + ../../../../../Desktop/Untitled1.xml - DataCite to CMDI + olac2cmdi @@ -110,7 +110,7 @@ - test/example/afp/adp_ads974_v1.xml + test/example/dariah/10.20375_0000-000E-8BE7-1.xml @@ -130,7 +130,7 @@ - test/example/celr/ty_0005.xml + test/example/afp/adp_ads974_v1.xml @@ -150,7 +150,7 @@ - test/example/trolling/doi_10_5072_FK2_VA3BVU.xml + test/example/celr/ty_0005.xml @@ -3304,7 +3304,56 @@ true - + + + + + + collection_name + + + + + + + + + + + test collection name + + + false + + + false + + + + + + + provider_name + + + + + + + + + + + test provider name + + + false + + + false + + + diff --git a/datacite-cmdi/datacite_to_cmdi-common.xsl b/datacite-cmdi/datacite_to_cmdi-common.xsl index 246b1e2..becb20c 100644 --- a/datacite-cmdi/datacite_to_cmdi-common.xsl +++ b/datacite-cmdi/datacite_to_cmdi-common.xsl @@ -105,6 +105,15 @@ + + + + + + + + + diff --git a/datacite-cmdi/datacite_to_cmdi-kernel3.xsl b/datacite-cmdi/datacite_to_cmdi-kernel3.xsl index 5efce05..c2d85af 100644 --- a/datacite-cmdi/datacite_to_cmdi-kernel3.xsl +++ b/datacite-cmdi/datacite_to_cmdi-kernel3.xsl @@ -33,7 +33,7 @@ - + @@ -109,7 +109,9 @@ - + + + diff --git a/datacite-cmdi/datacite_to_cmdi-kernel4.xsl b/datacite-cmdi/datacite_to_cmdi-kernel4.xsl index bfd00d7..69a4b52 100644 --- a/datacite-cmdi/datacite_to_cmdi-kernel4.xsl +++ b/datacite-cmdi/datacite_to_cmdi-kernel4.xsl @@ -33,7 +33,7 @@ - + @@ -109,7 +109,9 @@ - + + + diff --git a/datacite-cmdi/datacite_to_cmdi.xsl b/datacite-cmdi/datacite_to_cmdi.xsl index b694e33..9c647bc 100644 --- a/datacite-cmdi/datacite_to_cmdi.xsl +++ b/datacite-cmdi/datacite_to_cmdi.xsl @@ -35,6 +35,9 @@ + + + diff --git a/datacite-cmdi/test/example/trolling/output/doi_10_5072_FK2_VA3BVU.cmdi b/datacite-cmdi/test/example/trolling/output/doi_10_5072_FK2_VA3BVU.cmdi index 8f54cbe..06d7dba 100644 --- a/datacite-cmdi/test/example/trolling/output/doi_10_5072_FK2_VA3BVU.cmdi +++ b/datacite-cmdi/test/example/trolling/output/doi_10_5072_FK2_VA3BVU.cmdi @@ -7,6 +7,7 @@ xsi:schemaLocation="http://www.clarin.eu/cmd/1 https://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/1.x/profiles/clarin.eu:cr1:p_1610707853541/xsd"> clarin.eu:cr1:p_1610707853541 + test collection name @@ -214,7 +215,7 @@ Conversion from DataCite (http://datacite.org/schema/kernel-4) to CMD (profile clarin.eu:cr1:p_1610707853541) - 2022-04-11+03:00 + 2025-01-06+02:00