added APC in the dumped information

This commit is contained in:
Miriam Baglioni 2021-03-30 11:13:07 +02:00
parent 5dea729de3
commit a896febc02
1 changed files with 9 additions and 0 deletions

View File

@ -424,6 +424,15 @@ public class ResultMapper implements Serializable {
.ifPresent(value -> instance.setType(value.getClassname()));
Optional.ofNullable(i.getUrl()).ifPresent(value -> instance.setUrl(value));
Optional<Field<String>> oPca = Optional.ofNullable(i.getProcessingchargeamount());
Optional<Field<String>> oPcc = Optional.ofNullable(i.getProcessingchargecurrency());
if(oPca.isPresent() && oPcc.isPresent()){
APC apc = new APC();
apc.setCurrency(oPcc.get().getValue());
apc.setAmount(oPca.get().getValue());
instance.setArticleprocessingcharge(apc);
}
}
private static List<Provenance> getUniqueProvenance(List<Provenance> provenance) {