Bug 7981: Use The Branches TT plugin instead of GetBranchName
Note that homebranchname is never used in the template. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
parent
0405287538
commit
074f8637e8
2 changed files with 2 additions and 4 deletions
|
@ -272,9 +272,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'},
|
||||
|
|
|
@ -277,7 +277,7 @@ $(document).ready(function () {
|
|||
[% IF ( transfer ) %]
|
||||
<!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
|
||||
<div id="return1" class="dialog message">
|
||||
<h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% returnbranchname %]<br/>( <a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% returnbranch %]&op=slip'); return true;">Print slip</a> )</h3>
|
||||
<h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% Branches.GetName( returnbranchname ) %]<br/>( <a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% returnbranch %]&op=slip'); return true;">Print slip</a> )</h3>
|
||||
</div>
|
||||
[% IF ( soundon ) %]
|
||||
<audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
|
||||
|
@ -289,7 +289,7 @@ $(document).ready(function () {
|
|||
[% IF ( soundon ) %]
|
||||
<audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
|
||||
[% END %]
|
||||
<div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% returnbranchname %]</h3>
|
||||
<div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% Branches.GetName( returnbranchname ) %]</h3>
|
||||
Transfer now?<br />
|
||||
<form method="post" action="returns.pl" name="mainform" id="mainform">
|
||||
[% IF itemnumber %]
|
||||
|
|
Loading…
Reference in a new issue