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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-2 / +3 lines)
Lines 249-254 Link Here
249
        var Sticky;
249
        var Sticky;
250
        var singleBranchMode = '[% singleBranchMode | html %]';
250
        var singleBranchMode = '[% singleBranchMode | html %]';
251
        let logged_in_library_id = "[% Branches.GetLoggedInBranchcode | html %]";
251
        let logged_in_library_id = "[% Branches.GetLoggedInBranchcode | html %]";
252
        let defer_loading = [% defer_loading ? 1 : 0 %];
252
253
253
        /* popstate event triggered by forward and back button. Need to refresh search */
254
        /* popstate event triggered by forward and back button. Need to refresh search */
254
        window.addEventListener('popstate', (event) => {
255
        window.addEventListener('popstate', (event) => {
Lines 368-374 Link Here
368
                    [% END %]
369
                    [% END %]
369
                },
370
                },
370
                [% END %]
371
                [% END %]
371
                "iDeferLoading": 0,
372
                "iDeferLoading": defer_loading,
372
                "columns": [
373
                "columns": [
373
                    [% FOR column IN columns %]
374
                    [% FOR column IN columns %]
374
                        [% IF default_sort_column == column %]
375
                        [% IF default_sort_column == column %]
Lines 665-671 Link Here
665
                $("#searchpattern").parent().hide();
666
                $("#searchpattern").parent().hide();
666
            });
667
            });
667
668
668
            if ( $("#search_patron_filter").val().length > 0 ) {
669
            if ( !defer_loading && $("#search_patron_filter").val().length > 0 ) {
669
                $("#patron_search_form").submit();
670
                $("#patron_search_form").submit();
670
            }
671
            }
671
672
(-)a/members/member.pl (-2 / +2 lines)
Lines 68-74 my $searchfieldstype = $input->param('searchfieldstype') || 'standard'; Link Here
68
68
69
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
69
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
70
70
71
my $view = $input->request_method() eq "GET"  && !$circsearch ? "show_form" : "show_results";
71
my $defer_loading = $input->request_method() eq "GET"  && !$circsearch ? 1 : 0;
72
72
73
$template->param(
73
$template->param(
74
    patron_lists => [ GetPatronLists() ],
74
    patron_lists => [ GetPatronLists() ],
Lines 78-84 $template->param( Link Here
78
    searchtype          => scalar $input->param('searchtype') || 'contain',
78
    searchtype          => scalar $input->param('searchtype') || 'contain',
79
    searchfieldstype    => $searchfieldstype,
79
    searchfieldstype    => $searchfieldstype,
80
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
80
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
81
    view                => $view,
81
    defer_loading       => $defer_loading,
82
    circsearch          => $circsearch,
82
    circsearch          => $circsearch,
83
    attribute_type_codes => ( C4::Context->preference('ExtendedPatronAttributes')
83
    attribute_type_codes => ( C4::Context->preference('ExtendedPatronAttributes')
84
        ? [ Koha::Patron::Attribute::Types->search( { staff_searchable => 1 } )->get_column('code') ]
84
        ? [ Koha::Patron::Attribute::Types->search( { staff_searchable => 1 } )->get_column('code') ]
(-)a/members/members-home.pl (-1 / +1 lines)
Lines 76-81 $template->param( Link Here
76
    attribute_type_codes => ( C4::Context->preference('ExtendedPatronAttributes')
76
    attribute_type_codes => ( C4::Context->preference('ExtendedPatronAttributes')
77
        ? [ Koha::Patron::Attribute::Types->search( { staff_searchable => 1 } )->get_column('code') ]
77
        ? [ Koha::Patron::Attribute::Types->search( { staff_searchable => 1 } )->get_column('code') ]
78
        : [] ),
78
        : [] ),
79
    defer_loading => 1,
79
);
80
);
80
81
81
output_html_with_http_headers $query, $cookie, $template->output;
82
output_html_with_http_headers $query, $cookie, $template->output;
82
- 

Return to bug 30063