X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-team.js;h=2bf3bcb130b5ba2eeea801f7368561bb84d1a2d6;hb=95a8624c1f42a9b5c747cfe6f50664e219fba5ec;hp=1ad267de0a3f3852bdf6c3f8eccf73864458b276;hpb=21fc191d487bffa9592be523f1fb54ad3f44ef08;p=mkws-moved-to-github.git diff --git a/src/mkws-team.js b/src/mkws-team.js index 1ad267d..2bf3bcb 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -40,7 +40,7 @@ function team($, teamName) { that.currentPage = function() { return m_currentPage; }; that.currentRecordId = function() { return m_currentRecordId; }; that.currentRecordData = function() { return m_currentRecordData; }; - that.filters = function() { return m_filterSet.list(); }; + that.filters = function() { return m_filterSet; }; that.config = function() { return m_config; }; // Accessor methods for individual widgets: writers @@ -262,29 +262,17 @@ function team($, teamName) { // Continue to use previous query/sort-order unless new ones are specified - if (query) { - m_query = query; - } - if (sortOrder) { - m_sortOrder = sortOrder; - } - if (perpage) { - m_perpage = perpage; - } - if (targets) { - m_filterSet.add(filter(id, id)); - } + if (query) m_query = query; + if (sortOrder) m_sortOrder = sortOrder; + if (perpage) m_perpage = perpage; + if (targets) m_filterSet.add(filter(id, id)); var pp2filter = m_filterSet.pp2filter(); var pp2limit = m_filterSet.pp2limit(limit); var params = {}; - if (pp2limit) { - params.limit = pp2limit; - } - if (maxrecs) { - params.maxrecs = maxrecs; - } + if (pp2limit) params.limit = pp2limit; + if (maxrecs) params.maxrecs = maxrecs; if (torusquery) { if (!mkws.config.use_service_proxy) alert("can't narrow search by torusquery when Service Proxy is not in use");