[Koha-patches] [PATCH] bug 5497: make all library fields available to circ receipt/slips

Galen Charlton gmcharlt at gmail.com
Tue Dec 14 23:21:06 CET 2010


This allows the receipt template to be more readily customized
to include the library's address, phone number, email address, etc.

Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
 members/moremember.pl |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/members/moremember.pl b/members/moremember.pl
index beec293..0be125c 100755
--- a/members/moremember.pl
+++ b/members/moremember.pl
@@ -221,8 +221,7 @@ if ( C4::Context->preference("IndependantBranches") ) {
     $samebranch = 1;
 }
 my $branchdetail = GetBranchDetail( $data->{'branchcode'});
-$data->{'branchname'} = $branchdetail->{branchname};
-
+@{$data}{keys %$branchdetail} = values %$branchdetail; # merge in all branch columns
 
 my ( $total, $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber );
 my $lib1 = &GetSortDetails( "Bsort1", $data->{'sort1'} );
-- 
1.7.0



More information about the Koha-patches mailing list