X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=js%2Fpz2.js;h=4ff579842899f5d4224e3799211850973afbffe3;hb=e671bfc150dd0a556f3eca344526b5eb7696ee1a;hp=b321e5a46f972704308827d905a21906ab12831b;hpb=27b510020a28c83feb607998371d824284fc24de;p=pazpar2-moved-to-github.git diff --git a/js/pz2.js b/js/pz2.js index b321e5a..4ff5798 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -284,13 +284,17 @@ pz2.prototype = else var start = 0; - var searchParams = { + var searchParams = { "command": "search", "query": this.currQuery, "session": this.sessionID, "windowid" : window.name }; + if( sort !== undefined ) { + this.currentSort = sort; + searchParams["sort"] = sort; + } if (filter !== undefined) searchParams["filter"] = filter; @@ -394,7 +398,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;