From 802dd7baf5a51e4bf028a070497c72cf894c9527 Mon Sep 17 00:00:00 2001 From: Marc Veron Date: Mon, 24 Sep 2012 18:14:37 +0200 Subject: [PATCH] Bug 8812 - Staff Client: Patron search should display branch name instead of branch code in results table Patch to display branchname instead of branch code. Signed-off-by: Delaye Stephane Signed-off-by: Paul Poulain --- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 2 +- members/member.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index b55fe5a375..64e410ff9e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -66,7 +66,7 @@
[% IF ( resultsloo.streetnumber ) %][% resultsloo.streetnumber %] [% END %][% resultsloo.address %][% IF ( resultsloo.address2 ) %]
[% resultsloo.address2 %][% END %][% IF ( resultsloo.city ) %]
[% resultsloo.city %][% IF ( resultsloo.state ) %],[% END %][% END %][% IF ( resultsloo.state ) %] [% resultsloo.state %][% END %] [% IF ( resultsloo.zipcode ) %] [% resultsloo.zipcode %][% END %][% IF ( resultsloo.country ) %], [% resultsloo.country %][% END %] [% resultsloo.category_description %] ([% resultsloo.category_type %]) - [% resultsloo.branchcode %] + [% resultsloo.branchname %] [% resultsloo.dateexpiry %] [% IF ( resultsloo.overdues ) %][% resultsloo.overdues %][% ELSE %][% resultsloo.overdues %][% END %]/[% resultsloo.issues %] [% IF ( resultsloo.fines < 0 ) %][% resultsloo.fines %] [% ELSIF resultsloo.fines > 0 %] [% resultsloo.fines %] [% ELSE %] [% resultsloo.fines %] [% END %] diff --git a/members/member.pl b/members/member.pl index bef3323457..f8aa4f1a72 100755 --- a/members/member.pl +++ b/members/member.pl @@ -141,6 +141,7 @@ foreach my $borrower(@$results[$from..$to-1]){ issues => $issue, odissue => "$od/$issue", fines => sprintf("%.2f",$fines), + branchname => $branches->{$borrower->{branchcode}}->{branchname}, ); push(@resultsdata, \%row); } -- 2.39.5