Lines 371-377
sub get_template_and_user {
Link Here
|
371 |
my $opac_search_limit = $ENV{'OPAC_SEARCH_LIMIT'}; |
371 |
my $opac_search_limit = $ENV{'OPAC_SEARCH_LIMIT'}; |
372 |
my $opac_limit_override = $ENV{'OPAC_LIMIT_OVERRIDE'}; |
372 |
my $opac_limit_override = $ENV{'OPAC_LIMIT_OVERRIDE'}; |
373 |
my $opac_name = ''; |
373 |
my $opac_name = ''; |
374 |
if (($opac_search_limit && $opac_search_limit =~ /branch:(\w+)/ && $opac_limit_override) || ($in->{'query'}->param('limit') && $in->{'query'}->param('limit') =~ /branch:(\w+)/)){ |
374 |
if (($opac_search_limit && $opac_search_limit =~ /branch:(\w+)/ && $opac_limit_override) || ($in->{'query'}->param('limit') && $in->{'query'}->param('limit') =~ /branch:(\w+)/) || ($in->{'query'}->param('multibranchlimit') && $in->{'query'}->param('multibranchlimit') =~ /multibranchlimit-(\w+)/)){ |
375 |
$opac_name = $1; # opac_search_limit is a branch, so we use it. |
375 |
$opac_name = $1; # opac_search_limit is a branch, so we use it. |
376 |
} elsif ( $in->{'query'}->param('multibranchlimit') ) { |
376 |
} elsif ( $in->{'query'}->param('multibranchlimit') ) { |
377 |
$opac_name = $in->{'query'}->param('multibranchlimit'); |
377 |
$opac_name = $in->{'query'}->param('multibranchlimit'); |
378 |
- |
|
|