From 6c25aea534b413322560a3e86a5c2eac8c981780 Mon Sep 17 00:00:00 2001 From: southeo Date: Wed, 11 Dec 2024 10:25:47 +0100 Subject: [PATCH] properties --- .../service/DataCitePublisherService.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/dissco/core/datacitepublisher/service/DataCitePublisherService.java b/src/main/java/eu/dissco/core/datacitepublisher/service/DataCitePublisherService.java index 63da2e9..eac0baf 100644 --- a/src/main/java/eu/dissco/core/datacitepublisher/service/DataCitePublisherService.java +++ b/src/main/java/eu/dissco/core/datacitepublisher/service/DataCitePublisherService.java @@ -119,6 +119,8 @@ private DcRequest buildDcRequest(DigitalSpecimen digitalSpecimen) { digitalSpecimen.getPrimarySpecimenObjectId(), digitalSpecimen.getSpecimenHostName(), digitalSpecimen.getSpecimenHost(), + digitalSpecimen.getIssuedForAgentName(), + digitalSpecimen.getIssuedForAgent(), digitalSpecimen.getPidRecordIssueDate(), digitalSpecimen.getPid(), digitalSpecimen.getReferentName(), @@ -135,6 +137,8 @@ private DcRequest buildDcRequest(MediaObject mediaObject) { mediaObject.getPrimaryMediaId(), mediaObject.getMediaHostName(), mediaObject.getMediaHost(), + mediaObject.getMediaHost(), + mediaObject.getMediaHostName(), mediaObject.getPidRecordIssueDate(), mediaObject.getPid(), mediaObject.getReferentName(), @@ -145,7 +149,7 @@ private DcRequest buildDcRequest(MediaObject mediaObject) { private DcRequest buildDcRequest(String xmlLoc, String landingPage, String altIdType, String localId, String hostName, - String hostId, String pidRecordIssueDate, + String hostId, String creatorName, String creatorId, String pidRecordIssueDate, String pid, String referentName, String dcType, List descriptions, List subjects) { try { @@ -160,7 +164,7 @@ private DcRequest buildDcRequest(String xmlLoc, String landingPage, String altId .alternateIdentifiers( getAltIds(altIdType, localId)) .contributors(getContributors(hostName, hostId)) - .creators(getCreator(hostName, hostId)) + .creators(getCreator(creatorName, creatorId)) .dates(getDates(issueDate)) .descriptions(descriptions) .doi(getDoi(pid))