From 5fa99bd083e6723d446988f52655542f81b9b7d1 Mon Sep 17 00:00:00 2001 From: Ondra Kosarko Date: Thu, 28 Sep 2023 14:17:38 +0200 Subject: [PATCH 1/3] upstream dspace traditionalpageone, traditionalpagetwo --- dspace/config/submission-forms.xml | 87 +----------------------------- 1 file changed, 1 insertion(+), 86 deletions(-) diff --git a/dspace/config/submission-forms.xml b/dspace/config/submission-forms.xml index 5ffe5229791a..050b3bd8467e 100644 --- a/dspace/config/submission-forms.xml +++ b/dspace/config/submission-forms.xml @@ -51,33 +51,6 @@
- - - - local - contact - person - true - - - complex - This is contact person - - - - - - local - sponsor - true - - - complex - This is funding - - - dc @@ -85,15 +58,9 @@ author true - clarin-name + onebox Enter the author's name (Family name, Given names). - @@ -166,7 +133,6 @@ ispartofseries true - Technical Report series Enter the series and number assigned to this item by your community. @@ -215,56 +181,6 @@ - - - local - hasCMDI - true - - list - Are you going to upload cmdi file? - - - policy=deny,action=read,grantee-type=user,grantee-id=* - - - - - - local - hidden - - true - - - list - Should item be harvestable thru OAI-PMH but behave like private? - - - policy=deny,action=read,grantee-type=user,grantee-id=* - - - - - - local - bitstream - redirectToURL - false - - onebox - - The actual maximum upload size of the file is 4GB. To upload the file bigger than maximum - upload size type the URL of that big file. Admin must know URL to that bitstream file. - Then click on the 'Save' button and the file will start to upload. The file will be loaded - from the '/temp' folder of the server. Example: /tomcat/temp/bitstream.png - - - - policy=deny,action=read,grantee-type=user,grantee-id=* - - -
+ + + + + dc + contributor + author + true + + onebox + Personal name format should be: family, given. + + + + + + + dc + title + + false + + onebox + A name or title by which a resource is known. + You must enter a title for this item. + + + + + + dc + publisher + + false + + onebox + The name of the entity that holds, archives, publishes prints, distributes, releases, + issues, or produces the resource. + + + + + + + dc + date + issued + false + + date + The year when the data was or will be made publicly available. + You must enter a publication year for this item. + + + + + + + dc + type + + false + + complex + + You must enter a resource type for this item. + + + +
@@ -2021,6 +2092,153 @@ hidden + + + + + Audiovisual + Audiovisual + + + Book + Book + + + Book Chapter + BookChapter + + + Collection + Collection + + + Computational Notebook + ComputationalNotebook + + + Conference Paper + ConferencePaper + + + Conference Proceeding + ConferenceProceeding + + + Data Paper + DataPaper + + + Dataset + Dataset + + + Dissertation + Dissertation + + + Event + Event + + + Image + Image + + + Interactive Resource + InteractiveResource + + + Journal + Journal + + + Journal Article + JournalArticle + + + Model + Model + + + Output Management Plan + OutputManagementPlan + + + Peer Review + PeerReview + + + Physical Object + PhysicalObject + + + Preprint + Preprint + + + Report + Report + + + Service + Service + + + Software + Software + + + Sound + Sound + + + Standard + Standard + + + Text + Text + + + Workflow + Workflow + + + Other + Other + + @@ -2041,5 +2259,13 @@ + + + + + + From ac418330224d807af731bb53e10fb81ab1d69ae3 Mon Sep 17 00:00:00 2001 From: Ondra Kosarko Date: Fri, 29 Sep 2023 15:02:58 +0200 Subject: [PATCH 3/3] support for dois and preregister pids --- .../identifier/doi/DataCiteConnector.java | 3 +- dspace/config/crosswalks/DIM2DataCite.xsl | 49 +++++-------------- dspace/config/item-submission.xml | 3 +- .../config/spring/api/identifier-service.xml | 6 +-- dspace/config/spring/api/item-filters.xml | 13 +++++ 5 files changed, 33 insertions(+), 41 deletions(-) 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 @@ +