---
 circ/returns.pl                                    |    2 ++
 .../prog/en/modules/circ/returns.tmpl              |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/circ/returns.pl b/circ/returns.pl
index 0ff2407..e3f6bb2 100755
--- a/circ/returns.pl
+++ b/circ/returns.pl
@@ -217,6 +217,7 @@ if ($barcode) {
     $template->param(
         title            => $biblio->{'title'},
         homebranch       => $biblio->{'homebranch'},
+        homebranchname   => GetBranchName( $biblio->{'homebranch'} ),
         author           => $biblio->{'author'},
         itembarcode      => $biblio->{'barcode'},
         itemtype         => $biblio->{'itemtype'},
@@ -289,6 +290,7 @@ if ( $messages->{'Wrongbranch'} ){
 # case of wrong transfert, if the document wasn't transfered to the right 
library (according to branchtransfer (tobranch) BDD)
 
 if ( $messages->{'WrongTransfer'} and not $messages->{'WasTransfered'}) {
+    $messages->{'WrongTransfer'} = GetBranchName( $messages->{'WrongTransfer'} 
);
     $template->param(
         WrongTransfer  => 1,
         TransferWaitingAt => $messages->{'WrongTransfer'},
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl 
b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
index fef7c57..71934c9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
@@ -171,11 +171,11 @@ function Dopop(link) {
     <!-- TMPL_IF Name="transfer" -->
     <!-- transfer: item with no reservation, must be returned to its 
homebranch -->
        <div class="dialog message">
-         <h3>Please return <a 
href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=<!-- 
TMPL_VAR NAME="itembiblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" 
DEFAULT="item" --></a> to <!-- TMPL_VAR NAME="homebranch" DEFAULT="homebranch" 
--></h3></div><!-- /TMPL_IF -->
+         <h3>Please return <a 
href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=<!-- 
TMPL_VAR NAME="itembiblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" 
DEFAULT="item" --></a> to <!-- TMPL_VAR NAME="homebranchname" 
--></h3></div><!-- /TMPL_IF -->
 
     <!-- TMPL_IF Name="needstransfer" -->
        <!-- needstransfer -->
-       <div class="dialog message"><h3> This item needs to be transfered to 
<!-- TMPL_VAR Name="homebranch" --></h3>
+       <div class="dialog message"><h3> This item needs to be transfered to 
<!-- TMPL_VAR Name="homebranchname" --></h3>
        Transfer Now?<br />
     <form method="post" action="returns.pl" name="mainform" id="mainform">
        <input type="submit" name="dotransfer" value="Yes" class="submit" />
-- 
1.5.6.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to