-
columnname: actions
+ categories:
+ patron_categories:
+ -
+ columnname: code
+ -
+ columnname: category_name
+ -
+ columnname: type
+ -
+ columnname: enrollment_period
+ -
+ columnname: age_required
+ -
+ columnname: upper_age_limit
+ -
+ columnname: enrollment_fee
+ -
+ columnname: overdue
+ -
+ columnname: lost_items
+ -
+ columnname: hold_fee
+ -
+ columnname: messaging
+ -
+ columnname: branches_limitations
+ -
+ columnname: default_privacy
+ -
+ columnname: actions
+ cannot_be_toggled: 1
+ cannot_be_modified: 1
+
+
catalogue:
detail:
acquisitiondetails-table:
[% USE Koha %]
[% USE KohaDates %]
[% USE Price %]
+[% USE ColumnsSettings %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Patron categories › [% IF op == 'add_form' %][% IF ( categorycode ) %]Modify category '[% categorycode | html %]'[% ELSE %]New category[% END %][% END %]
You Searched for [% searchfield | html %]</span>
[% END %]
[% IF categories%]
- <table id="table_categorie">
+ <table id="patron_categories">
<thead>
<tr>
<th scope="col">Code</th>
[% Asset.js("js/messaging-preference-form.js") | $raw %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
+ [% INCLUDE 'columns_settings.inc' %]
<script>
var MSG_CATEGORYCODE_CHARS = _("Category code can only contain the following characters: letters, numbers, - and _.");
var MSG_ONE_ENROLLMENTPERIOD = ("Please choose an enrollment period in months OR by date.");
+ var columns_settings = [% ColumnsSettings.GetColumns( 'admin', 'categories', 'patron_categories', 'json' ) | $raw %];
</script>
[% Asset.js("js/categories.js") | $raw %]
[% END %]
$(document).ready(function() {
- $("#table_categorie").dataTable($.extend(true, {}, dataTablesDefaults, {
+ KohaTable("patron_categories", {
"aoColumnDefs": [{
"aTargets": [-1],
"bSortable": false,
"aaSorting": [
[1, "asc"]
],
- "sPaginationType": "four_button"
- }));
+ "sPaginationType": "four_button",
+ "exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12],
+ }, columns_settings);
$("#enrolmentperioddate").datepicker({
minDate: 1