Bug 40683 - Use DataTables Select plugin for handling selections across multiple pages
Summary: Use DataTables Select plugin for handling selections across multiple pages
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-21 12:30 UTC by Nick Clemens (kidclamp)
Modified: 2025-08-21 12:35 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40683: Rebuild our datatables file to include Select plugin (1.06 MB, patch)
2025-08-21 12:34 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 40683: WIP (8.76 KB, patch)
2025-08-21 12:35 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2025-08-21 12:30:26 UTC
Bug 34227 used the same local storage method from the patron search for the item search.

It may be possible to implement a more generic solution using the datatbles Select plugin which can manage selections across table redraws.

We still need to handle the export and "clear selections" ourselves as the plugin deals only with the visible page for some of these, but it would be nice to have a simple way to enable this for any table.
Comment 1 Nick Clemens (kidclamp) 2025-08-21 12:34:59 UTC
Created attachment 185624 [details] [review]
Bug 40683: Rebuild our datatables file to include Select plugin
Comment 2 Nick Clemens (kidclamp) 2025-08-21 12:35:01 UTC
Created attachment 185625 [details] [review]
Bug 40683: WIP

This patch adds a row id which allows the slection to work across pages

I played with making the Rigth side export buttons use selected rows - they all work on visible rows at this time

We need to fully implement "Select none" to clear across pages

Right now the row selection doesn't always match the checkboxes

Basically, this needs a lot of work :-)