Report borrower's home library on reserves library mismatch.
authorRyan Higgins <rch@liblime.com>
Mon, 24 Mar 2008 09:07:50 +0000 (04:07 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 25 Mar 2008 12:20:22 +0000 (07:20 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
reserve/request.pl

index ac6b854..b1740de 100644 (file)
@@ -145,7 +145,7 @@ if (alreadyreserved > "0"){
     <!-- /TMPL_IF -->
 
 <!-- TMPL_IF NAME="diffbranch" --><h3>Branch Mismatch</h3>
-      <li> <strong>Pickup library is different</strong> than <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="borrowerfirstname" --> <!-- TMPL_VAR NAME="borrowersurname" --> </a>'s home library</li>
+      <li> <strong>Pickup library is different</strong> than <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="borrowerfirstname" --> <!-- TMPL_VAR NAME="borrowersurname" --> </a>'s home library (<!-- TMPL_VAR NAME="borrower_branchname" --> / <!-- TMPL_VAR NAME="borrower_branchcode" --> )</li>
     <!-- /TMPL_IF -->
 </ul></div>
 <!-- /TMPL_IF -->
index ffbb0ba..51abfbd 100755 (executable)
@@ -471,7 +471,9 @@ $template->param(
     CGIselectborrower => $CGIselectborrower,
     title             => $dat->{title},
     author            => $dat->{author},
-       holdsview => 1
+       holdsview => 1,
+       borrower_branchname => $branches->{$borrowerinfo->{'branchcode'}}->{'branchname'},
+       borrower_branchcode => $borrowerinfo->{'branchcode'},
 );
 
 # printout the page