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

(-)a/C4/ILSDI/Services.pm (-2 / +6 lines)
Lines 227-233 sub GetRecords { Link Here
227
227
228
        # Get most of the needed data
228
        # Get most of the needed data
229
        my $biblioitemnumber = $biblioitem->{'biblioitemnumber'};
229
        my $biblioitemnumber = $biblioitem->{'biblioitemnumber'};
230
        my $holds  = $biblio->current_holds->unblessed;
231
        my $checkouts = Koha::Checkouts->search(
230
        my $checkouts = Koha::Checkouts->search(
232
            { biblionumber => $biblionumber },
231
            { biblionumber => $biblionumber },
233
            {
232
            {
Lines 279-284 sub GetRecords { Link Here
279
            push @{ $biblioitem->{items}->{item} }, \%item;
278
            push @{ $biblioitem->{items}->{item} }, \%item;
280
        }
279
        }
281
280
281
        # Holds
282
        my $holds = $biblio->current_holds->unblessed;
283
        foreach my $hold (@$holds) {
284
            delete $hold->{'borrowernumber'};
285
        }
286
282
        # Hashref building...
287
        # Hashref building...
283
        $biblioitem->{'reserves'}->{'reserve'} = $holds;
288
        $biblioitem->{'reserves'}->{'reserve'} = $holds;
284
        $biblioitem->{'issues'}->{'issue'}     = $checkouts;
289
        $biblioitem->{'issues'}->{'issue'}     = $checkouts;
285
- 

Return to bug 21301