add default values
This commit is contained in:
parent
3213b8effd
commit
6c6253115a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue