1
0
Fork 0

added serialization for the new fields imported for the Irish tender

This commit is contained in:
Claudio Atzori 2023-12-05 16:37:04 +01:00
parent c5b7253130
commit 321922772b
1 changed files with 18 additions and 0 deletions

View File

@ -434,6 +434,24 @@ public class XmlRecordFactory implements Serializable {
XmlSerializationUtils
.asXmlElement("processingchargecurrency", r.getProcessingchargecurrency().getValue()));
}
if (r.getIsGreen() != null) {
metadata
.add(XmlSerializationUtils.asXmlElement("isgreen", Boolean.toString(r.getIsGreen())));
}
if (r.getOpenAccessColor() != null) {
metadata
.add(XmlSerializationUtils.asXmlElement("openaccesscolor", r.getOpenAccessColor().toString()));
}
if (r.getIsInDiamondJournal() != null) {
metadata
.add(
XmlSerializationUtils
.asXmlElement("isindiamondjournal", Boolean.toString(r.getIsInDiamondJournal())));
}
if (r.getPubliclyFunded() != null) {
metadata
.add(XmlSerializationUtils.asXmlElement("publiclyfunded", Boolean.toString(r.getPubliclyFunded())));
}
}
switch (type) {