Lines 497-502
sub GetPatronInfo {
Link Here
|
497 |
# FIXME We should only retrieve what is needed in the template |
497 |
# FIXME We should only retrieve what is needed in the template |
498 |
my $issue = $c->unblessed_all_relateds; |
498 |
my $issue = $c->unblessed_all_relateds; |
499 |
delete $issue->{'more_subfields_xml'}; |
499 |
delete $issue->{'more_subfields_xml'}; |
|
|
500 |
|
501 |
# Is the item already on hold by another user? |
502 |
my $rs = Koha::Database->new()->schema()->resultset('Reserve'); |
503 |
$issue->{'itemonhold'} = $rs->count( |
504 |
{ |
505 |
itemnumber => $issue->{'itemnumber'} |
506 |
} |
507 |
); |
508 |
|
509 |
# Is the record (next available item) on hold by another user? |
510 |
$issue->{'recordonhold'} = $rs->count( |
511 |
{ |
512 |
biblionumber => $issue->{'biblionumber'} |
513 |
} |
514 |
); |
515 |
|
500 |
push @checkouts, $issue |
516 |
push @checkouts, $issue |
501 |
} |
517 |
} |
502 |
$borrower->{'loans'}->{'loan'} = \@checkouts; |
518 |
$borrower->{'loans'}->{'loan'} = \@checkouts; |
503 |
- |
|
|