Bug 40683

Summary: Use DataTables Select plugin for handling selections across multiple pages
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
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
Bug 40683: WIP

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 :-)