From fcd10f452cf0dac0f29ebf65be7f743d49237470 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 13 Aug 2020 12:55:32 +0200 Subject: [PATCH] changed because of https://code-repo.d4science.org/D-Net/dnet-hadoop/pulls/40#issuecomment-1903 --- .../java/eu/dnetlib/dhp/schema/dump/oaf/Result.java | 10 ---------- .../eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java | 8 -------- 2 files changed, 18 deletions(-) diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java index ac1dae3827..9d625ecb59 100644 --- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java +++ b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java @@ -42,8 +42,6 @@ public class Result implements Serializable { private AccessRight bestaccessright; - private List externalReference; - private List instance; private Container container;// Journal @@ -252,14 +250,6 @@ public class Result implements Serializable { this.bestaccessright = bestaccessright; } - public List getExternalReference() { - return externalReference; - } - - public void setExternalReference(List externalReference) { - this.externalReference = externalReference; - } - public List getInstance() { return instance; } diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java index a25cdd7531..55afce46da 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java @@ -328,14 +328,6 @@ public class ResultMapper implements Serializable { value -> value .forEach(s -> subjectList.add(getSubject(s)))); - List erList = new ArrayList<>(); - Optional - .ofNullable(input.getExtraInfo()) - .ifPresent( - value -> value - .forEach( - er -> erList.add(ExternalReference.newInstance(er)))); - out.setSubjects(subjectList); out.setType(input.getResulttype().getClassid());