Generate category limits correctly -- thanks to NE!
authorMike Taylor <mike@indexdata.com>
Thu, 24 Apr 2014 13:43:07 +0000 (14:43 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 24 Apr 2014 13:43:07 +0000 (14:43 +0100)
src/mkws-team.js

index b02b441..08f67b3 100644 (file)
@@ -272,10 +272,12 @@ function team($, teamName) {
        var pp2filter = m_filterSet.pp2filter();
        var pp2limit = m_filterSet.pp2limit(limit);
         var pp2catLimit = m_filterSet.pp2catLimit();
+       if (pp2catLimit) {
+            pp2filter = pp2filter ? pp2filter + "," + pp2catLimit : pp2catLimit;
+        }
 
        var params = {};
        if (pp2limit) params.limit = pp2limit;
-       if (pp2catLimit) params.categoryfilter = pp2catLimit;
        if (maxrecs) params.maxrecs = maxrecs;
        if (torusquery) {
            if (!mkws.config.use_service_proxy)