Lines 252-257
foreach my $bibnum ( @biblionumbers ){
Link Here
|
252 |
|
252 |
|
253 |
my $hold_info; |
253 |
my $hold_info; |
254 |
my $items = $all_items->{$bibnum}; |
254 |
my $items = $all_items->{$bibnum}; |
|
|
255 |
my $items_count = defined $items ? scalar @$items : 0; |
256 |
my $pull_count = $items_count <= $patrons_count->{$bibnum} ? $items_count : $patrons_count->{$bibnum}; |
257 |
if ( $pull_count == 0 ) { |
258 |
next; |
259 |
} |
255 |
|
260 |
|
256 |
# get available item types for each biblio |
261 |
# get available item types for each biblio |
257 |
my @res_itemtypes; |
262 |
my @res_itemtypes; |
Lines 286-301
foreach my $bibnum ( @biblionumbers ){
Link Here
|
286 |
$hold_info->{holdingbranches} = [ uniq map { defined $_->holdingbranch ? $_->holdingbranch : () } @$items ]; |
291 |
$hold_info->{holdingbranches} = [ uniq map { defined $_->holdingbranch ? $_->holdingbranch : () } @$items ]; |
287 |
|
292 |
|
288 |
# items available |
293 |
# items available |
289 |
my $items_count = scalar @$items; |
|
|
290 |
$hold_info->{items_count} = $items_count; |
294 |
$hold_info->{items_count} = $items_count; |
291 |
|
295 |
|
292 |
# patrons with holds |
296 |
# patrons with holds |
293 |
$hold_info->{patrons_count} = $patrons_count->{$bibnum}; |
297 |
$hold_info->{patrons_count} = $patrons_count->{$bibnum}; |
294 |
|
298 |
|
295 |
my $pull_count = $items_count <= $patrons_count->{$bibnum} ? $items_count : $patrons_count->{$bibnum}; |
299 |
# number of items to pull |
296 |
if ( $pull_count == 0 ) { |
|
|
297 |
next; |
298 |
} |
299 |
$hold_info->{pull_count} = $pull_count; |
300 |
$hold_info->{pull_count} = $pull_count; |
300 |
|
301 |
|
301 |
# get other relevant information |
302 |
# get other relevant information |
302 |
- |
|
|