WIP: dump of the OpenAIRE graph - Changes #103
|
@ -424,10 +424,9 @@ public class ResultMapper implements Serializable {
|
||||||
.ifPresent(value -> instance.setType(value.getClassname()));
|
.ifPresent(value -> instance.setType(value.getClassname()));
|
||||||
Optional.ofNullable(i.getUrl()).ifPresent(value -> instance.setUrl(value));
|
Optional.ofNullable(i.getUrl()).ifPresent(value -> instance.setUrl(value));
|
||||||
|
|
||||||
|
|
||||||
Optional<Field<String>> oPca = Optional.ofNullable(i.getProcessingchargeamount());
|
Optional<Field<String>> oPca = Optional.ofNullable(i.getProcessingchargeamount());
|
||||||
Optional<Field<String>> oPcc = Optional.ofNullable(i.getProcessingchargecurrency());
|
Optional<Field<String>> oPcc = Optional.ofNullable(i.getProcessingchargecurrency());
|
||||||
if(oPca.isPresent() && oPcc.isPresent()){
|
if (oPca.isPresent() && oPcc.isPresent()) {
|
||||||
APC apc = new APC();
|
APC apc = new APC();
|
||||||
apc.setCurrency(oPcc.get().getValue());
|
apc.setCurrency(oPcc.get().getValue());
|
||||||
apc.setAmount(oPca.get().getValue());
|
apc.setAmount(oPca.get().getValue());
|
||||||
|
|
Loading…
Reference in New Issue