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); |