From 47e757f67021059e7583956503db574999fc5f9e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 13 Apr 2015 13:21:49 +0200 Subject: [PATCH] Bug 7981: Use The Branches TT plugin instead of GetBranchName Note that homebranchname is never used in the template. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall Signed-off-by: Mirko Tietgen --- circ/returns.pl | 2 -- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index 124b9e6..78adda0 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -263,9 +263,7 @@ if ($barcode) { $template->param( title => $biblio->{'title'}, homebranch => $biblio->{'homebranch'}, - homebranchname => GetBranchName( $biblio->{'homebranch'} ), returnbranch => $returnbranch, - returnbranchname => GetBranchName( $returnbranch ), author => $biblio->{'author'}, itembarcode => $biblio->{'barcode'}, itemtype => $biblio->{'itemtype'}, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index e128ad6..0cb6c72 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -264,7 +264,7 @@ $(document).ready(function () { [% IF ( transfer ) %]
-

Please return [% title or "item" |html %] to [% returnbranchname %]
( Print slip )

+

Please return [% title or "item" |html %] to [% Branches.GetName( returnbranchname ) %]
( Print slip )

[% IF ( soundon ) %] @@ -276,7 +276,7 @@ $(document).ready(function () { [% IF ( soundon ) %] [% END %] -

This item needs to be transferred to [% returnbranchname %]

+

This item needs to be transferred to [% Branches.GetName( returnbranchname ) %]

Transfer now?
[% IF itemnumber %] -- 1.7.10.4