From 58537a61bb89587c8908113974ced2992a9530dd Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Thu, 10 Jan 2019 10:48:38 +0100 Subject: [PATCH] Bug 20888: Allow use of boolean operator 'not' in item search Test plan: - Apply the patch - Check that you have a 'is not' option in the third box in item search - Check that you can exclude items from the search results with this 'is not' option - Check that you can still combine parameters with 'and' and 'or' - Check that the exclusion works for custom fields (see Administration > Item search fields) - Check that the exclusion works for custom fields linked to authorised values --- .../prog/en/modules/catalogue/itemsearch.tt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 1b9535d..0182397 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -81,8 +81,22 @@ [% END %] + [% IF params.exists('op') %] + + [% ELSE %] + + [% END %] - [% END %] @@ -220,7 +234,7 @@ [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %]