Lines 783-789
sub CanBookBeIssued {
Link Here
|
783 |
# |
783 |
# |
784 |
my ($current_loan_count, $max_loans_allowed) = TooMany( $borrower, $item->{biblionumber}, $item ); |
784 |
my ($current_loan_count, $max_loans_allowed) = TooMany( $borrower, $item->{biblionumber}, $item ); |
785 |
# if TooMany max_loans_allowed returns 0 the user doesn't have permission to check out this book |
785 |
# if TooMany max_loans_allowed returns 0 the user doesn't have permission to check out this book |
786 |
if ($max_loans_allowed eq 0) { |
786 |
if (defined $max_loans_allowed && $max_loans_allowed == 0) { |
787 |
$needsconfirmation{PATRON_CANT} = 1; |
787 |
$needsconfirmation{PATRON_CANT} = 1; |
788 |
} else { |
788 |
} else { |
789 |
if($max_loans_allowed){ |
789 |
if($max_loans_allowed){ |
Lines 915-925
sub CanBookBeIssued {
Link Here
|
915 |
} |
915 |
} |
916 |
|
916 |
|
917 |
## check for high holds decreasing loan period |
917 |
## check for high holds decreasing loan period |
918 |
if (C4::Context->preference("decreaseLoanHighHolds") == 1) |
918 |
my $decrease_loan = C4::Context->preference('decreaseLoanHighHolds'); |
|
|
919 |
if ($decrease_loan && $decrease_loan == 1) |
919 |
{ |
920 |
{ |
920 |
my ($reserved,$num,$duration,$returndate)=checkHighHolds($item,$borrower); |
921 |
my ($reserved,$num,$duration,$returndate)=checkHighHolds($item,$borrower); |
921 |
#print "reserved: $reserved\n".Dumper($num); |
922 |
#print "reserved: $reserved\n".Dumper($num); |
922 |
if ($num>=C4::Context->preference("decreaseLoanHighHoldsValue")) |
923 |
if ($num >= C4::Context->preference("decreaseLoanHighHoldsValue")) |
923 |
{ |
924 |
{ |
924 |
$needsconfirmation{HIGHHOLDS} = 1; |
925 |
$needsconfirmation{HIGHHOLDS} = 1; |
925 |
$needsconfirmation{'num_holds'} = $num; |
926 |
$needsconfirmation{'num_holds'} = $num; |
926 |
- |
|
|