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 656-669
Link Here
|
656 |
"pagingType": 'full_numbers', |
651 |
"pagingType": 'full_numbers', |
657 |
"pageLength": [% Koha.Preference('PatronsPerPage') | html %], |
652 |
"pageLength": [% Koha.Preference('PatronsPerPage') | html %], |
658 |
[% IF sticky_header %] |
653 |
[% IF sticky_header %] |
659 |
"initComplete": function(settings, json) { |
654 |
"initComplete": function(settings, json) { |
660 |
$("#[% sticky_header | html %]").show(); |
655 |
$("#[% sticky_header | html %]").show(); |
661 |
Sticky = $("#[% sticky_header | html %]"); |
656 |
}, |
662 |
Sticky.hcSticky({ |
|
|
663 |
stickTo: "#[% sticky_to | html %]", |
664 |
stickyClass: "floating" |
665 |
}); |
666 |
}, |
667 |
[% END %] |
657 |
[% END %] |
668 |
fixedHeader: false, |
658 |
fixedHeader: false, |
669 |
}, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters); |
659 |
}, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters); |