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;
"sort": this.currentSort,
"block": 1,
"type": this.showResponseType,
- "windowid" : window.name,
+ "windowid" : window.name
};
if (query_state)
requestParameters["query-state"] = query_state;