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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+3 lines)
Lines 2059-2064 li { Link Here
2059
}
2059
}
2060
2060
2061
.searchheader {
2061
.searchheader {
2062
    position: sticky;
2063
    top: 0;
2064
    z-index: 999;
2062
    background-color: #F3F4F4;
2065
    background-color: #F3F4F4;
2063
    box-shadow: 0 0 2px 1px rgba( 0, 0, 0, .2 );
2066
    box-shadow: 0 0 2px 1px rgba( 0, 0, 0, .2 );
2064
    color: #696969;
2067
    color: #696969;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-15 lines)
Lines 212-218 Link Here
212
[%# columns: list of columns that will be displayed. Possible values are: 'checkbox', 'cardnumber', 'dateofbirth', 'address', 'name', 'name-address', 'branch', 'category', 'dateexpiry', 'borrowernotes, 'phone', 'checkouts', 'account_balance', 'action' %]
212
[%# columns: list of columns that will be displayed. Possible values are: 'checkbox', 'cardnumber', 'dateofbirth', 'address', 'name', 'name-address', 'branch', 'category', 'dateexpiry', 'borrowernotes, 'phone', 'checkouts', 'account_balance', 'action' %]
213
[%# preview_on_name_click: Open a modal window with patron's info when the name is clicked %]
213
[%# preview_on_name_click: Open a modal window with patron's info when the name is clicked %]
214
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %]
214
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %]
215
[%# sticky_header and sticky_to: If we need a sticky header %]
216
[%# callback: name of the JS function that will be called when a patron is selected. Only work with action=select %]
215
[%# callback: name of the JS function that will be called when a patron is selected. Only work with action=select %]
217
[%# display_search_description: boolean, default off. Display the description of the search %]
216
[%# display_search_description: boolean, default off. Display the description of the search %]
218
[%# adjust_history: boolean, default off. Change the current url when a first letter is selected %]
217
[%# adjust_history: boolean, default off. Change the current url when a first letter is selected %]
Lines 266-274 Link Here
266
    [% INCLUDE 'js-patron-get-age.inc' %]
265
    [% INCLUDE 'js-patron-get-age.inc' %]
267
    [% INCLUDE 'js-patron-format.inc' %]
266
    [% INCLUDE 'js-patron-format.inc' %]
268
    [% INCLUDE 'js-patron-format-address.inc' %]
267
    [% INCLUDE 'js-patron-format-address.inc' %]
269
    [% IF sticky_header %]
270
        [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
271
    [% END %]
272
268
273
    <script>
269
    <script>
274
    {
270
    {
Lines 281-287 Link Here
281
        }
277
        }
282
        let first_draw = 0;
278
        let first_draw = 0;
283
        let patrons_table;
279
        let patrons_table;
284
        let Sticky;
285
        let singleBranchMode = '[% singleBranchMode | html %]';
280
        let singleBranchMode = '[% singleBranchMode | html %]';
286
        let logged_in_library_id = "[% Branches.GetLoggedInBranchcode | html %]";
281
        let logged_in_library_id = "[% Branches.GetLoggedInBranchcode | html %]";
287
        let defer_loading = Number( '[% defer_loading | html %]' || 1 );
282
        let defer_loading = Number( '[% defer_loading | html %]' || 1 );
Lines 655-670 Link Here
655
                'lengthMenu': [aLengthMenu, aLengthMenuLabel],
650
                'lengthMenu': [aLengthMenu, aLengthMenuLabel],
656
                "pagingType": 'full_numbers',
651
                "pagingType": 'full_numbers',
657
                "pageLength": [% Koha.Preference('PatronsPerPage') | html %],
652
                "pageLength": [% Koha.Preference('PatronsPerPage') | html %],
658
                [% IF sticky_header %]
659
                "initComplete": function(settings, json) {
660
                    $("#[% sticky_header | html %]").show();
661
                    Sticky = $("#[% sticky_header | html %]");
662
                    Sticky.hcSticky({
663
                        stickTo: "#[% sticky_to | html %]",
664
                        stickyClass: "floating"
665
                    });
666
                },
667
                [% END %]
668
                fixedHeader: false,
653
                fixedHeader: false,
669
            }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters);
654
            }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters);
670
655
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-2 / +1 lines)
Lines 347-353 Link Here
347
    [% ELSE %]
347
    [% ELSE %]
348
        [% SET redirect_url = '/cgi-bin/koha/members/moremember.pl' %]
348
        [% SET redirect_url = '/cgi-bin/koha/members/moremember.pl' %]
349
    [% END %]
349
    [% END %]
350
    [% PROCESS patron_search_js defer_loading => defer_loading, table_id => 'memberresultst', categories => categories, libraries => libraries, columns => columns,actions => ['edit', 'checkout'], redirect_if_one_result => 1, redirect_url => redirect_url, sticky_header => "searchheader", sticky_to => "searchresults", default_sort_column => 'name-address', display_search_description => 1, remember_selections => 1, adjust_history => 1 %]
350
    [% PROCESS patron_search_js defer_loading => defer_loading, table_id => 'memberresultst', categories => categories, libraries => libraries, columns => columns,actions => ['edit', 'checkout'], redirect_if_one_result => 1, redirect_url => redirect_url, default_sort_column => 'name-address', display_search_description => 1, remember_selections => 1, adjust_history => 1 %]
351
351
352
[% END %]
352
[% END %]
353
[% INCLUDE 'intranet-bottom.inc' %]
353
[% INCLUDE 'intranet-bottom.inc' %]
354
- 

Return to bug 36694