master #59

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

View File

@ -152,7 +152,12 @@ public class CleaningFunctions {
Optional
.ofNullable(i.getPid())
.ifPresent(pid -> {
final Set<StructuredProperty> pids = Sets.newHashSet(pid);
final Set<StructuredProperty> pids = Sets
.newHashSet(
pid
.stream()
.filter(p -> StringUtils.isBlank(p.getValue()))
.collect(Collectors.toList()));
final Set<StructuredProperty> altIds = Sets.newHashSet(i.getAlternateIdentifier());
i.setAlternateIdentifier(Lists.newArrayList(Sets.difference(altIds, pids)));
});