X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=js%2Fpz2.js;h=b52bf28d4b9303f9275411ff9c65d95cddc30526;hb=6b86af5db49a421480705a262ce56be54d12d1ab;hp=e2c4cba51bb09485c5c68a93ed53236b84157902;hpb=3fdae2167ba2d9bb2f1be79bf19d1d03a67aca88;p=pazpar2-moved-to-github.git diff --git a/js/pz2.js b/js/pz2.js index e2c4cba..b52bf28 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -124,7 +124,7 @@ var pz2 = function ( paramArray ) } // else, auto init session or wait for a user init? if (this.useSessions && paramArray.autoInit !== false) { - this.init(this.sessionId, this.serviceId); + this.init(this.sessionID, this.serviceId); } // Version parameter this.version = paramArray.version || null; @@ -201,6 +201,9 @@ pz2.prototype = context.sessionID = data.getElementsByTagName("session")[0] .childNodes[0].nodeValue; + if (data.getElementsByTagName("keepAlive").length > 0) { + context.keepAlive = data.getElementsByTagName("keepAlive")[0].childNodes[0].nodeValue; + } context.pingTimer = setTimeout( function () { @@ -391,7 +394,7 @@ pz2.prototype = "sort": this.currentSort, "block": 1, "type": this.showResponseType, - "windowid" : window.name, + "windowid" : window.name }; if (query_state) requestParameters["query-state"] = query_state;