master #59

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

View File

@ -207,12 +207,22 @@ public class XmlRecordFactory implements Serializable {
.map(p -> XmlSerializationUtils.mapStructuredProperty("pid", p)) .map(p -> XmlSerializationUtils.mapStructuredProperty("pid", p))
.collect(Collectors.toList())); .collect(Collectors.toList()));
} }
if (entity.getMeasures() != null) {
metadata.addAll(measuresAsXml(entity.getMeasures()));
}
if (ModelSupport.isResult(type)) { if (ModelSupport.isResult(type)) {
final Result r = (Result) entity; final Result r = (Result) entity;
if (r.getMeasures() != null) { if (r.getFulltext() != null) {
metadata.addAll(measuresAsXml(r.getMeasures())); metadata
.addAll(
r
.getFulltext()
.stream()
.filter(Objects::nonNull)
.map(c -> XmlSerializationUtils.asXmlElement("fulltext", c.getValue()))
.collect(Collectors.toList()));
} }
if (r.getEoscifguidelines() != null) { if (r.getEoscifguidelines() != null) {