From ec2af9b0b485801c50dc754bb4e58e610c79cebd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 20 Feb 2025 13:04:19 +0000 Subject: [PATCH] Bug 39169: Automatically hide "active" and "budget period" columns on Acquisitions home page This patch adds column configuration to the table settings for the "Available funds" table on the Acquisitions home page. If a table has column configration, hidden columns should be hidden in the configuration rather than in the in-page table options. To test, apply the patch and restart all services. - Go to the Acquisitions home page - In the "All available funds" section, you should not see "active" and "budget period" columns. - NOTE: You may have to clear you browser's Local Storage in order for the change to show. - If you go to Administration -> Table settings -> Acquisition -> acq_acqui-home you should see that the first two columns are hidden by default and cannot be toggled. --- admin/columns_settings.yml | 4 +++- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index f17b17ce9f7..8377ba2f771 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -7,10 +7,12 @@ modules: columnname: active cannot_be_toggled: 1 cannot_be_modified: 1 + is_hidden: 1 - columnname: budget_period_descriptions cannot_be_toggled: 1 cannot_be_modified: 1 + is_hidden: 1 - columnname: fund_code - @@ -2548,4 +2550,4 @@ modules: - columnname: actions cannot_be_toggled: 1 - cannot_be_modified: 1 \ No newline at end of file + cannot_be_modified: 1 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index 76ac361d9b7..835c6f31441 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -244,7 +244,6 @@ footer_column_sum( api, [ 6, 7, 8, 9 ] ); }, "columnDefs": [ - { "visible": false, "targets": [ 0, 1 ] }, { "orderable": false, "targets": ["_all"] } ], "ordering": true, -- 2.39.5