Revision 52223
Added by Claudio Atzori over 6 years ago
modules/dnet-openaireplus-mapping-utils/trunk/src/main/java/eu/dnetlib/data/transform/xml/OafToHbaseXsltFunctions.java | ||
---|---|---|
227 | 227 |
addField(instance, Instance.getDescriptor().findFieldByName("dateofacceptance"), values.get("dateaccepted").listValues()); |
228 | 228 |
|
229 | 229 |
if (values.get("identifier") != null) { |
230 |
addField(instance, Instance.getDescriptor().findFieldByName("url"), |
|
231 |
values.get("identifier").listValues().stream() |
|
232 |
.filter(urlFilter) |
|
233 |
.collect(Collectors.toList())); |
|
230 |
final List<String> urls = values.get("identifier").listValues() |
|
231 |
.stream() |
|
232 |
.filter(urlFilter) |
|
233 |
.collect(Collectors.toList()); |
|
234 |
addField(instance, Instance.getDescriptor().findFieldByName("url"), urls); |
|
234 | 235 |
} |
235 | 236 |
|
236 | 237 |
result.addInstance(instance); |
Also available in: Unified diff
small refactor