|
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 3351-3357
sub CanBookBeRenewed {
Link Here
|
| 3351 |
|
3351 |
|
| 3352 |
foreach my $other_item (@other_items) { |
3352 |
foreach my $other_item (@other_items) { |
| 3353 |
next if defined $matched_items{ $other_item->itemnumber }; |
3353 |
next if defined $matched_items{ $other_item->itemnumber }; |
| 3354 |
next if IsItemOnHoldAndFound( $other_item->itemnumber ); |
3354 |
next if $other_item->holds->filter_by_found->count; |
| 3355 |
next unless IsAvailableForItemLevelRequest( $other_item, $patron_with_reserve, undef ); |
3355 |
next unless IsAvailableForItemLevelRequest( $other_item, $patron_with_reserve, undef ); |
| 3356 |
next |
3356 |
next |
| 3357 |
unless CanItemBeReserved( |
3357 |
unless CanItemBeReserved( |
| 3358 |
- |
|
|