forked from D-Net/dnet-hadoop
#7275 serialize license information in XML records
This commit is contained in:
parent
5d51b3dd4a
commit
6b5d7688a4
|
@ -1212,6 +1212,17 @@ public class XmlRecordFactory implements Serializable {
|
||||||
"processingchargecurrency", instance.getProcessingchargecurrency()));
|
"processingchargecurrency", instance.getProcessingchargecurrency()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (instance.getLicense() != null) {
|
||||||
|
fields
|
||||||
|
.addAll(
|
||||||
|
instance
|
||||||
|
.getLicense()
|
||||||
|
.stream()
|
||||||
|
.filter(d -> isNotBlank(d))
|
||||||
|
.map(d -> XmlSerializationUtils.asXmlElement("license", d))
|
||||||
|
.collect(Collectors.toList()));
|
||||||
|
}
|
||||||
|
|
||||||
children
|
children
|
||||||
.add(
|
.add(
|
||||||
templateFactory
|
templateFactory
|
||||||
|
|
|
@ -541,7 +541,7 @@
|
||||||
},
|
},
|
||||||
"trust": ""
|
"trust": ""
|
||||||
},
|
},
|
||||||
"value": ""
|
"value": "CC-BY"
|
||||||
},
|
},
|
||||||
"url": [
|
"url": [
|
||||||
"http://dx.doi.org/10.1109/TED.2018.2853550"
|
"http://dx.doi.org/10.1109/TED.2018.2853550"
|
||||||
|
|
Loading…
Reference in New Issue