Adds support for record checksum
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 30 Apr 2013 15:44:50 +0000 (11:44 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 30 Apr 2013 15:44:50 +0000 (11:44 -0400)
src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Bean.java

index f5a0675..ba2f0d7 100644 (file)
@@ -139,7 +139,9 @@ public class Pz2Bean implements Pz2Interface, StateListener, Serializable {
              if (Pazpar2ResponseParser.docTypes.contains(responseObject.getType())) {\r
                pzresp.put(commandName, responseObject);\r
              } else {\r
-               if (commandName.equals("record") && pzreq.getRecord().hasParameterValue("offset")) {\r
+               if (commandName.equals("record") && \r
+                   (pzreq.getRecord().hasParameterValue("offset") ||\r
+                    pzreq.getRecord().hasParameterValue("checksum"))) {\r
                  RecordResponse recordResponse = new RecordResponse();\r
                  recordResponse.setType("record");\r
                  recordResponse.setXml(responseObject.getXml());\r