From: Dennis Schafroth Date: Thu, 12 Apr 2012 20:46:30 +0000 (+0200) Subject: Indent. Version parameter on show, if present X-Git-Tag: v1.6.13~55 X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=commitdiff_plain;h=f6da80c5c801b2043c03c0f077de7472d8f26f46 Indent. Version parameter on show, if present --- diff --git a/js/pz2.js b/js/pz2.js index 5d0c614..41fa147 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -384,17 +384,19 @@ pz2.prototype = var request = new pzHttpRequest(this.pz2String, this.errorHandler); var requestParameters = { - "command": "show", - "session": this.sessionID, - "start": this.currentStart, - "num": this.currentNum, - "sort": this.currentSort, - "block": 1, - "type": this.showResponseType, - "windowid" : window.name + "command": "show", + "session": this.sessionID, + "start": this.currentStart, + "num": this.currentNum, + "sort": this.currentSort, + "block": 1, + "type": this.showResponseType, + "windowid" : window.name, }; if (query_state) requestParameters["query-state"] = query_state; + if (this.version && this.version > 0) + requestParameters["version"] = this.version; request.safeGet( requestParameters, function(data, type) {