Lines 2800-2805
sub CanBookBeRenewed {
Link Here
|
2800 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_much_oweing'; |
2800 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_much_oweing'; |
2801 |
} |
2801 |
} |
2802 |
|
2802 |
|
|
|
2803 |
return ( 0, $auto_renew ) if $auto_renew =~ 'too_soon' && $cron;#$auto_renew ne "no" && $auto_renew ne "ok"; |
2804 |
|
2803 |
my ( $resfound, $resrec, $possible_reserves ) = C4::Reserves::CheckReserves($itemnumber); |
2805 |
my ( $resfound, $resrec, $possible_reserves ) = C4::Reserves::CheckReserves($itemnumber); |
2804 |
|
2806 |
|
2805 |
# If next hold is non priority, then check if any hold with priority (non_priority = 0) exists for the same biblionumber. |
2807 |
# If next hold is non priority, then check if any hold with priority (non_priority = 0) exists for the same biblionumber. |
Lines 2858-2867
sub CanBookBeRenewed {
Link Here
|
2858 |
} |
2860 |
} |
2859 |
} |
2861 |
} |
2860 |
} |
2862 |
} |
2861 |
if( $cron ) { #The cron wants to return 'too_soon' over 'on_reserve' |
2863 |
|
2862 |
return ( 0, $auto_renew ) if $auto_renew =~ 'too_soon';#$auto_renew ne "no" && $auto_renew ne "ok"; |
2864 |
return ( 0, "on_reserve" ) if $resfound && $cron; # '' when no hold was found |
2863 |
return ( 0, "on_reserve" ) if $resfound; # '' when no hold was found |
2865 |
|
2864 |
} else { # For other purposes we want 'on_reserve' before 'too_soon' |
2866 |
unless ( $cron ) { # For other purposes we want 'on_reserve' before 'too_soon' |
2865 |
return ( 0, "on_reserve" ) if $resfound; # '' when no hold was found |
2867 |
return ( 0, "on_reserve" ) if $resfound; # '' when no hold was found |
2866 |
return ( 0, $auto_renew ) if $auto_renew =~ 'too_soon';#$auto_renew ne "no" && $auto_renew ne "ok"; |
2868 |
return ( 0, $auto_renew ) if $auto_renew =~ 'too_soon';#$auto_renew ne "no" && $auto_renew ne "ok"; |
2867 |
} |
2869 |
} |
2868 |
- |
|
|