Lines 533-540
sub get_template_and_user {
Link Here
|
533 |
my $opac_limit_override = $ENV{'OPAC_LIMIT_OVERRIDE'}; |
533 |
my $opac_limit_override = $ENV{'OPAC_LIMIT_OVERRIDE'}; |
534 |
my $opac_name = ''; |
534 |
my $opac_name = ''; |
535 |
if ( |
535 |
if ( |
536 |
( $opac_limit_override && $opac_search_limit && $opac_search_limit =~ /branch:(\w+)/ ) || |
536 |
( $opac_limit_override && $opac_search_limit && $opac_search_limit =~ /branch:([\w-]+)/ ) || |
537 |
( $in->{'query'}->param('limit') && $in->{'query'}->param('limit') =~ /branch:(\w+)/ ) || |
537 |
( $in->{'query'}->param('limit') && $in->{'query'}->param('limit') =~ /branch:([\w-]+)/ ) || |
538 |
( $in->{'query'}->param('multibranchlimit') && $in->{'query'}->param('multibranchlimit') =~ /multibranchlimit-(\w+)/ ) |
538 |
( $in->{'query'}->param('multibranchlimit') && $in->{'query'}->param('multibranchlimit') =~ /multibranchlimit-(\w+)/ ) |
539 |
) { |
539 |
) { |
540 |
$opac_name = $1; # opac_search_limit is a branch, so we use it. |
540 |
$opac_name = $1; # opac_search_limit is a branch, so we use it. |