From 75491482de353bbc9f5d7a415028061267d2f43e Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Wed, 20 May 2020 10:28:56 +0200 Subject: [PATCH] added a new preparation step to replicate each project for the programme it is associated to --- .../eu/dnetlib/dhp/actionmanager/project/PrepareProjects.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProjects.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProjects.java index 1c98199f82..df37f92863 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProjects.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProjects.java @@ -82,9 +82,11 @@ public class PrepareProjects { List csvProjectList = new ArrayList<>(); String[] programme = p.getProgramme().split(";"); if (programme.length > 1) { + String id = p.getId(); for (int i = 0; i < programme.length; i++) { CSVProject csvProject = new CSVProject(); csvProject.setProgramme(programme[i]); + csvProject.setId(id); csvProjectList.add(csvProject); } } else {