mapping funding relations from Datacite should be done according to the actual result identifier

This commit is contained in:
Claudio Atzori 2021-07-23 18:14:37 +02:00
parent d9e3b89937
commit a0393607a7
1 changed files with 2 additions and 2 deletions

View File

@ -532,11 +532,11 @@ object DataciteToOAFTransformation {
JField("awardUri", JString(awardUri)) <- fundingReferences
} yield awardUri
result.setId(IdentifierFactory.createIdentifier(result))
var relations: List[Relation] = awardUris.flatMap(a => get_projectRelation(a, result.getId)).filter(r => r != null)
fix_figshare(result)
result.setId(IdentifierFactory.createIdentifier(result))
if (result.getId == null)
return List()