From 45cee7e6e2bce28fe328de560a00a5bd826bc824 Mon Sep 17 00:00:00 2001 From: Nicolas Maillat Date: Tue, 24 Nov 2015 14:17:59 +0100 Subject: [PATCH 1/3] candidat query compliant new grammar --- templates/web/prod/thesaurus.js.twig | 2 +- www/skins/client/jquery.p4client.1.0.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/web/prod/thesaurus.js.twig b/templates/web/prod/thesaurus.js.twig index 541f35ed78..177caf3d5c 100644 --- a/templates/web/prod/thesaurus.js.twig +++ b/templates/web/prod/thesaurus.js.twig @@ -775,7 +775,7 @@ function doThesSearch(type, sbid, term, field) if(type=='T') v = '[' + term + ']'; else - v = '"' + term + '" IN ' + field; + v = field + '= "' + term + '"'; selectedFacetValues = []; $('#EDIT_query').val(v); checkFilters(); diff --git a/www/skins/client/jquery.p4client.1.0.js b/www/skins/client/jquery.p4client.1.0.js index c7e9fe28bf..c248e597d5 100644 --- a/www/skins/client/jquery.p4client.1.0.js +++ b/www/skins/client/jquery.p4client.1.0.js @@ -576,7 +576,7 @@ function doThesSearch(type, sbid, term, field) { if (type == 'T') v = '*:"' + term.replace("(", "[").replace(")", "]") + '"'; else - v = '"' + term + '" IN ' + field; + v = field ':"' + term + '"'; doSpecialSearch(v, true); } @@ -963,4 +963,3 @@ function execLastAct(lastAct) { } return; } - From b3bc621d4042c4d4b5db180c5617ffefe4d2fc16 Mon Sep 17 00:00:00 2001 From: Nicolas Maillat Date: Tue, 24 Nov 2015 17:01:28 +0100 Subject: [PATCH 2/3] Candidat query compliant with new grammar --- templates/web/prod/thesaurus.js.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web/prod/thesaurus.js.twig b/templates/web/prod/thesaurus.js.twig index 177caf3d5c..8dad9477c9 100644 --- a/templates/web/prod/thesaurus.js.twig +++ b/templates/web/prod/thesaurus.js.twig @@ -775,7 +775,7 @@ function doThesSearch(type, sbid, term, field) if(type=='T') v = '[' + term + ']'; else - v = field + '= "' + term + '"'; + v = field + '="' + term + '"'; selectedFacetValues = []; $('#EDIT_query').val(v); checkFilters(); From a3575d028011521031ab7736c8fa77e92c69a3e6 Mon Sep 17 00:00:00 2001 From: Nicolas Maillat Date: Tue, 24 Nov 2015 17:58:00 +0100 Subject: [PATCH 3/3] candidat's query compliant with new grammar --- www/skins/client/jquery.p4client.1.0.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/skins/client/jquery.p4client.1.0.js b/www/skins/client/jquery.p4client.1.0.js index c248e597d5..37f70b6275 100644 --- a/www/skins/client/jquery.p4client.1.0.js +++ b/www/skins/client/jquery.p4client.1.0.js @@ -576,7 +576,7 @@ function doThesSearch(type, sbid, term, field) { if (type == 'T') v = '*:"' + term.replace("(", "[").replace(")", "]") + '"'; else - v = field ':"' + term + '"'; + v = field '="' + term + '"'; doSpecialSearch(v, true); }