]> git.koha-community.org Git - koha.git/commit
Bug 22175: (follow-up) Identify columns to exclude from export
authorOwen Leonard <oleonard@myacpl.org>
Thu, 11 Apr 2019 18:49:13 +0000 (18:49 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 18 Apr 2019 10:53:05 +0000 (10:53 +0000)
commit729987f40d442fd20c331e7ceec32f2e24486a5a
treedd05e8eb3d14e299cbcf4635fbb0fde01b0c34a0
parent8bf043b94d73724244429adfae249d87ca5c8b9c
Bug 22175: (follow-up) Identify columns to exclude from export

Bug 21216 added a way to designate DataTables columns to include in
export operations (Copy, CSV, print, etc). However, this solution did
not take hidden columns into account. This patch revises the global
columns configuration settings so that exports will include only visible
columns and will exclude columns with a "noExport" class on the <th>.

To test, apply the patch and clear your browser cache if necessary.

 - Go to Tools -> Stock rotation
 - In the table of rotas, hide some columns in the table and verify that
   export operations include only your visible selections, excluding the
   last column with buttons.
 - Choose a rota and select Manage -> Items. Test that this table works
   in the same way.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc
koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt
koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js