fix merging in crossrefAggregator which creates dataInfo null

This commit is contained in:
Sandro La Bruzzo 2022-04-14 11:07:04 +02:00
parent b93a141d6c
commit d5b29d96a7
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ object SparkGenerateDoiBoost {
} }
} else { } else {
if (a != null && a._2 != null) { if (a != null && a._2 != null) {
b.mergeOAFDataInfo(a._2)
b.mergeFrom(a._2) b.mergeFrom(a._2)
b.setId(a._1) b.setId(a._1)
val authors = AuthorMerger.mergeAuthor(b.getAuthor, a._2.getAuthor) val authors = AuthorMerger.mergeAuthor(b.getAuthor, a._2.getAuthor)
@ -87,6 +88,7 @@ object SparkGenerateDoiBoost {
return b2 return b2
} else { } else {
if (b2 != null) { if (b2 != null) {
b1.mergeOAFDataInfo(b2)
b1.mergeFrom(b2) b1.mergeFrom(b2)
val authors = AuthorMerger.mergeAuthor(b1.getAuthor, b2.getAuthor) val authors = AuthorMerger.mergeAuthor(b1.getAuthor, b2.getAuthor)
b1.setAuthor(authors) b1.setAuthor(authors)