diff --git a/dspace-api/src/main/java/org/dspace/identifier/doi/DataCiteConnector.java b/dspace-api/src/main/java/org/dspace/identifier/doi/DataCiteConnector.java index 57136d6143bb..e20bf085afa9 100644 --- a/dspace-api/src/main/java/org/dspace/identifier/doi/DataCiteConnector.java +++ b/dspace-api/src/main/java/org/dspace/identifier/doi/DataCiteConnector.java @@ -438,10 +438,11 @@ public void reserveDOI(Context context, DSpaceObject dso, String doi) return; } // 400 -> invalid XML + case (422): case (400): { log.warn("DataCite was unable to understand the XML we send."); log.warn("DataCite Metadata API returned a http status code " - + "400: " + resp.getContent()); + + resp.getStatusCode() + ": " + resp.getContent()); Format format = Format.getCompactFormat(); format.setEncoding("UTF-8"); XMLOutputter xout = new XMLOutputter(format); diff --git a/dspace/config/crosswalks/DIM2DataCite.xsl b/dspace/config/crosswalks/DIM2DataCite.xsl index e92c371d6a77..867216484aa0 100644 --- a/dspace/config/crosswalks/DIM2DataCite.xsl +++ b/dspace/config/crosswalks/DIM2DataCite.xsl @@ -11,7 +11,7 @@ --> @@ -46,9 +46,9 @@ properties are in the metadata of the item to export. The classe named above respects this. --> - + xsi:schemaLocation="http://datacite.org/schema/kernel-4 https://schema.datacite.org/meta/kernel-4.4/metadata.xsd"> + + @@ -214,13 +221,6 @@ --> - - - + - - Audiovisual - Text - Text - Text - Dataset - InteractiveResource - Image - Image - Model - Other - Model - Text - Text - Sound - Sound - Sound - Software - Text - Text - Audiovisual - Text - Other - Other - + - + diff --git a/dspace/config/item-submission.xml b/dspace/config/item-submission.xml index c38e59a53302..50a36e7970e6 100644 --- a/dspace/config/item-submission.xml +++ b/dspace/config/item-submission.xml @@ -258,7 +258,7 @@ - + @@ -284,6 +284,7 @@ + diff --git a/dspace/config/spring/api/identifier-service.xml b/dspace/config/spring/api/identifier-service.xml index dbcd49df0e92..a1dfdaa7c215 100644 --- a/dspace/config/spring/api/identifier-service.xml +++ b/dspace/config/spring/api/identifier-service.xml @@ -48,6 +48,7 @@ depending on whether you have Item Level Versioning activated or not. --> @@ -55,9 +56,8 @@ ref="org.dspace.services.ConfigurationService" /> - + - --> @@ -102,7 +103,6 @@ - --> diff --git a/dspace/config/spring/api/item-filters.xml b/dspace/config/spring/api/item-filters.xml index 24c463fb531e..e528603fb9eb 100644 --- a/dspace/config/spring/api/item-filters.xml +++ b/dspace/config/spring/api/item-filters.xml @@ -218,6 +218,19 @@ +