|
Lines 228-234
sub GetRecords {
Link Here
|
| 228 |
|
228 |
|
| 229 |
# Get most of the needed data |
229 |
# Get most of the needed data |
| 230 |
my $biblioitemnumber = $biblioitem->{'biblioitemnumber'}; |
230 |
my $biblioitemnumber = $biblioitem->{'biblioitemnumber'}; |
| 231 |
my $holds = $biblio->current_holds->unblessed; |
|
|
| 232 |
my $checkouts = Koha::Checkouts->search( |
231 |
my $checkouts = Koha::Checkouts->search( |
| 233 |
{ biblionumber => $biblionumber }, |
232 |
{ biblionumber => $biblionumber }, |
| 234 |
{ |
233 |
{ |
|
Lines 266-271
sub GetRecords {
Link Here
|
| 266 |
push @{ $biblioitem->{items}->{item} }, \%item; |
265 |
push @{ $biblioitem->{items}->{item} }, \%item; |
| 267 |
} |
266 |
} |
| 268 |
|
267 |
|
|
|
268 |
# Holds |
| 269 |
my $holds = $biblio->current_holds->unblessed; |
| 270 |
foreach my $hold (@$holds) { |
| 271 |
delete $hold->{'borrowernumber'}; |
| 272 |
} |
| 273 |
|
| 269 |
# Hashref building... |
274 |
# Hashref building... |
| 270 |
$biblioitem->{'reserves'}->{'reserve'} = $holds; |
275 |
$biblioitem->{'reserves'}->{'reserve'} = $holds; |
| 271 |
$biblioitem->{'issues'}->{'issue'} = $checkouts; |
276 |
$biblioitem->{'issues'}->{'issue'} = $checkouts; |
| 272 |
- |
|
|