From: Dennis Schafroth Date: Fri, 23 Dec 2011 09:57:33 +0000 (+0100) Subject: Support to send query state to SP X-Git-Tag: v1.6.7~5 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;ds=sidebyside;h=fac659f2d2de40e7d5a18525b0ebd206d6944655;p=pazpar2-moved-to-github.git Support to send query state to SP --- diff --git a/js/pz2.js b/js/pz2.js index bfeade9..fde4ce1 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -361,7 +361,7 @@ pz2.prototype = } ); }, - show: function(start, num, sort) + show: function(start, num, sort, query_state) { if( !this.searchStatusOK && this.useSessions ) throw new Error( @@ -380,7 +380,7 @@ pz2.prototype = var context = this; var request = new pzHttpRequest(this.pz2String, this.errorHandler); - request.safeGet( + var requestParameters = { "command": "show", "session": this.sessionID, @@ -391,6 +391,10 @@ pz2.prototype = "type": this.showResponseType, "windowid" : window.name }, + if (query_state) + requestParameters["query-state"] = query_state; + request.safeGet( + requestParameters, function(data, type) { var show = null; var activeClients = 0;