Lines 425-431
if ( $messages->{'ResFound'}) {
Link Here
|
425 |
my ( $messages, $nextreservinfo ) = GetOtherReserves($reserve->{itemnumber}); |
425 |
my ( $messages, $nextreservinfo ) = GetOtherReserves($reserve->{itemnumber}); |
426 |
|
426 |
|
427 |
my $patron = Koha::Patrons->find( $nextreservinfo ); |
427 |
my $patron = Koha::Patrons->find( $nextreservinfo ); |
428 |
my $name = $patron ? $patron->surname . ", " . $patron->title . " " . $patron->firstname : ''; |
|
|
429 |
|
428 |
|
430 |
$template->param( |
429 |
$template->param( |
431 |
hold_auto_filled => 1, |
430 |
hold_auto_filled => 1, |
Lines 441-447
if ( $messages->{'ResFound'}) {
Link Here
|
441 |
itemnumber => $item->itemnumber, |
440 |
itemnumber => $item->itemnumber, |
442 |
itembiblionumber => $biblio->biblionumber, |
441 |
itembiblionumber => $biblio->biblionumber, |
443 |
iteminfo => $biblio->author, |
442 |
iteminfo => $biblio->author, |
444 |
name => $name, |
|
|
445 |
diffbranch => 1, |
443 |
diffbranch => 1, |
446 |
); |
444 |
); |
447 |
} |
445 |
} |
Lines 464-470
if ( $messages->{'ResFound'}) {
Link Here
|
464 |
|
462 |
|
465 |
# same params for Waiting or Reserved |
463 |
# same params for Waiting or Reserved |
466 |
$template->param( |
464 |
$template->param( |
467 |
# FIXME The full patron object should be passed to the template |
|
|
468 |
found => 1, |
465 |
found => 1, |
469 |
patron => $patron, |
466 |
patron => $patron, |
470 |
barcode => $barcode, |
467 |
barcode => $barcode, |
471 |
- |
|
|