forked from D-Net/dnet-hadoop
Fix entityMerger that was excluding the authors of the first entity in the list to merge
This commit is contained in:
parent
0210a14e43
commit
5e15f20e6e
|
@ -110,6 +110,10 @@ public class DedupRecordFactory {
|
|||
|
||||
// set authors and date
|
||||
if (ModelSupport.isSubClass(entity, Result.class)) {
|
||||
Optional
|
||||
.ofNullable(((Result) entity).getAuthor())
|
||||
.ifPresent(a -> authors.add(a));
|
||||
|
||||
((Result) entity).setAuthor(AuthorMerger.merge(authors));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue