Revision 58086
Added by Claudio Atzori about 4 years ago
XmlRecordFactory.java | ||
---|---|---|
309 | 309 |
final OafEntityDecoder entity = mainEntity.decodeEntity(); |
310 | 310 |
if (entity.getType().equals(Type.result)) { |
311 | 311 |
for (final Instance instance : ((Result) entity.getEntity()).getInstanceList()) { |
312 |
children.add(templateFactory.getInstance(instance.getHostedby().getKey(), listFields(instance, instanceFilter, false, false), |
|
312 |
final List<String> instancemetadata = listFields(instance, instanceFilter, false, false); |
|
313 |
|
|
314 |
if (instance.hasProcessingchargeamount()) { |
|
315 |
instancemetadata.add("<processingchargeamount currency=\"" |
|
316 |
+ instance.getProcessingchargecurrency().getValue() + "\">" |
|
317 |
+ instance.getProcessingchargeamount().getValue() |
|
318 |
+ "</processingchargeamount>"); |
|
319 |
} |
|
320 |
|
|
321 |
children.add(templateFactory.getInstance(instance.getHostedby().getKey(), instancemetadata, |
|
313 | 322 |
listMap(instance.getUrlList(), identifier -> templateFactory.getWebResource(identifier)))); |
314 | 323 |
} |
315 | 324 |
for (final ExternalReference er : ((Result) entity.getEntity()).getExternalReferenceList()) { |
Also available in: Unified diff
serializing processingchargeamount and currency