Lines 495-510
foreach my $biblioNum (@biblionumbers) {
Link Here
|
495 |
$biblioLoopIter{force_hold} = 1 if $opac_hold_policy eq 'F'; |
495 |
$biblioLoopIter{force_hold} = 1 if $opac_hold_policy eq 'F'; |
496 |
} |
496 |
} |
497 |
$numCopiesAvailable++; |
497 |
$numCopiesAvailable++; |
|
|
498 |
} |
498 |
|
499 |
|
499 |
unless ($can_place_hold_if_available_at_pickup) { |
500 |
unless ($can_place_hold_if_available_at_pickup) { |
500 |
my $items_in_this_library = Koha::Items->search( |
501 |
my $items_in_this_library = Koha::Items->search( |
501 |
{ biblionumber => $item->biblionumber, holdingbranch => $item->holdingbranch, notforloan => 0 } ); |
502 |
{ biblionumber => $item->biblionumber, holdingbranch => $item->holdingbranch, notforloan => 0 } ); |
502 |
my $nb_of_items_issued = |
503 |
my $nb_of_items_issued = |
503 |
$items_in_this_library->search( { 'issue.itemnumber' => { not => undef } }, { join => 'issue' } ) |
504 |
$items_in_this_library->search( { 'issue.itemnumber' => { not => undef } }, { join => 'issue' } ) |
504 |
->count; |
505 |
->count; |
505 |
if ( $items_in_this_library->count > $nb_of_items_issued ) { |
506 |
if ( $items_in_this_library->count > $nb_of_items_issued ) { |
506 |
push @not_available_at, $item->holdingbranch; |
507 |
push @not_available_at, $item->holdingbranch; |
507 |
} |
|
|
508 |
} |
508 |
} |
509 |
} |
509 |
} |
510 |
|
510 |
|
511 |
- |
|
|