|
Lines 484-497
if ( $messages->{'ResFound'}) {
Link Here
|
| 484 |
|
484 |
|
| 485 |
if ( $messages->{'RecallFound'} ){ |
485 |
if ( $messages->{'RecallFound'} ){ |
| 486 |
my $recall = $messages->{'Recall'}; |
486 |
my $recall = $messages->{'Recall'}; |
|
|
487 |
warn $userenv_branch; |
| 488 |
warn $recall->branchcode; |
| 489 |
my $transfer_recall; |
| 490 |
if ($userenv_branch eq $recall->branchcode) { |
| 491 |
$transfer_recall = 0; |
| 492 |
} else { |
| 493 |
$transfer_recall = 1; |
| 494 |
} |
| 487 |
my $patron = Koha::Patrons->find( $recall->borrowernumber ); |
495 |
my $patron = Koha::Patrons->find( $recall->borrowernumber ); |
| 488 |
$template->param( |
496 |
$template->param( |
| 489 |
patron => $patron, |
497 |
patron => $patron, |
| 490 |
found => 1, |
498 |
found => 1, |
| 491 |
recalled => 1, |
499 |
recalled => 1, |
| 492 |
recall => $recall, |
500 |
recall => $recall, |
| 493 |
transfer_recall => ($userenv_branch eq $recall->branchcode ? 1 : 0 ) |
501 |
transfer_recall => $transfer_recall, |
| 494 |
# address => $patron->address, |
502 |
address => $patron->address, |
| 495 |
# address2 => $patron->address2, |
503 |
# address2 => $patron->address2, |
| 496 |
# streetnumber => $patron->streetnumber, |
504 |
# streetnumber => $patron->streetnumber, |
| 497 |
# city => $patron->city, |
505 |
# city => $patron->city, |