X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=js%2Fpz2.js;h=41fa14732e34d7f5548a7e01019217a0d4898e96;hb=f6da80c5c801b2043c03c0f077de7472d8f26f46;hp=5d0c614761c00d3a958e51380e8b684099d066be;hpb=c4bb40d07ac3ec2dcfa466ebe0a62385db2ddf83;p=pazpar2-moved-to-github.git 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) {