Lines 27-33
use JSON;
Link Here
|
27 |
use C4::Context; |
27 |
use C4::Context; |
28 |
use C4::Stats qw( UpdateStats ); |
28 |
use C4::Stats qw( UpdateStats ); |
29 |
use C4::Reserves |
29 |
use C4::Reserves |
30 |
qw( CheckReserves CanItemBeReserved MoveReserve ModReserve ModReserveMinusPriority RevertWaitingStatus IsItemOnHoldAndFound IsAvailableForItemLevelRequest ); |
30 |
qw( CheckReserves CanItemBeReserved MoveReserve ModReserve ModReserveMinusPriority RevertWaitingStatus IsAvailableForItemLevelRequest ); |
31 |
use C4::Biblio qw( UpdateTotalIssues ); |
31 |
use C4::Biblio qw( UpdateTotalIssues ); |
32 |
use C4::Items qw( ModItemTransfer ModDateLastSeen CartToShelf ); |
32 |
use C4::Items qw( ModItemTransfer ModDateLastSeen CartToShelf ); |
33 |
use C4::Accounts; |
33 |
use C4::Accounts; |
Lines 3346-3352
sub CanBookBeRenewed {
Link Here
|
3346 |
|
3346 |
|
3347 |
foreach my $other_item (@other_items) { |
3347 |
foreach my $other_item (@other_items) { |
3348 |
next if defined $matched_items{ $other_item->itemnumber }; |
3348 |
next if defined $matched_items{ $other_item->itemnumber }; |
3349 |
next if IsItemOnHoldAndFound( $other_item->itemnumber ); |
3349 |
next if $other_item->holds->filter_by_found->count; |
3350 |
next unless IsAvailableForItemLevelRequest( $other_item, $patron_with_reserve, undef ); |
3350 |
next unless IsAvailableForItemLevelRequest( $other_item, $patron_with_reserve, undef ); |
3351 |
next |
3351 |
next |
3352 |
unless CanItemBeReserved( |
3352 |
unless CanItemBeReserved( |
3353 |
- |
|
|