From: Dennis Schafroth Date: Tue, 2 Oct 2012 10:47:55 +0000 (+0200) Subject: Add sort parameter to search X-Git-Tag: v1.6.22~46 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=ec0fb22c0ed54c87c29ae3474fac771ddea77096;p=pazpar2-moved-to-github.git Add sort parameter to search --- diff --git a/js/pz2.js b/js/pz2.js index b52bf28..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;