[Datacite mapping] include the older datacite prefixed OpenAIRE id among the originalId[]
This commit is contained in:
parent
67525076ec
commit
ed98a6d9d0
|
@ -584,7 +584,12 @@ object DataciteToOAFTransformation {
|
||||||
JField("awardUri", JString(awardUri)) <- fundingReferences
|
JField("awardUri", JString(awardUri)) <- fundingReferences
|
||||||
} yield awardUri
|
} yield awardUri
|
||||||
|
|
||||||
|
val oid = result.getId
|
||||||
result.setId(IdentifierFactory.createIdentifier(result))
|
result.setId(IdentifierFactory.createIdentifier(result))
|
||||||
|
if (!result.getId.equalsIgnoreCase(oid)) {
|
||||||
|
result.getOriginalId.add(oid)
|
||||||
|
}
|
||||||
|
|
||||||
var relations: List[Relation] =
|
var relations: List[Relation] =
|
||||||
awardUris.flatMap(a => get_projectRelation(a, result.getId)).filter(r => r != null)
|
awardUris.flatMap(a => get_projectRelation(a, result.getId)).filter(r => r != null)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue