X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=281f5b241a8cd180f03fb61100033efd09aeeb2e;hb=1f6d6e7fc2d7dac0337296569145d4bb0e7ace97;hp=67bedc6625857721b0c2b900f915f544799bee63;hpb=37890f04937e3a8a55cea1b2d1a535ebed385cde;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 67bedc6..281f5b2 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -470,7 +470,12 @@ function triggerSearch (query, sort, targets) if (filter.id) { if (pp2filter) pp2filter += ","; - pp2filter += 'pz:id=' + filter.id; + if (filter.id.match(/^[a-z:]+[=~]/)) { + debug("filter '" + filter.id + "' already begins with SETTING OP"); + } else { + filter.id = 'pz:id=' + filter.id; + } + pp2filter += filter.id; } else { if (pp2limit) pp2limit += ",";