Lines 2016-2025
sub AddReturn {
Link Here
|
2016 |
} |
2016 |
} |
2017 |
|
2017 |
|
2018 |
# find reserves..... |
2018 |
# find reserves..... |
2019 |
# if we don't have a reserve with the status W, we launch the Checkreserves routine |
2019 |
# launch the Checkreserves routine to find any holds |
2020 |
my ($resfound, $resrec); |
2020 |
my ($resfound, $resrec); |
2021 |
my $lookahead= C4::Context->preference('ConfirmFutureHolds'); #number of days to look for future holds |
2021 |
my $lookahead= C4::Context->preference('ConfirmFutureHolds'); #number of days to look for future holds |
2022 |
($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->{'itemnumber'}, undef, $lookahead ) unless ( $item->{'withdrawn'} ); |
2022 |
($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->{'itemnumber'}, undef, $lookahead ) unless ( $item->{'withdrawn'} ); |
|
|
2023 |
# if a hold is found and is waiting at another branch, change the priority back to 1 and trigger the hold (this will trigger a transfer and update the hold status properly) |
2024 |
if ( $resfound eq "Waiting" and $branch ne $resrec->{branchcode} ) { |
2025 |
ModReserve( { rank => 1, reserve_id => $resrec->{reserve_id}, branchcode => $resrec->{branchcode} } ); |
2026 |
($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->{'itemnumber'}, undef, $lookahead ) unless ( $item->{'withdrawn'} ); |
2027 |
} |
2023 |
if ($resfound) { |
2028 |
if ($resfound) { |
2024 |
$resrec->{'ResFound'} = $resfound; |
2029 |
$resrec->{'ResFound'} = $resfound; |
2025 |
$messages->{'ResFound'} = $resrec; |
2030 |
$messages->{'ResFound'} = $resrec; |
2026 |
- |
|
|