[Patches] [PATCH] Bug 7159 - Add branchcode to circulation.pl search

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Sat Nov 5 08:35:03 NZDT 2011


From: Liz Rea <lrea at nekls.org>
Date: Fri, 4 Nov 2011 14:23:31 -0500
Subject: [PATCH] Bug 7159 -  Add branchcode to circulation.pl search
Content-Type: text/plain; charset="utf-8"

I know there's talk of getting rid of this patron search method, but I had a request for this and so here it is.

To test:
verify that branchcode is displayed on patron search results from circulation.pl.
---
 circ/circulation.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/circ/circulation.pl b/circ/circulation.pl
index efb87da..609aaf4 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -498,8 +498,9 @@ if ($borrowerslist) {
       )
     {
         push @values, $_->{'borrowernumber'};
+"$_->{'surname'}, $_->{'firstname'}. ($_->{'cardnumber'} - $_->{'categorycode'}) -- $_->{'address'}, $_->{'city'} -- $_->{'branchcode'} ";
         $labels{ $_->{'borrowernumber'} } =
-"$_->{'surname'}, $_->{'firstname'} ... ($_->{'cardnumber'} - $_->{'categorycode'}) ...  $_->{'address'} ";
+"$_->{'surname'}, $_->{'firstname'} ... ($_->{'cardnumber'} - $_->{'categorycode'}) ...  $_->{'address'} -- $_->{'branchcode'}";
     }
     $CGIselectborrower = CGI::scrolling_list(
         -name     => 'borrowernumber',
-- 
1.7.2.5


More information about the Patches mailing list