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 2019-2024 li { Link Here
2019
}
2019
}
2020
2020
2021
.searchheader {
2021
.searchheader {
2022
    position: sticky;
2023
    top: 0;
2024
    z-index: 999;
2022
    background-color: #F3F4F4;
2025
    background-color: #F3F4F4;
2023
    box-shadow: 0 0 2px 1px rgba( 0, 0, 0, .2 );
2026
    box-shadow: 0 0 2px 1px rgba( 0, 0, 0, .2 );
2024
    color: #696969;
2027
    color: #696969;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-13 / +3 lines)
Lines 226-232 Link Here
226
[%# 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', 'sort1', 'sort2', 'action' %]
226
[%# 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', 'sort1', 'sort2', 'action' %]
227
[%# preview_on_name_click: Open a modal window with patron's info when the name is clicked %]
227
[%# preview_on_name_click: Open a modal window with patron's info when the name is clicked %]
228
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %]
228
[%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %]
229
[%# sticky_header and sticky_to: If we need a sticky header %]
230
[%# callback: name of the JS function that will be called when a patron is selected. Only work with action=select %]
229
[%# callback: name of the JS function that will be called when a patron is selected. Only work with action=select %]
231
[%# display_search_description: boolean, default off. Display the description of the search %]
230
[%# display_search_description: boolean, default off. Display the description of the search %]
232
[%# adjust_history: boolean, default off. Change the current url when a first letter is selected %]
231
[%# adjust_history: boolean, default off. Change the current url when a first letter is selected %]
Lines 300-308 Link Here
300
    [% INCLUDE 'js-patron-get-age.inc' %]
299
    [% INCLUDE 'js-patron-get-age.inc' %]
301
    [% INCLUDE 'js-patron-format.inc' %]
300
    [% INCLUDE 'js-patron-format.inc' %]
302
    [% INCLUDE 'js-patron-format-address.inc' %]
301
    [% INCLUDE 'js-patron-format-address.inc' %]
303
    [% IF sticky_header %]
304
        [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
305
    [% END %]
306
302
307
    <script>
303
    <script>
308
    {
304
    {
Lines 315-321 Link Here
315
        }
311
        }
316
        let first_draw = 0;
312
        let first_draw = 0;
317
        let patrons_table;
313
        let patrons_table;
318
        let Sticky;
319
        let singleBranchMode = '[% singleBranchMode | html %]';
314
        let singleBranchMode = '[% singleBranchMode | html %]';
320
        let logged_in_library_id = "[% Branches.GetLoggedInBranchcode | html %]";
315
        let logged_in_library_id = "[% Branches.GetLoggedInBranchcode | html %]";
321
        let defer_loading = Number( '[% defer_loading | html %]' || 1 );
316
        let defer_loading = Number( '[% defer_loading | html %]' || 1 );
Lines 717-730 Link Here
717
                "pagingType": 'full_numbers',
712
                "pagingType": 'full_numbers',
718
                "pageLength": [% Koha.Preference('PatronsPerPage') | html %],
713
                "pageLength": [% Koha.Preference('PatronsPerPage') | html %],
719
                [% IF sticky_header %]
714
                [% IF sticky_header %]
720
                "initComplete": function(settings, json) {
715
                    "initComplete": function(settings, json) {
721
                    $("#[% sticky_header | html %]").show();
716
                        $("#[% sticky_header | html %]").show();
722
                    Sticky = $("#[% sticky_header | html %]");
717
                    },
723
                    Sticky.hcSticky({
724
                        stickTo: "#[% sticky_to | html %]",
725
                        stickyClass: "floating"
726
                    });
727
                },
728
                [% END %]
718
                [% END %]
729
                fixedHeader: false,
719
                fixedHeader: false,
730
            }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters);
720
            }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-2 / +1 lines)
Lines 345-351 Link Here
345
    [% ELSE %]
345
    [% ELSE %]
346
        [% SET redirect_url = '/cgi-bin/koha/members/moremember.pl' %]
346
        [% SET redirect_url = '/cgi-bin/koha/members/moremember.pl' %]
347
    [% END %]
347
    [% END %]
348
    [% 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 %]
348
    [% 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 %]
349
349
350
[% END %]
350
[% END %]
351
[% INCLUDE 'intranet-bottom.inc' %]
351
[% INCLUDE 'intranet-bottom.inc' %]
352
- 

Return to bug 36694