Bug 15671 - Show branch name instead of branch code in checkout history
authorOwen Leonard <oleonard@myacpl.org>
Wed, 17 Feb 2016 23:27:11 +0000 (18:27 -0500)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 24 Feb 2016 03:42:08 +0000 (03:42 +0000)
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 <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt

index e722482..b15dfdb 100644 (file)
@@ -1,5 +1,6 @@
 [% USE Koha %]
 [% USE KohaDates %]
+[% USE Branches %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% title |html %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
@@ -62,7 +63,7 @@ $(document).ready(function() {
                         &nbsp;
                     [% END %]</td>
                 <td>[% IF ( issue.branchcode ) %]
-                        [% issue.branchcode %]
+                        [% Branches.GetName( issue.branchcode ) %]
                     [% ELSE %]
                         &nbsp;
                     [% END %]</td>