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 <stephane.delaye@biblibre.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
6a4cbbba60
commit
802dd7baf5
2 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,7 @@
|
|||
</a> <br />
|
||||
[% IF ( resultsloo.streetnumber ) %][% resultsloo.streetnumber %] [% END %][% resultsloo.address %][% IF ( resultsloo.address2 ) %]<br />[% resultsloo.address2 %][% END %][% IF ( resultsloo.city ) %]<br />[% 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 %]</td>
|
||||
<td>[% resultsloo.category_description %] ([% resultsloo.category_type %])</td>
|
||||
<td>[% resultsloo.branchcode %]</td>
|
||||
<td>[% resultsloo.branchname %]</td>
|
||||
<td>[% resultsloo.dateexpiry %]</td>
|
||||
<td>[% IF ( resultsloo.overdues ) %]<span class="overdue"><strong>[% resultsloo.overdues %]</strong></span>[% ELSE %][% resultsloo.overdues %][% END %]/[% resultsloo.issues %]</td>
|
||||
<td>[% IF ( resultsloo.fines < 0 ) %]<span class="credit">[% resultsloo.fines %]</span> [% ELSIF resultsloo.fines > 0 %] <span class="debit"><strong>[% resultsloo.fines %]</strong></span> [% ELSE %] [% resultsloo.fines %] [% END %]</td>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue