Bugzilla – Attachment 195090 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
Bug-42052-Do-not-export-useless-columns-of-items-t.patch (text/plain), 2.96 KB, created by
Owen Leonard
on 2026-03-10 18:39:36 UTC
(
hide
)
Description:
Bug 42052: Do not export useless columns of items table in catalogue details page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-03-10 18:39:36 UTC
Size:
2.96 KB
patch
obsolete
>From 40ee4bb5038c6f31590fa2ba8f853a636a0ded84 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 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../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 9a1a3eaf65c..a5c57523fc7 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.39.5
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