forked from D-Net/dnet-hadoop
oaf record: xpath for root
This commit is contained in:
parent
70bf6ac415
commit
e234848af8
|
@ -105,7 +105,7 @@ public class IrishOaiExporterJob {
|
|||
|
||||
if (isValid(doc)) {
|
||||
r.setId(doc.valueOf("//*[local-name()='objIdentifier']").trim());
|
||||
r.setBody(gzip(xml));
|
||||
r.setBody(gzip(doc.selectSingleNode("//*[local-name()='entity']").asXML()));
|
||||
r.setDate(LocalDateTime.now());
|
||||
r.setSets(new ArrayList<>());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue