add default values

This commit is contained in:
Michele Artini 2024-10-18 14:47:51 +02:00
parent 3213b8effd
commit 6c6253115a
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import eu.dnetlib.openaire.community.model.DbSupportOrg;
import eu.dnetlib.openaire.exporter.model.community.CommunityContentprovider;
import eu.dnetlib.openaire.exporter.model.community.CommunityDetails;
import eu.dnetlib.openaire.exporter.model.community.CommunityOrganization;
import eu.dnetlib.openaire.exporter.model.community.CommunityPlanType;
import eu.dnetlib.openaire.exporter.model.community.CommunityProject;
import eu.dnetlib.openaire.exporter.model.community.CommunitySummary;
import eu.dnetlib.openaire.exporter.model.community.CommunityType;
@ -246,6 +247,8 @@ public class CommunityMappingUtils {
dbsc.setCategory(sub.getCategory());
dbsc.setName(sub.getLabel());
dbsc.setShortName(sub.getLabel());
dbsc.setDescription("");
dbsc.setPlan(CommunityPlanType.Default);
dbsc.setParams(sub.getParams());
dbsc.setClaimable(sub.isClaim());
dbsc.setBrowsable(sub.isBrowsable());
@ -257,6 +260,7 @@ public class CommunityMappingUtils {
dbsc.setMainZenodoCommunity(sub.getZenodoCommunity());
dbsc.setOtherZenodoCommunities(toStringArray(sub.getOtherZenodoCommunities()));
dbsc.setSuggestedAcknowledgements(toStringArray(sub.getSuggestedAcknowledgements()));
dbsc.setCreationDate(LocalDateTime.now());
dbsc.setLastUpdateDate(LocalDateTime.now());
return dbsc;