View | Details | Raw Unified | Return to bug 21284
Collapse All | Expand All

(-)a/C4/ILSDI/Services.pm (-1 / +16 lines)
Lines 484-489 sub GetPatronInfo { Link Here
484
            # FIXME We should only retrieve what is needed in the template
484
            # FIXME We should only retrieve what is needed in the template
485
            my $issue = $c->unblessed_all_relateds;
485
            my $issue = $c->unblessed_all_relateds;
486
            delete $issue->{'more_subfields_xml'};
486
            delete $issue->{'more_subfields_xml'};
487
488
            # Is the item already on hold by another user?
489
            my $rs = Koha::Database->new()->schema()->resultset('Reserve');
490
            $issue->{'itemonhold'} = $rs->count(
491
                {
492
                    itemnumber => $issue->{'itemnumber'}
493
                }
494
            );
495
496
            # Is the record (next available item) on hold by another user?
497
            $issue->{'recordonhold'} = $rs->count(
498
                {
499
                    biblionumber => $issue->{'biblionumber'}
500
                }
501
            );
502
487
            push @checkouts, $issue
503
            push @checkouts, $issue
488
        }
504
        }
489
        $borrower->{'loans'}->{'loan'} = \@checkouts;
505
        $borrower->{'loans'}->{'loan'} = \@checkouts;
490
- 

Return to bug 21284