Bugzilla – Attachment 189303 Details for
Bug 36920
Greater/less than search option on item search page to Barcode-drop-down menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36920: Greater/less than search option for item search page field drop-down menu
Bug-36920-Greaterless-than-search-option-for-item-.patch (text/plain), 2.21 KB, created by
Owen Leonard
on 2025-11-07 12:43:21 UTC
(
hide
)
Description:
Bug 36920: Greater/less than search option for item search page field drop-down menu
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-11-07 12:43:21 UTC
Size:
2.21 KB
patch
obsolete
>From 7d0745bf2bd2948dc9c136749075bbc44026f254 Mon Sep 17 00:00:00 2001 >From: Katariina Pohto <trainee@koha-suomi.fi> >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 <david@davidnind.com> >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../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 ad2f23ab244..32749e9b678 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 @@ > <option value="like">is</option> > <option value="not like">is not</option> > [% END %] >+ [% IF params.op == '>' %] >+ <option value=">" selected="selected">></option> >+ [% ELSE %] >+ <option value=">">></option> >+ [% END %] >+ [% IF params.op == '<' %] >+ <option value="<" selected="selected"><</option> >+ [% ELSE %] >+ <option value="<"><</option> >+ [% END %] > </select> > <input type="text" name="q" class="form-field-value" value="[% query.param('q').$i ? query.param('q').$i : query.param('q') | html %]" /> > </div> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36920
:
167017
|
167105
|
167296
|
182475
|
189250
| 189303 |
189304