From faa26380b32e1c7461966982b3ba9a197894dc9c Mon Sep 17 00:00:00 2001 From: Florian Fritze Date: Wed, 31 Jul 2024 11:21:37 +0200 Subject: [PATCH] schema version correction --- .../iq/dataverse/export/openaire/OpenAireExportUtil.java | 2 +- .../edu/harvard/iq/dataverse/export/OpenAireExporterTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/edu/harvard/iq/dataverse/export/openaire/OpenAireExportUtil.java b/src/main/java/edu/harvard/iq/dataverse/export/openaire/OpenAireExportUtil.java index a0229df00c5..639574c9e08 100644 --- a/src/main/java/edu/harvard/iq/dataverse/export/openaire/OpenAireExportUtil.java +++ b/src/main/java/edu/harvard/iq/dataverse/export/openaire/OpenAireExportUtil.java @@ -35,7 +35,7 @@ public class OpenAireExportUtil { private static final Logger logger = Logger.getLogger(OpenAireExportUtil.class.getCanonicalName()); public static String XSI_NAMESPACE = "http://www.w3.org/2001/XMLSchema-instance"; - public static String SCHEMA_VERSION = "4.1"; + public static String SCHEMA_VERSION = "4.5"; public static String RESOURCE_NAMESPACE = "http://datacite.org/schema/kernel-4"; public static String RESOURCE_SCHEMA_LOCATION = "http://schema.datacite.org/meta/kernel-4.5/metadata.xsd"; diff --git a/src/test/java/edu/harvard/iq/dataverse/export/OpenAireExporterTest.java b/src/test/java/edu/harvard/iq/dataverse/export/OpenAireExporterTest.java index 2d06436fb33..cfde085128c 100644 --- a/src/test/java/edu/harvard/iq/dataverse/export/OpenAireExporterTest.java +++ b/src/test/java/edu/harvard/iq/dataverse/export/OpenAireExporterTest.java @@ -185,7 +185,7 @@ public void testGetXMLNameSpace() throws Exception { public void testGetXMLSchemaLocation() throws Exception { System.out.println("getXMLSchemaLocation"); OpenAireExporter instance = new OpenAireExporter(); - String expResult = "http://schema.datacite.org/meta/kernel-4.1/metadata.xsd"; + String expResult = "http://schema.datacite.org/meta/kernel-4.5/metadata.xsd"; String result = instance.getXMLSchemaLocation(); assertEquals(expResult, result); } @@ -197,7 +197,7 @@ public void testGetXMLSchemaLocation() throws Exception { public void testGetXMLSchemaVersion() throws Exception { System.out.println("getXMLSchemaVersion"); OpenAireExporter instance = new OpenAireExporter(); - String expResult = "4.1"; + String expResult = "4.5"; String result = instance.getXMLSchemaVersion(); assertEquals(expResult, result); }