From 0b18028242a00234f93629d02f526779b48cfd2e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Sun, 2 Aug 2020 16:49:59 +0000 Subject: [PATCH] Bug 24176: Add datalastseen column to holdings table This patch adds the datelastseen column to the holdings table and also makes it column configurable. To Test: -Apply patch and have a look at some item records. -Notice the datalastseen column -Make sure it wroks and its displaying the datelastseen correctly -Go to the column configuration tools and make sure you can properly hide this column. Signed-off-by: Sally --- admin/columns_settings.yml | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 1a24b3084b..085a4f6ad3 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -289,6 +289,8 @@ modules: - columnname: holdings_dateaccessioned - + columnname: holdings_datelastborrowed + - columnname: holdings_barcode - columnname: holdings_enumchron 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 8903ec5b66..dad9adeb4c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -288,6 +288,7 @@ Status Last seen Date accessioned + Date last borrowed Barcode [% IF ( itemdata_uri ) %]URL[% END %] [% IF ( itemdata_copynumber ) %]Copy number[% END %] @@ -450,6 +451,7 @@ Note that permanent location is a code, and location may be an authval. [% item.datelastseen | $KohaDates %] [% item.dateaccessioned | $KohaDates %] + [% item.datelastborrowed | $KohaDates %] [% item.barcode | html %] [% IF ( itemdata_uri ) %] [% IF item.uri.split(' \| ').size > 1 %] -- 2.11.0