X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-team.js;h=7126abd4421a4f7ddfe4e7989117859899827f87;hb=c30140c13eeb6cc8b1fe98a1dd36126d0e92649e;hp=3d4838570bd3041eaa9f876a4b07ff877c63e1ac;hpb=a4bc69c1158498afe0c0f0eab4d2a136526b8695;p=mkws-moved-to-github.git diff --git a/src/mkws-team.js b/src/mkws-team.js index 3d48385..7126abd 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -296,6 +296,26 @@ mkws.makeTeam = function($, teamName) { return; } + { + if (!sortOrder) sortOrder = that.config.sort; + if (!maxrecs) maxrecs = that.config.maxrecs; + if (!perpage) perpage = that.config.perpage; + if (!limit) limit = that.config.limit; + if (!targets) targets = that.config.targets; + if (!torusquery) torusquery = that.config.targetfilter; + var target = that.config.target; + if (target) torusquery = 'udb=="' + target + '"'; + + var s = "running search: '" + query + "'"; + if (sortOrder) s += " sorted by '" + sortOrder + "'"; + if (maxrecs) s += " restricted to " + maxrecs + " records"; + if (perpage) s += " with " + perpage + " per page"; + if (limit) s += " limited by '" + limit + "'"; + if (targets) s += " in targets '" + targets + "'"; + if (torusquery) s += " constrained by torusquery '" + torusquery + "'"; + that.info(s); + } + m_filterSet.removeMatching(function(f) { return f.type !== 'category' }); triggerSearch(query, sortOrder, maxrecs, perpage, limit, targets, torusquery); switchView('records'); // In case it's configured to start off as hidden