|
Lines 458-472
sub TooMany {
Link Here
|
| 458 |
$count_query .= " AND borrowernumber = ? "; |
458 |
$count_query .= " AND borrowernumber = ? "; |
| 459 |
push @bind_params, $borrower->{'borrowernumber'}; |
459 |
push @bind_params, $borrower->{'borrowernumber'}; |
| 460 |
my $rule_branch = $maxissueqty_rule->branchcode; |
460 |
my $rule_branch = $maxissueqty_rule->branchcode; |
| 461 |
unless ($rule_branch) { |
461 |
if ($rule_branch) { |
| 462 |
if (C4::Context->preference('CircControl') eq 'PickupLibrary') { |
462 |
if (C4::Context->preference('CircControl') eq 'PickupLibrary') { |
| 463 |
$count_query .= " AND issues.branchcode = ? "; |
463 |
$count_query .= " AND issues.branchcode = ? "; |
| 464 |
push @bind_params, $branch; |
464 |
push @bind_params, $rule_branch; |
| 465 |
} elsif (C4::Context->preference('CircControl') eq 'PatronLibrary') { |
465 |
} elsif (C4::Context->preference('CircControl') eq 'PatronLibrary') { |
| 466 |
; # if branch is the patron's home branch, then count all loans by patron |
466 |
; # if branch is the patron's home branch, then count all loans by patron |
| 467 |
} else { |
467 |
} else { |
| 468 |
$count_query .= " AND items.homebranch = ? "; |
468 |
$count_query .= " AND items.homebranch = ? "; |
| 469 |
push @bind_params, $branch; |
469 |
push @bind_params, $rule_branch; |
| 470 |
} |
470 |
} |
| 471 |
} |
471 |
} |
| 472 |
|
472 |
|
| 473 |
- |
|
|