From f09cea063b32196d4cf3124e2aeba8c816dc4268 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 14 Feb 2022 19:14:58 +0000 Subject: [PATCH] Bug 29282: Add issues and renewals columns to holdings tbale on details page To test: 1 - Apply patch, restart all 2 - View a record with items in the staff client 3 - Note issues and renewals columns not shown 4 - Click the gear to edit visible columns 5 - Issues and renewals are present and hidden 6 - Click to view columns 7 - Confirm counts show, or 0 if item has not circulated/been renewed 8 - Circulate/renew an item 9 - Verify counts increase 10 - Make columns visible by default in Admin->Table settings 11 - Confirm columns show by default on details page Signed-off-by: Owen Leonard Signed-off-by: Sally Signed-off-by: Martin Renvoize --- admin/columns_settings.yml | 6 ++++++ koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index a838a19f9b..5b078c1a73 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -364,6 +364,12 @@ modules: columnname: holdings_status - columnname: holdings_lastseen + - + columnname: holdings_issues + is_hidden: 1 + - + columnname: holdings_renewals + is_hidden: 1 - columnname: holdings_dateaccessioned - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 905fd07bd3..ad33f33a82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -341,6 +341,8 @@ [% END %] Status Last seen + Checkouts + Renewals Date accessioned Date last borrowed Barcode @@ -531,6 +533,8 @@ Note that permanent location is a code, and location may be an authval. [% END %] [% item.datelastseen | $KohaDates %] + [% item.issues || 0 | html %] + [% item.renewals || 0 | html %] [% item.dateaccessioned | $KohaDates %] [% item.datelastborrowed | $KohaDates %] [% item.barcode | html %] -- 2.20.1