From a0ee1a86402ae0c0020ee50431926e01d6269531 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Mon, 19 Sep 2022 11:44:10 +0200 Subject: [PATCH] [EOSC BulkTag] remove addition of eosc context for result with eosc if guidelines set --- .../java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java index 66e0c8af4..c4b2122b4 100644 --- a/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java +++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java @@ -121,8 +121,7 @@ public class SparkEoscBulkTag implements Serializable { .getInstance() .stream() .anyMatch( - i -> (hostedByList.contains(i.getHostedby().getKey())) || - (value.getEoscifguidelines() != null && value.getEoscifguidelines().size() > 0)) + i -> (hostedByList.contains(i.getHostedby().getKey()))) && !value.getContext().stream().anyMatch(c -> c.getId().equals("eosc"))) { Context context = new Context();