Lines 1015-1021
sub CanBookBeIssued {
Link Here
|
1015 |
} |
1015 |
} |
1016 |
} |
1016 |
} |
1017 |
|
1017 |
|
1018 |
if (not C4::Context->preference('AllowMultipleIssuesOnABiblio')) { |
1018 |
if ( |
|
|
1019 |
!C4::Context->preference('AllowMultipleIssuesOnABiblio') && |
1020 |
# don't do the multiple loans per bib check if we've |
1021 |
# already determined that we've got a loan on the same item |
1022 |
!$issuingimpossible{NO_MORE_RENEWALS} && |
1023 |
!$needsconfirmation{RENEW_ISSUE} |
1024 |
) { |
1019 |
# Check if borrower has already issued an item from the same biblio |
1025 |
# Check if borrower has already issued an item from the same biblio |
1020 |
# Only if it's not a subscription |
1026 |
# Only if it's not a subscription |
1021 |
my $biblionumber = $item->{biblionumber}; |
1027 |
my $biblionumber = $item->{biblionumber}; |
Lines 1027-1034
sub CanBookBeIssued {
Link Here
|
1027 |
biblionumber => $biblionumber, |
1033 |
biblionumber => $biblionumber, |
1028 |
} ); |
1034 |
} ); |
1029 |
my @issues = $issues ? @$issues : (); |
1035 |
my @issues = $issues ? @$issues : (); |
1030 |
# If there is at least one issue on another item than the item we want to checkout |
1036 |
# if we get here, we don't already have a loan on this item, |
1031 |
if (scalar @issues > 0 and $issues[0]->{itemnumber} != $item->{itemnumber}) { |
1037 |
# so if there are any loans on this bib, ask for confirmation |
|
|
1038 |
if (scalar @issues > 0) { |
1032 |
$needsconfirmation{BIBLIO_ALREADY_ISSUED} = 1; |
1039 |
$needsconfirmation{BIBLIO_ALREADY_ISSUED} = 1; |
1033 |
} |
1040 |
} |
1034 |
} |
1041 |
} |
1035 |
- |
|
|