From fcd24fd907c567773690dc4cc9b1ad485520fd4f Mon Sep 17 00:00:00 2001 From: George Kalampokis Date: Mon, 23 Nov 2020 18:16:32 +0200 Subject: [PATCH] Add community when depositing to zenodo (ARGOS). --- .../eu/eudat/logic/managers/DataManagementPlanManager.java | 1 + .../web/src/main/resources/config/application.properties | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java index baf121b21..69b5dce0a 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java @@ -1787,6 +1787,7 @@ public class DataManagementPlanManager { dataBuilder.append(" \"publication_type\": \"datamanagementplan\",\n"); dataBuilder.append(" \"description\": \"").append((dmp.getDescription() != null && !dmp.getDescription().isEmpty() ? dmp.getDescription() : "

")).append("\",\n"); dataBuilder.append(" \"version\": \"").append(dmp.getVersion()).append("\",\n"); + dataBuilder.append(" \"communities\": [{\n \t\t\"identifier\": \"").append(environment.getProperty("zenodo.community")).append("\"\n \t\t}],\n"); dataBuilder.append(" \"access_right\": \""); if (extraProperties.get("visible") == null) { dataBuilder.append("restricted\",\n"); diff --git a/dmp-backend/web/src/main/resources/config/application.properties b/dmp-backend/web/src/main/resources/config/application.properties index 7fc1fa62f..34fd880db 100644 --- a/dmp-backend/web/src/main/resources/config/application.properties +++ b/dmp-backend/web/src/main/resources/config/application.properties @@ -92,4 +92,5 @@ logging.config=classpath:logging/logback-${spring.profiles.active}.xml temp.temp=tmp/ #############ZENODO######### -zenodo.affiliation=ARGOS \ No newline at end of file +zenodo.affiliation=ARGOS +zenodo.community=argos \ No newline at end of file