From d05ca42c75759c5f05fd7818201381cc2468ca50 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 17 Feb 2016 18:27:11 -0500 Subject: [PATCH] Bug 15671 - Show branch name instead of branch code in checkout history MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When viewing the checkout history for a title the branchcode is displayed. This patch alters the template to show the library name instead. To test, apply the patch and locate a title in the staff client which has been checked out at least once. From the detail page, click "Checkout history" in the sidebar. The "Checked out from" column of the checkout history table should show the library name instead of the branchcode. Works as expected. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- .../intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt index e7224828aa..b15dfdbdb0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt @@ -1,5 +1,6 @@ [% USE Koha %] [% USE KohaDates %] +[% USE Branches %] [% INCLUDE 'doc-head-open.inc' %] Koha › Catalog › Checkout history for [% title |html %] [% INCLUDE 'doc-head-close.inc' %] @@ -62,7 +63,7 @@ $(document).ready(function() {   [% END %] [% IF ( issue.branchcode ) %] - [% issue.branchcode %] + [% Branches.GetName( issue.branchcode ) %] [% ELSE %]   [% END %] -- 2.39.5