[Bug 37830] New: Provide ability to filter holdings in OPAC holdings table
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 Bug ID: 37830 Summary: Provide ability to filter holdings in OPAC holdings table Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: pedro.amorim@ptfs-europe.com QA Contact: testopia@bugs.koha-community.org CC: bernard.scaife@ptfs-europe.com, david@davidnind.com, lucy.vaux-harvey@ptfs-europe.com, martin.renvoize@ptfs-europe.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 Pedro Amorim <pedro.amorim@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 --- Comment #1 from Pedro Amorim <pedro.amorim@ptfs-europe.com> --- Created attachment 171024 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171024&action=edit Bug 37830: Add ability to filter holdings in OPAC Test plan: 1) Visit any OPAC biblio page, ktd: opac_url/cgi-bin/koha/opac-detail.pl?biblionumber=336 2) Notice a new "Search holdings" input on top of the holdings table 3) Type something in the input, notice it filters rows 4) Clear the filter, notice all rows show -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 Pedro Amorim <pedro.amorim@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Keywords| |Sandbox Assignee|oleonard@myacpl.org |pedro.amorim@ptfs-europe.co | |m -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 David Nind <david@davidnind.com> 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=37830 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171024|0 |1 is obsolete| | --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 171031 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171031&action=edit Bug 37830: Add ability to filter holdings in OPAC Test plan: 1) Visit any OPAC biblio page, ktd: opac_url/cgi-bin/koha/opac-detail.pl?biblionumber=336 2) Notice a new "Search holdings" input on top of the holdings table 3) Type something in the input, notice it filters rows 4) Clear the filter, notice all rows show Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 Pedro Amorim <pedro.amorim@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171031|0 |1 is obsolete| | --- Comment #3 from Pedro Amorim <pedro.amorim@ptfs-europe.com> --- Created attachment 172450 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172450&action=edit Bug 37830: Add ability to filter holdings in OPAC Test plan: 1) Visit any OPAC biblio page, ktd: opac_url/cgi-bin/koha/opac-detail.pl?biblionumber=336 2) Notice a new "Search holdings" input on top of the holdings table 3) Type something in the input, notice it filters rows 4) Clear the filter, notice all rows show Sponsored-by: NHS England Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #4 from Lucas Gass <lucas@bywatersolutions.com> --- Pedro, Is there any reason to not use DataTable's native filter? dom: '<"row-filter"><"clear">lf', -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 Pedro Amorim <pedro.amorim@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@ptfs-europe.co | |m Status|Signed Off |ASSIGNED --- Comment #5 from Pedro Amorim <pedro.amorim@ptfs-europe.com> --- (In reply to Lucas Gass (lukeg) from comment #4)
Pedro,
Is there any reason to not use DataTable's native filter?
dom: '<"row-filter"><"clear">lf',
Other than not knowing about it, no reason at all! I've taken a look at this and works very well (and much better than my original patch). I'll revisit. Thanks! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 --- Comment #6 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- I imagine you've not had a moment to get back to this one yet? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 Pedro Amorim <pedro.amorim@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |INVALID --- Comment #7 from Pedro Amorim <pedro.amorim@ptfs-europe.com> --- Hi all, our requirements for this particular holdings table search input have grown to customer specific customizations beyond what the datatable search input provides. For this reason I've decided to have my own JavaScript in opacuserjs for this particular use case, for now. I'll follow-up here if community feels this is very valuable to be in core, otherwise I won't proceed with it here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37830 --- Comment #8 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Pedro Amorim from comment #7)
Hi all, our requirements for this particular holdings table search input have grown to customer specific customizations beyond what the datatable search input provides. For this reason I've decided to have my own JavaScript in opacuserjs for this particular use case, for now. I'll follow-up here if community feels this is very valuable to be in core, otherwise I won't proceed with it here.
I have to admit that gets me curious about the use case :) Maybe only wondering if we could still use this bug with obsoleted patch to do the datatables standard search filter? This could still be useful for libraries with a lot of items on different branches. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org