From bef1f34d8983dde06e69626f068472ae45505609 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 10 Nov 2015 09:00:07 +0000 Subject: [PATCH] Bug 15136: Use TT plugin to display the branch's name Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 3 ++- members/boraccount.pl | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 702b5b5..b9732fe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -1,4 +1,5 @@ [% USE Koha %] +[% USE Branches %] [% USE KohaDates %] [% USE ColumnsSettings %] [% USE Price %] @@ -110,7 +111,7 @@ $(document).ready(function() { [%- END -%] [%- IF account.description %], [% account.description %][% END %]  [% IF ( account.itemnumber ) %][% account.title |html %][% END %] - [%- IF account.homebranch %][% account.homebranch %][% END %] + [% Branches.GetName( account.homebranch ) %] [% account.note | html_line_break %] [% IF ( account.amountcredit ) %][% ELSE %][% END %][% account.amount | $Price %] [% IF ( account.amountoutstandingcredit ) %][% ELSE %][% END %][% account.amountoutstanding | $Price %] diff --git a/members/boraccount.pl b/members/boraccount.pl index 6214508..7f6bfda 100755 --- a/members/boraccount.pl +++ b/members/boraccount.pl @@ -94,9 +94,6 @@ foreach my $accountline ( @{$accts}) { $accountline->{payment} = 1; $reverse_col = 1; } - if ($accountline->{homebranch}) { - $accountline->{homebranch} = C4::Branch::GetBranchName($accountline->{homebranch}); - } } $template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ ); -- 2.1.4