From: Niels Erik G. Nielsen Date: Tue, 30 Apr 2013 15:44:50 +0000 (-0400) Subject: Adds support for record checksum X-Git-Tag: v0.0.7~136 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=0854abaf58f4d25c186ed1f326e4e7aad17b397c;p=mkjsf-moved-to-github.git Adds support for record checksum --- diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Bean.java b/src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Bean.java index f5a0675..ba2f0d7 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Bean.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Bean.java @@ -139,7 +139,9 @@ public class Pz2Bean implements Pz2Interface, StateListener, Serializable { if (Pazpar2ResponseParser.docTypes.contains(responseObject.getType())) { pzresp.put(commandName, responseObject); } else { - if (commandName.equals("record") && pzreq.getRecord().hasParameterValue("offset")) { + if (commandName.equals("record") && + (pzreq.getRecord().hasParameterValue("offset") || + pzreq.getRecord().hasParameterValue("checksum"))) { RecordResponse recordResponse = new RecordResponse(); recordResponse.setType("record"); recordResponse.setXml(responseObject.getXml());