diff --git a/dhp-workflows/dhp-doiboost/src/main/java/eu/dnetlib/doiboost/orcid/ORCIDToOAF.scala b/dhp-workflows/dhp-doiboost/src/main/java/eu/dnetlib/doiboost/orcid/ORCIDToOAF.scala index 0b5edfb19..0f6dc4885 100644 --- a/dhp-workflows/dhp-doiboost/src/main/java/eu/dnetlib/doiboost/orcid/ORCIDToOAF.scala +++ b/dhp-workflows/dhp-doiboost/src/main/java/eu/dnetlib/doiboost/orcid/ORCIDToOAF.scala @@ -83,8 +83,9 @@ object ORCIDToOAF { JObject(extIds) <- json \ "workDetail" \"extIds" JField("type", JString(typeValue)) <- extIds JField("value", JString(value)) <- extIds - if "doi".equalsIgnoreCase(typeValue) - } yield (typeValue, value) + normalized_value: String = DoiBoostMappingUtil.normalizeDoi(value) + if "doi".equalsIgnoreCase(typeValue) && normalized_value != null + } yield (typeValue, normalized_value) if (doi.nonEmpty) { return doi.map(l =>OrcidWork(oid, l._2)) }