Merge branch 'bytarget_block' of ssh://git.indexdata.com/home/git/pub/pazpar2 into...
authorDennis Schafroth <dennis@indexdata.com>
Thu, 3 Nov 2011 14:14:23 +0000 (15:14 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 3 Nov 2011 14:14:23 +0000 (15:14 +0100)
js/pz2.js
src/http_command.c

index 75fd309..ca0d28c 100644 (file)
--- a/js/pz2.js
+++ b/js/pz2.js
@@ -629,7 +629,12 @@ pz2.prototype =
         var context = this;
         var request = new pzHttpRequest(this.pz2String, this.errorHandler);
         request.safeGet(
-            { "command": "bytarget", "session": this.sessionID, "windowid" : window.name},
+            { 
+               "command": "bytarget", 
+               "session": this.sessionID, 
+               "block": 1,
+               "windowid" : window.name
+           },
             function(data) {
                 if ( data.getElementsByTagName("status")[0]
                         .childNodes[0].nodeValue == "OK" ) {
index f25f478..8ba4b15 100644 (file)
@@ -654,7 +654,7 @@ static void bytarget_response(struct http_channel *c) {
 static void bytarget_result_ready(void *data)
 {
     struct http_channel *c = (struct http_channel *) data;
-
+    yaz_log(c->http_sessions->log_level, "bytarget watch released");
     bytarget_response(c);
 }