Bug 42052

Summary: Do not export first column of items table in catalogue details page
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: TemplatesAssignee: Fridolin Somers <fridolin.somers>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 42052: Do not export useless columns of items table in catalogue details page
Bug 42052: Do not export useless columns of items table in catalogue details page

Description Fridolin Somers 2026-03-10 14:25:44 UTC
In catalogue details page, staff interface, do not export first column of items (aka holdings) table.
It contains only checkboxes.
CSV export generates a column wihtout heading which is useless.
Comment 1 Fridolin Somers 2026-03-10 14:31:12 UTC
Idem for "Spine label" column, should not be exported
Comment 2 Fridolin Somers 2026-03-10 14:54:44 UTC
Created attachment 195088 [details] [review]
Bug 42052: Do not export useless columns of items table in catalogue details page

In catalogue details page, staff interface, do not export first column of items (aka holdings) table.
It contains only checkboxes.
CSV export generates a column wihtout heading which is useless.
Idem for "Spine label" column, should not be exported.

Patch simply add "no-export" class on those column header.

Test plan :
1) Enable systempreference 'SpineLabelShowPrintOnBibDetails'
2) In staff interface go to a biblio record with items
3) Check you see items table with first colum containing checkboxes and column containing links to print label
4) Click Export > CSV
5) Check you dont see first empty column nor spine label column
Comment 3 Owen Leonard 2026-03-10 18:39:36 UTC
Created attachment 195090 [details] [review]
Bug 42052: Do not export useless columns of items table in catalogue details page

In catalogue details page, staff interface, do not export first column
of items (aka holdings) table.
It contains only checkboxes.
CSV export generates a column wihtout heading which is useless.
Idem for "Spine label" column, should not be exported.

Patch simply add "no-export" class on those column header.

Test plan :
1) Enable systempreference 'SpineLabelShowPrintOnBibDetails'
2) In staff interface go to a biblio record with items
3) Check you see items table with first colum containing checkboxes and
   column containing links to print label
4) Click Export > CSV
5) Check you dont see first empty column nor spine label column

Signed-off-by: Owen Leonard <oleonard@myacpl.org>