1
0
Fork 0

[datacite] avoid UnsupportedOperationException

This commit is contained in:
Claudio Atzori 2022-08-01 09:05:35 +02:00
parent 92e48f12f7
commit 209c7e9dab
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ object DataciteToOAFTransformation {
val oid = result.getId
result.setId(IdentifierFactory.createIdentifier(result))
if (!result.getId.equalsIgnoreCase(oid)) {
result.getOriginalId.add(oid)
result.setOriginalId((oid::List(doi)).asJava)
}
var relations: List[Relation] =