From 89e003ff9d625d434b6bc80afdbacfe3352e118c Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Thu, 3 Mar 2011 11:09:49 +0100 Subject: [PATCH] Fix limit query Seems like this was broken recently --- mkdru.client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkdru.client.js b/mkdru.client.js index 47e5da9..e985d42 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -327,11 +327,11 @@ mkdru.search = function () { filter = 'pz:id=' + mkdru.state.limit_source; } else { - var limits = mkdru.state['limit_' + facet].split(';'); + var limits = mkdru.state['limit_' + facet].split(/;+/); for (var i = 0; i < limits.length; i++) { // ex. query + and au="{limit_author}" query += ' and ' + mkdru.facets[facet]['limiter'] + '="' - + mkdru.state['limit_' + facet] + '"'; + + limits[i] + '"'; } } } -- 1.7.10.4