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 265-270
sub GetRecords {
Link Here
|
265 |
push @{ $biblioitem->{items}->{item} }, \%item; |
264 |
push @{ $biblioitem->{items}->{item} }, \%item; |
266 |
} |
265 |
} |
267 |
|
266 |
|
|
|
267 |
# Holds |
268 |
my $holds = $biblio->current_holds->unblessed; |
269 |
foreach my $hold (@$holds) { |
270 |
delete $hold->{'borrowernumber'}; |
271 |
} |
272 |
|
268 |
# Hashref building... |
273 |
# Hashref building... |
269 |
$biblioitem->{'reserves'}->{'reserve'} = $holds; |
274 |
$biblioitem->{'reserves'}->{'reserve'} = $holds; |
270 |
$biblioitem->{'issues'}->{'issue'} = $checkouts; |
275 |
$biblioitem->{'issues'}->{'issue'} = $checkouts; |
271 |
- |
|
|