From 609ff17cfc40c3059ad6123b29d972e96e45f0f3 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 24 Sep 2020 15:19:31 +0200 Subject: [PATCH] now the commission give us the framework programme (FP7 - H2020) so use this information to filter out programmes not associated to H2020 --- .../eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java index 324b34f4a..fd2540ba7 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java @@ -120,7 +120,7 @@ public class PrepareProgramme { JavaRDD h2020Programmes = programme .toJavaRDD() - .filter(p -> !p.getCode().contains("FP7")) + .filter(p -> p.getFrameworkProgramme().trim().equalsIgnoreCase("H2020")) .mapToPair(csvProgramme -> new Tuple2<>(csvProgramme.getCode(), csvProgramme)) .reduceByKey((a, b) -> { if (!a.getLanguage().equals("en")) {