[Bug 38310] New: DataTables - Use Select2 for column filters
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Bug ID: 38310 Summary: DataTables - Use Select2 for column filters Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: jonathan.druart@gmail.com QA Contact: testopia@bugs.koha-community.org Depends on: 36640 We should apply Select2 to all of dropdown lists present in the column filters. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36640 [Bug 36640] Upgrade DataTables from 1.13.6 to 2.x -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=38311 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|koha-bugs@lists.koha-commun |jonathan.druart@gmail.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #1 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 174258 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=174258&action=edit Bug 38310: WIP - Add Select2 to column filters This is not working, the "clear" behaviour is not applied. When 'x' is clicked the Select2 option list is supposed to hide. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Bug 38310 depends on bug 36640, which changed state. Bug 36640 Summary: Upgrade DataTables from 1.13.6 to 2.x https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36640 What |Removed |Added ---------------------------------------------------------------------------- Status|Needs documenting |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |blawlor@clamsnet.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |41023 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41023 [Bug 41023] Add the abilty to select multiple values in dropdown lists in holding table -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Mathieu Saby <mathsabypro@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mathsabypro@gmail.com --- Comment #2 from Mathieu Saby <mathsabypro@gmail.com> --- Nice idea, it would be useful if it gives the ability to select multiple values -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |42836 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42836 [Bug 42836] Improve our use of DataTables across the codebase -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Strategic theme|--- |Modernisation Initiative type|--- |Epic CC| |martin.renvoize@openfifth.c | |o.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clemens.tubach@kit.edu, | |jan.kissig@th-wildau.de, | |katrin.fischer@bsz-bw.de, | |michaela.sieber@kit.edu --- Comment #3 from Michaela Sieber <michaela.sieber@kit.edu> --- +100 This would be a great improvement for usability! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|jonathan.druart@gmail.com |martin.renvoize@openfifth.c | |o.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |jonathan.druart@gmail.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #174258|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #4 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 200496 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200496&action=edit Bug 38310: WIP - Add Select2 to column filters This is not working, the "clear" behaviour is not applied. When 'x' is clicked the Select2 option list is supposed to hide. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #5 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 200497 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200497&action=edit Bug 38310: Add more width Patch from commit 0c98644 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #6 from Jonathan Druart <jonathan.druart@gmail.com> --- Still no working: 1. "clear" trigger a search (click on header trigger a reorder) 2. still not width enough 3. select value is not adjust if you select another one -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|martin.renvoize@openfifth.c |jonathan.druart@gmail.com |o.uk | Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #7 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 206433 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206433&action=edit Bug 38310: Fix Select2 in DataTables column filters * CSS - Use width: 100% and dropdownAutoWidth * Stop propagation from the filter row to prevent clear to reorder a column * Destroy existing Select2 instances * Register the select2:open focus handler only once -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |26288 QA Contact|jonathan.druart@gmail.com |testopia@bugs.koha-communit | |y.org --- Comment #8 from Jonathan Druart <jonathan.druart@gmail.com> --- Tested on top of bug 26288. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26288 [Bug 26288] Update the Select2 JS lib to latest version -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #200496|0 |1 is obsolete| | Attachment #200497|0 |1 is obsolete| | Attachment #206433|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #9 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 206639 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206639&action=edit Bug 38310: WIP - Add Select2 to column filters This is not working, the "clear" behaviour is not applied. When 'x' is clicked the Select2 option list is supposed to hide. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #10 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 206640 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206640&action=edit Bug 38310: Add more width -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #11 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 206641 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206641&action=edit Bug 38310: Fix Select2 in DataTables column filters * CSS - Use width: 100% and dropdownAutoWidth * Stop propagation from the filter row to prevent clear to reorder a column * Destroy existing Select2 instances * Register the select2:open focus handler only once -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #206639|0 |1 is obsolete| | Attachment #206640|0 |1 is obsolete| | Attachment #206641|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #12 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 206799 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206799&action=edit Bug 38310: WIP - Add Select2 to column filters This is not working, the "clear" behaviour is not applied. When 'x' is clicked the Select2 option list is supposed to hide. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #13 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 206800 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206800&action=edit Bug 38310: Add more width -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #14 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 206801 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206801&action=edit Bug 38310: Fix Select2 in DataTables column filters * CSS - Use width: 100% and dropdownAutoWidth * Stop propagation from the filter row to prevent clear to reorder a column * Destroy existing Select2 instances * Register the select2:open focus handler only once -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Philip Orr <philip.orr@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |philip.orr@lmscloud.de --- Comment #15 from Philip Orr <philip.orr@lmscloud.de> --- This one was a little tricky to test. I ended up having to remove the cache in Firefox after applying the bug before I could actually see the changes. I also ran `npm run js:build:prod` and `restart_all` beforehand, but I don't know if that helped or not. :-) I tested the following: - results of an item search: the columns for filtering results, such as homebranch - patron search results: library and category columns in search results I couldn't think of any other tables with column selects, but let me know if I've missed one, happy to continue testing. Also tested the headers of some other tables to make sure they still sort properly and work as expected. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Philip Orr <philip.orr@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 Philip Orr <philip.orr@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #206799|0 |1 is obsolete| | Attachment #206800|0 |1 is obsolete| | Attachment #206801|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #16 from Philip Orr <philip.orr@lmscloud.de> --- Created attachment 212363 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212363&action=edit Bug 38310: WIP - Add Select2 to column filters This is not working, the "clear" behaviour is not applied. When 'x' is clicked the Select2 option list is supposed to hide. Signed-off-by: Philip Orr <philip.orr@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #17 from Philip Orr <philip.orr@lmscloud.de> --- Created attachment 212364 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212364&action=edit Bug 38310: Add more width Signed-off-by: Philip Orr <philip.orr@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38310 --- Comment #18 from Philip Orr <philip.orr@lmscloud.de> --- Created attachment 212365 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212365&action=edit Bug 38310: Fix Select2 in DataTables column filters * CSS - Use width: 100% and dropdownAutoWidth * Stop propagation from the filter row to prevent clear to reorder a column * Destroy existing Select2 instances * Register the select2:open focus handler only once Signed-off-by: Philip Orr <philip.orr@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org