[Graph DUMP] Filtering out from the originalIds the id of the result in OpenAIRE

This commit is contained in:
Miriam Baglioni 2021-11-05 12:08:33 +01:00
parent c10ff6928c
commit a22c29fba1
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ public class ResultMapper implements Serializable {
.ifPresent(value -> value.stream().forEach(f -> formatList.add(f.getValue())));
out.setFormat(formatList);
out.setId(input.getId());
out.setOriginalId(input.getOriginalId());
out.setOriginalId(input.getOriginalId().stream().filter(s -> !s.startsWith("50|")).collect(Collectors.toList()));
Optional<List<eu.dnetlib.dhp.schema.oaf.Instance>> oInst = Optional
.ofNullable(input.getInstance());