|
Lines 216-222
my $library = Koha::Libraries->find( $data->{branchcode})->unblessed;
Link Here
|
| 216 |
@{$data}{keys %$library} = values %$library; # merge in all branch columns # FIXME This is really ugly, we should pass the library instead |
216 |
@{$data}{keys %$library} = values %$library; # merge in all branch columns # FIXME This is really ugly, we should pass the library instead |
| 217 |
|
217 |
|
| 218 |
# If printing a page, send the account informations to the template |
218 |
# If printing a page, send the account informations to the template |
| 219 |
if ($print eq "page") { |
219 |
if (defined $print and $print eq "page") { |
| 220 |
my $accts = Koha::Account::Lines->search( |
220 |
my $accts = Koha::Account::Lines->search( |
| 221 |
{ borrowernumber => $patron->borrowernumber, amountoutstanding => { '>' => 0 } }, |
221 |
{ borrowernumber => $patron->borrowernumber, amountoutstanding => { '>' => 0 } }, |
| 222 |
{ order_by => { -desc => 'accountlines_id' } } |
222 |
{ order_by => { -desc => 'accountlines_id' } } |
|
Lines 328-333
my $patron_messages = Koha::Patron::Messages->search(
Link Here
|
| 328 |
} |
328 |
} |
| 329 |
); |
329 |
); |
| 330 |
|
330 |
|
|
|
331 |
if( $patron_messages->count > 0 ){ |
| 332 |
$template->param( patron_messages => $patron_messages ); |
| 333 |
} |
| 331 |
|
334 |
|
| 332 |
# Display the language description instead of the code |
335 |
# Display the language description instead of the code |
| 333 |
# Note that this is certainly wrong |
336 |
# Note that this is certainly wrong |
|
Lines 353-359
$template->param(
Link Here
|
| 353 |
PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20, |
356 |
PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20, |
| 354 |
relatives_issues_count => $relatives_issues_count, |
357 |
relatives_issues_count => $relatives_issues_count, |
| 355 |
relatives_borrowernumbers => \@relatives, |
358 |
relatives_borrowernumbers => \@relatives, |
| 356 |
patron_messages => $patron_messages, |
|
|
| 357 |
); |
359 |
); |
| 358 |
|
360 |
|
| 359 |
output_html_with_http_headers $input, $cookie, $template->output; |
361 |
output_html_with_http_headers $input, $cookie, $template->output; |
| 360 |
- |
|
|