From 85b7aa730a14f06d26cd2da499a16c1cfb386a38 Mon Sep 17 00:00:00 2001 From: Katariina Pohto Date: Thu, 23 May 2024 12:46:11 +0300 Subject: [PATCH] Bug 36920: Greater/less than search option for item search page field drop-down menu The field drop-down menu (including custom fields) can currently only use operators 'is' (LIKE) and 'is not' (NOT LIKE). Greater and less than operators would be useful especially for date fields. This patch adds '>' and '<' operators to the search. 1. Go to item search page and navigate to the field drop-down menu (default value Barcode). 2. Note that the operator choices for this search menu are 'is' and 'is not'. 3. Apply patch and refresh cache. 4. Navigate back to the menu and note that the operator menu now includes '<' and '>'. 5. Choose one of the new values and refresh page to see that the selection remains. 6. Test a field or several with the new operators to see that the new operators are working as intended. Signed-off-by: David Nind Signed-off-by: Owen Leonard Signed-off-by: Kyle M Hall --- .../prog/en/modules/catalogue/itemsearch.tt | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 7e0a947f5e7..35c11bb1db0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -153,6 +153,16 @@ [% END %] + [% IF params.op == '>' %] + + [% ELSE %] + + [% END %] + [% IF params.op == '<' %] + + [% ELSE %] + + [% END %] -- 2.50.1 (Apple Git-155)