Project

General

Profile

« Previous | Next » 

Revision 58087

mapping for OAF and ODF to consider processingchargeamount and currency fields

View differences:

OdfToHbaseXsltFunctions.java
356 356
				addField(instance, Instance.getDescriptor().findFieldByName("refereed"), values.get("refereed").listValues());
357 357
			}
358 358

  
359
			final ElementList pcs = values.get("processingchargeamount");
360
			if (pcs != null && !pcs.isEmpty()) {
361
				addField(instance, Instance.getDescriptor().findFieldByName("processingchargeamount"), pcs.listValues());
362
				final String currency = pcs.get(0).getAttributeValue("currency");
363
				if (StringUtils.isNotBlank(currency)) {
364
					addField(instance, Instance.getDescriptor().findFieldByName("processingchargecurrency"), currency);
365
				}
366
			}
367

  
359 368
			result.addInstance(instance);
360 369

  
361 370
			List<StructuredProperty> pids = parsePids(pidList);

Also available in: Unified diff