cleaning
This commit is contained in:
parent
1d199f008a
commit
81404e3ee9
|
@ -33,7 +33,6 @@ import eu.dnetlib.openaire.exporter.model.community.CommunityProject;
|
|||
import eu.dnetlib.openaire.exporter.model.community.CommunityStatus;
|
||||
import eu.dnetlib.openaire.exporter.model.community.CommunitySummary;
|
||||
import eu.dnetlib.openaire.exporter.model.community.CommunityType;
|
||||
import eu.dnetlib.openaire.exporter.model.community.CommunityZenodoCommunity;
|
||||
import eu.dnetlib.openaire.exporter.model.community.selectioncriteria.SelectionCriteria;
|
||||
import eu.dnetlib.openaire.exporter.model.context.Category;
|
||||
import eu.dnetlib.openaire.exporter.model.context.Concept;
|
||||
|
@ -252,16 +251,6 @@ public class CommunityImporterController {
|
|||
return d;
|
||||
}
|
||||
|
||||
private static CommunityZenodoCommunity asCommunityZenodoCommunity(final String communityId, final Concept c) {
|
||||
final CommunityZenodoCommunity z = new CommunityZenodoCommunity();
|
||||
final Map<String, List<Param>> p = c.getParams();
|
||||
z.setCommunityId(communityId);
|
||||
z.setId(StringUtils.substringAfterLast(c.getId(), ID_SEPARATOR));
|
||||
z.setZenodoid(firstValue(p, CZENODOCOMMUNITY_ID));
|
||||
// z.setName(c.getLabel());
|
||||
return z;
|
||||
}
|
||||
|
||||
private static CommunityOrganization asCommunityOrganization(final String id, final Concept c) {
|
||||
final Map<String, List<Param>> p = c.getParams();
|
||||
final CommunityOrganization o = new CommunityOrganization();
|
||||
|
|
|
@ -45,8 +45,7 @@ public class CommunityService {
|
|||
// TODO
|
||||
// 1) Import tramite profili:
|
||||
// 1.1) Completare CommunityImporterController
|
||||
// 1.2) Estrarre dalle classi deprecate (CommunityCommon e CommunityMappingUtils) i metodi necessari all'import
|
||||
// 1.3) Considerare anche le Subcommunities: importazione tramite profili
|
||||
// 1.2) Considerare anche le Subcommunities: importazione tramite profili
|
||||
// 2) Subcommunities: visualizzazione tramite le context api
|
||||
// 3) Implemtare il metodo CommunityService.setCommunity
|
||||
// 4) ricontrollare se tutti i campi del database sono esposti dalle api (modello + mapping)
|
||||
|
|
Loading…
Reference in New Issue