View | Details | Raw Unified | Return to bug 21911
Collapse All | Expand All

(-)a/C4/Auth.pm (-2 / +2 lines)
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.
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-2 / +5 lines)
Lines 246-252 Link Here
246
                                [% ELSE %]
246
                                [% ELSE %]
247
                                    [% IF ( opac_limit_override ) %]
247
                                    [% IF ( opac_limit_override ) %]
248
                                        [% IF ( opac_search_limit ) %]
248
                                        [% IF ( opac_search_limit ) %]
249
                                            <input name="limit" value="[% opac_search_limit | html %]" type="hidden" />
249
                                            [% IF ( multibranchlimit = opac_search_limit.match( 'branch:(multibranchlimit-\d+)' ) ) %]
250
                                                <input name="branch_group_limit" value="[% multibranchlimit.0 | html %]" type="hidden" />
251
                                            [% ELSE %]
252
                                                <input name="limit" value="[% opac_search_limit | html %]" type="hidden" />
253
                                            [% END %]
250
                                        [% END %]
254
                                        [% END %]
251
                                    [% ELSE %]
255
                                    [% ELSE %]
252
                                        [% IF ( mylibraryfirst ) %]
256
                                        [% IF ( mylibraryfirst ) %]
253
- 

Return to bug 21911