1
0
Fork 0

[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:29:22 +01:00
parent a22c29fba1
commit 8442efd8d1
1 changed files with 3 additions and 1 deletions

View File

@ -133,7 +133,9 @@ 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().stream().filter(s -> !s.startsWith("50|")).collect(Collectors.toList()));
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());