bug fixes

This commit is contained in:
Efstratios Giannopoulos 2024-03-28 10:51:21 +02:00
parent 77c813f39e
commit 64c0ddf68c
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ public class ZenodoBuilder {
deposit.getMetadata().setVersion(String.valueOf(dmp.getVersion()));
String zenodoCommunity = zenodoServiceProperties.getCommunity();
if(zenodoCommunity != null && !zenodoCommunity.isEmpty()) {
if (deposit.getMetadata().getCommunities() == null) deposit.getMetadata().setCommunities(new ArrayList<>());
ZenodoCommunity community = new ZenodoCommunity();
community.setIdentifier(zenodoCommunity);
deposit.getMetadata().getCommunities().add(community);

View File

@ -15,4 +15,4 @@ zenodo:
repository-client-secret:
redirect-uri: http://localhost:4200/login/external/zenodo
has-logo: true
useSharedStorage: true
useSharedStorage: false