Bugzilla – Attachment 182109 Details for
Bug 39473
Drop-down filters on item holdings table should match codes exactly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39473: Use exact search for column filtering with dropdown
Bug-39473-Use-exact-search-for-column-filtering-wi.patch (text/plain), 1.84 KB, created by
Lucas Gass (lukeg)
on 2025-05-08 19:28:39 UTC
(
hide
)
Description:
Bug 39473: Use exact search for column filtering with dropdown
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-05-08 19:28:39 UTC
Size:
1.84 KB
patch
obsolete
>From 9fdbfd76c4b546550caa35e021cf24a130d0e553 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 22 Apr 2025 14:41:24 +0200 >Subject: [PATCH] Bug 39473: Use exact search for column filtering with > dropdown > >We need to use an exact search when using the id of an option. > >Test plan: >0. If not using default KTD data, create an item type with the following settings: > Item type: BK > Description: Books > leave all other values on their defaults > >1. Create a new item type with the following settings: > Item type: BKA > Description: Other type of book > leave all other values on their defaults > >2. Add or edit items on a bib record so that the record has at least one item of type "Books" and at least one item of type "Another type of book" > >3. Go to Normal View for that bib record > >4. Click "Show filters" above the item holdings table > >5. In the Item type column, filter by "Books" >Only "Books" items show in the table > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 49639c6486b..24cf11a9251 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -1052,7 +1052,7 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) { > } > $(filters_options[i]).each(function () { > let o = $( >- '<option value="%s">%s</option>'.format( >+ '<option value="^%s$">%s</option>'.format( > this._id, > this._str > ) >-- >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 39473
:
181258
|
181259
|
181268
|
181570
|
181571
| 182109 |
182110