From 5e71338ae5331962a37f9da0c406ed9bce153162 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 22 Apr 2024 15:31:17 +0000 Subject: [PATCH] Bug 16122: Add display and Table settings Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Andrew Fuerste Henry Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- admin/columns_settings.yml | 6 ++++++ .../html_helpers/tables/items/catalogue_detail.inc | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 1ae17d384b..3aa182a6b9 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -402,6 +402,9 @@ modules: - columnname: holdings_renewals is_hidden: 1 + - + columnname: holdings_localuse + is_hidden: 1 - columnname: holdings_dateaccessioned - @@ -465,6 +468,9 @@ modules: - columnname: otherholdings_renewals is_hidden: 1 + - + columnname: otherholdings_localuse + is_hidden: 1 - columnname: otherholdings_dateaccessioned - 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 4ce2888120..e17fa23dac 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 @@ -26,6 +26,7 @@ Last seen Checkouts Renewals + Local uses Date accessioned Date last borrowed Barcode @@ -576,6 +577,15 @@ return row.renewals_count || 0; } }, + { + data: "me.localuse", + className: "localuse", + searchable: true, + orderable: true, + render: function (data, type, row, meta) { + return row.localuse || 0; + } + }, { data: "me.acquisition_date", type: "date", -- 2.39.5