added normalization step to the doi
This commit is contained in:
parent
8b8ffe82dc
commit
06074ea7d3
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue