json dumps for entity merge test modified to fit the new model. title merge adjusted to fix the error

This commit is contained in:
miconis 2020-06-16 18:31:11 +02:00
parent 9e2c23e391
commit 11b77b9f4e
2 changed files with 5 additions and 5 deletions

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()));
}
}