cannot_be_toggled: 1
cannot_be_modified: 1
+ libraries:
+ libraries:
+ -
+ columnname: library_name
+ -
+ columnname: library_code
+ -
+ columnname: library_address
+ -
+ columnname: marc_organization_code
+ -
+ columnname: library_ip
+ -
+ columnname: is_pickup_location
+ -
+ columnname: actions
+ cannot_be_toggled: 1
+ cannot_be_modified: 1
+
catalogue:
detail:
[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
+[% USE ColumnsSettings %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Libraries
[% IF op == 'add_form' %]
[% IF op == 'list' %]
<h3>Libraries</h3>
[% IF libraries.count %]
- <table id="branchest">
+ <table id="libraries">
<thead>
<tr>
<th>Name</th>
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/admin-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
+ [% INCLUDE 'columns_settings.inc' %]
[% Asset.js("lib/tiny_mce/tiny_mce.js") | $raw %]
<script>
+ var columns_settings = [% ColumnsSettings.GetColumns( 'admin', 'libraries', 'libraries', 'json' ) | $raw %];
$(document).ready(function() {
- $("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, {
+ KohaTable("libraries", {
"aoColumnDefs": [
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
],
- "iDisplayLength": 10,
- "sPaginationType": "four_button"
- }));
+ "sPaginationType": "four_button",
+ "exportColumns": [0,1,2,3,4,5]
+ }, columns_settings);
[% UNLESS library %]
$("#Aform").on("submit", function( event ) {