Lines 505-510
if ( $params->{'multibranchlimit'} || ( $branch_group_limit && $branch_group_lim
Link Here
|
505 |
} |
505 |
} |
506 |
} |
506 |
} |
507 |
|
507 |
|
|
|
508 |
for ( my $i=0; $i<@limits; $i++ ) { |
509 |
if ( $limits[$i] =~ /^branch:/ ) { |
510 |
my $branchfield = C4::Context->preference('SearchLimitLibrary'); |
511 |
if ( $branchfield eq "homebranch" ) { |
512 |
$limits[$i] =~ s/branch/homebranch/; |
513 |
} |
514 |
elsif ( $branchfield eq "holdingbranch" ) { |
515 |
$limits[$i] =~ s/branch/holdingbranch/; |
516 |
} |
517 |
else { |
518 |
my $homebranchlimit = $limits[$i]; |
519 |
my $holdingbranchlimit = $limits[$i]; |
520 |
$homebranchlimit =~ s/branch/homebranch/; |
521 |
$holdingbranchlimit =~ s/branch/holdingbranch/; |
522 |
$limits[$i] = "$homebranchlimit or $holdingbranchlimit"; |
523 |
} |
524 |
} |
525 |
} |
526 |
|
508 |
my $available; |
527 |
my $available; |
509 |
foreach my $limit(@limits) { |
528 |
foreach my $limit(@limits) { |
510 |
if ($limit =~/available/) { |
529 |
if ($limit =~/available/) { |
511 |
- |
|
|