From a0642bd1904d01533e0d51172718acca7ae6cddd Mon Sep 17 00:00:00 2001 From: Sandro La Bruzzo Date: Thu, 11 Apr 2024 13:10:12 +0200 Subject: [PATCH] added instanceTypeMapping field on MAG --- .../main/scala/eu/dnetlib/dhp/collection/mag/MagUtility.scala | 1 + .../src/main/scala/eu/dnetlib/doiboost/uw/UnpayWallToOAF.scala | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/collection/mag/MagUtility.scala b/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/collection/mag/MagUtility.scala index aeb7ae1b10..31202c455b 100644 --- a/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/collection/mag/MagUtility.scala +++ b/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/collection/mag/MagUtility.scala @@ -490,6 +490,7 @@ object MagUtility extends Serializable { result.setDataInfo(MAGDataInfo) val i = new Instance i.setInstancetype(tp) + i.setInstanceTypeMapping(List(instanceTypeMapping(currentType)).asJava) result.setInstance(List(i).asJava) } result diff --git a/dhp-workflows/dhp-doiboost/src/main/scala/eu/dnetlib/doiboost/uw/UnpayWallToOAF.scala b/dhp-workflows/dhp-doiboost/src/main/scala/eu/dnetlib/doiboost/uw/UnpayWallToOAF.scala index 912b6211e4..4163b7d75e 100644 --- a/dhp-workflows/dhp-doiboost/src/main/scala/eu/dnetlib/doiboost/uw/UnpayWallToOAF.scala +++ b/dhp-workflows/dhp-doiboost/src/main/scala/eu/dnetlib/doiboost/uw/UnpayWallToOAF.scala @@ -72,7 +72,6 @@ object UnpayWallToOAF { def convertToOAF(input: String): Publication = { - val pub = new Publication implicit lazy val formats: DefaultFormats.type = org.json4s.DefaultFormats