return false;
}
-function newSearch(query, sort)
+function newSearch(query, sort, targets)
{
if (!mkws.authenticated) {
alert("searching before authentication");
redraw_navi();
resetPage();
loadSelect();
- triggerSearch(query, sort);
+ triggerSearch(query, sort, targets);
mkws.switchView('records'); // In case it's configured to start off as hidden
submitted = true;
}
totalRec = 0;
}
-function triggerSearch (query, sort)
+function triggerSearch (query, sort, targets)
{
var pp2filter = "";
var pp2limit = "";
if (sort) {
mkws.sort = sort;
}
+ if (targets) {
+ // ### should support multiple |-separated targets
+ mkws.filters.push({ id: targets, name: targets });
+ }
for (var i in mkws.filters) {
var filter = mkws.filters[i];