From 6c6253115a8bc78f95e3b302baa87f0d0bd62a66 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Fri, 18 Oct 2024 14:47:51 +0200 Subject: [PATCH] add default values --- .../openaire/community/utils/CommunityMappingUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/community/utils/CommunityMappingUtils.java b/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/community/utils/CommunityMappingUtils.java index 67152bf6..3394348a 100644 --- a/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/community/utils/CommunityMappingUtils.java +++ b/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/community/utils/CommunityMappingUtils.java @@ -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;