master #59

Closed
claudio.atzori wants to merge 3221 commits from master into stable_ids
1 changed files with 1 additions and 2 deletions
Showing only changes of commit f19feceaf0 - Show all commits

View File

@ -105,12 +105,11 @@ case object Crossref2Oaf {
//is replaced using IdentifierFactory, but the old identifier //is replaced using IdentifierFactory, but the old identifier
//is preserved among the originalId(s) //is preserved among the originalId(s)
val oldId = generateIdentifier(result, doi) val oldId = generateIdentifier(result, doi)
result.setId(oldId)
val newId = IdentifierFactory.createIdentifier(result) val newId = IdentifierFactory.createIdentifier(result)
if (!oldId.equalsIgnoreCase(newId)) { if (!oldId.equalsIgnoreCase(newId)) {
result.getOriginalId.add(oldId) result.getOriginalId.add(oldId)
} }
result.setId(newId) result.setId(newId)
// Add DataInfo // Add DataInfo