Bugzilla – Attachment 195088 Details for
Bug 42052
Do not export first column of items table in catalogue details page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 42052: Do not export useless columns of items table in catalogue details page
96b873c.patch (text/plain), 2.90 KB, created by
Fridolin Somers
on 2026-03-10 14:54:44 UTC
(
hide
)
Description:
Bug 42052: Do not export useless columns of items table in catalogue details page
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2026-03-10 14:54:44 UTC
Size:
2.90 KB
patch
obsolete
>From 96b873c6fb1e876402dd2510b44a5b1eebfc431f Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 10 Mar 2026 15:33:17 +0100 >Subject: [PATCH] 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 >--- > .../includes/html_helpers/tables/items/catalogue_detail.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >index 9a1a3eaf65..a5c57523fc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >@@ -10,7 +10,7 @@ > <table class="items_table" id="[% tab | html %]_table"> > <thead> > <tr> >- <th id="[% tab | html %]_checkbox" data-colname="checkbox" class="no-sort"></th> >+ <th id="[% tab | html %]_checkbox" data-colname="checkbox" class="no-sort no-export"></th> > [% IF Koha.Preference('LocalCoverImages') %] > <th id="[% tab | html %]_cover_image" data-colname="cover_image">Cover image</th> > [% END %] >@@ -42,7 +42,7 @@ > [% IF Koha.Preference('EasyAnalyticalRecords') %]<th id="[% tab | html %]_hostrecord" data-colname="hostrecord">Host records</th>[% END %] > [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="usedin">Used in</th><th></th>[% END %] > [% IF Koha.Preference('UseCourseReserves') %]<th id="[% tab | html %]_course_reserves" data-colname="course_reserves">Course reserves</th>[% END %] >- [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="spinelabel" class="no-sort">Spine label</th>[% END %] >+ [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="spinelabel" class="no-sort no-export">Spine label</th>[% END %] > [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="actions" class="no-sort no-export"> </th>[% END %] > </tr> > </thead> >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 42052
:
195088
|
195090