From 697a134504932497938db2af68c78cf5a24fdc54 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Tue, 18 Apr 2023 10:21:12 +0200 Subject: [PATCH] - --- .../java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscTag.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscTag.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscTag.java index d249af5a7..4a6ef0ab0 100644 --- a/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscTag.java +++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscTag.java @@ -71,19 +71,15 @@ public class SparkEoscTag { } - public static R tagForSoftware(Result s){ + public static R tagForSoftware(R s){ + if (!Optional.ofNullable(s.getEoscifguidelines()).isPresent()) + s.setEoscifguidelines(new ArrayList<>()); if (containsCriteriaNotebook(s)) { - if (!Optional.ofNullable(s.getEoscifguidelines()).isPresent()) - s.setEoscifguidelines(new ArrayList<>()); addEIG( s.getEoscifguidelines(), EOSC_JUPYTER_NOTEBOOK, EOSC_JUPYTER_NOTEBOOK, "", COMPLIES_WITH); - } if (containsCriteriaGalaxy(s)) { - if (!Optional.ofNullable(s.getEoscifguidelines()).isPresent()) - s.setEoscifguidelines(new ArrayList<>()); - addEIG( s.getEoscifguidelines(), EOSC_GALAXY_WORKFLOW, EOSC_GALAXY_WORKFLOW, "", COMPLIES_WITH); }