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