Project

General

Profile

« Previous | Next » 

Revision 39276

Show group modal: removed group size, width set to 80%

organizations - added country
all entities - added provenance (collected from)

View differences:

DedupServiceInternalController.java
292 292
		paths.put("organization", new HashMap<String, String>());
293 293
		paths.put("person", new HashMap<String, String>());
294 294

  
295
		paths.get("result").put("provenance", "collectedfrom/value");
296
		paths.get("organization").put("provenance", "collectedfrom/value");
297
		paths.get("person").put("provenance", "collectedfrom/value");
298

  
295 299
		paths.get("result").put("title", "result/metadata/title/value");
296 300
		paths.get("result").put("dateofacceptance", "result/metadata/dateofacceptance/value");
297 301
		paths.get("result").put("description", "result/metadata/description/value");
......
443 447
				// final String base64 = s.replaceAll("<record.*>", "").replace("</record>", "");
444 448
				final String base64 = StringUtils.substringBefore(StringUtils.substringAfter(s, ">"), "<");
445 449
				try {
446
					final byte[] oaf = Base64.decodeBase64(base64);
447
					return OafDecoder.decode(oaf).getOaf();
450
					final byte[] oafBytes = Base64.decodeBase64(base64);
451
					final Oaf oaf = OafDecoder.decode(oafBytes).getOaf();
452
					return oaf;
448 453
				} catch (final Throwable e) {
449 454
					throw new IllegalArgumentException("unable to decode base64 encoded Oaf object: " + base64);
450 455
				}

Also available in: Unified diff