enrichment steps #38

Merged
claudio.atzori merged 334 commits from miriam.baglioni/dnet-hadoop:master into enrichment_wfs 2020-08-11 16:40:26 +02:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 11b77b9f4e - Show all commits

View File

@ -259,9 +259,9 @@ public class Result extends OafEntity implements Serializable {
StructuredProperty newMainTitle = null;
if (r.getTitle() != null) {
newMainTitle = getMainTitle(r.getTitle());
if (newMainTitle != null && title != null) {
if (newMainTitle != null) {
final StructuredProperty p = newMainTitle;
title = title.stream().filter(t -> t != p).collect(Collectors.toList());
r.setTitle(r.getTitle().stream().filter(t -> t != p).collect(Collectors.toList()));
}
}