From: Mike Taylor Date: Wed, 2 Apr 2014 12:31:37 +0000 (+0100) Subject: Autosearching submits torusquery parameter from widget. X-Git-Tag: 1.0.0~1096 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=b3d702291b9ca0403be8cae17dac6dece14a228f;p=mkws-moved-to-github.git Autosearching submits torusquery parameter from widget. This can be used to say:
--- diff --git a/src/mkws-widgets.js b/src/mkws-widgets.js index b947786..17ecdab 100644 --- a/src/mkws-widgets.js +++ b/src/mkws-widgets.js @@ -288,13 +288,16 @@ mkws.registerWidgetType('Records', function() { var sortOrder = that.config.sort; var perpage = that.config.perpage; var targets = that.config.targets; + var torusquery = that.config.torusquery; + that.log("torusquery='" + torusquery + "'"); var s = "running auto search: '" + query + "'"; if (sortOrder) s += " sorted by '" + sortOrder + "'"; if (perpage) s += " with " + perpage + " per page"; if (targets) s += " in targets '" + targets + "'"; + if (torusquery) s += " limited by torusquery '" + torusquery + "'"; that.log(s); - that.team.newSearch(query, sortOrder, perpage, targets); + that.team.newSearch(query, sortOrder, perpage, targets, torusquery); }); } });