From ca3f7ceb2a5e1dc6d62b4500392ec9ca834c0b48 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 Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- 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 45d47ad09a..a73e577dea 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -288,6 +288,8 @@ modules: columnname: holdings_lastseen - columnname: holdings_dateaccessioned + - + columnname: holdings_datelastborrowed - columnname: holdings_barcode - 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.39.5