Lines 1-10
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
|
|
3 |
[% USE ColumnsSettings %] |
3 |
[% PROCESS 'i18n.inc' %] |
4 |
[% PROCESS 'i18n.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Koha › Administration › Search engine configuration</title> |
6 |
<title>Koha › Administration › Search engine configuration</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'datatables.inc' %] |
8 |
[% INCLUDE 'datatables.inc' %] |
|
|
9 |
[% INCLUDE 'columns_settings.inc' %] |
8 |
[% Asset.js("lib/jquery/plugins/jquery.tablednd.js") | $raw %] |
10 |
[% Asset.js("lib/jquery/plugins/jquery.tablednd.js") | $raw %] |
9 |
[% Asset.css("css/datatables.css") | $raw %] |
11 |
[% Asset.css("css/datatables.css") | $raw %] |
10 |
<script> |
12 |
<script> |
Lines 66-92
Link Here
|
66 |
} |
68 |
} |
67 |
|
69 |
|
68 |
$(document).ready(function() { |
70 |
$(document).ready(function() { |
|
|
71 |
let columns_settings_search_fields = [% ColumnsSettings.GetColumns('admin', 'mappings', 'search-field-table', 'json') | $raw %]; |
72 |
let columns_settings_biblios = [% ColumnsSettings.GetColumns('admin', 'mappings', 'bilios-table', 'json') | $raw %]; |
73 |
let columns_settings_authorities = [% ColumnsSettings.GetColumns('admin', 'mappings', 'auth-table', 'json') | $raw %]; |
69 |
$("#tabs").tabs(); |
74 |
$("#tabs").tabs(); |
70 |
searchfieldst = $('#search-fieldst').dataTable($.extend(true, {}, dataTablesDefaults, { |
75 |
searchfieldst = KohaTable("search-fieldst", { |
71 |
"aoColumnDefs": [ |
76 |
"aoColumnDefs": [ |
72 |
{ "sType": "string", "aTargets": [ "string-sort" ] } |
77 |
{ "sType": "string", "aTargets": [ "string-sort" ] } |
73 |
], |
78 |
], |
74 |
"sPaginationType": "full_numbers", |
79 |
"sPaginationType": "full_numbers", |
75 |
})); |
80 |
}, columns_settings_search_fields); |
76 |
|
81 |
|
77 |
bibliost = $('#bibliost').dataTable($.extend(true, {}, dataTablesDefaults, { |
82 |
bibliost = KohaTable("bibliost", { |
78 |
"aoColumnDefs": [ |
83 |
"aoColumnDefs": [ |
79 |
{ "sType": "string", "aTargets": [ "string-sort" ] } |
84 |
{ "sType": "string", "aTargets": [ "string-sort" ] } |
80 |
], |
85 |
], |
81 |
"sPaginationType": "full_numbers", |
86 |
"sPaginationType": "full_numbers", |
82 |
})); |
87 |
}, columns_settings_biblios); |
83 |
|
88 |
|
84 |
authoritiest = $('#authoritiest').dataTable($.extend(true, {}, dataTablesDefaults, { |
89 |
authoritiest = KohaTable("authoritiest" ,{ |
85 |
"aoColumnDefs": [ |
90 |
"aoColumnDefs": [ |
86 |
{ "sType": "string", "aTargets": [ "string-sort" ] } |
91 |
{ "sType": "string", "aTargets": [ "string-sort" ] } |
87 |
], |
92 |
], |
88 |
"sPaginationType": "full_numbers", |
93 |
"sPaginationType": "full_numbers", |
89 |
})); |
94 |
}, columns_settings_authorities); |
90 |
|
95 |
|
91 |
$('#save').click(function() { |
96 |
$('#save').click(function() { |
92 |
show_all_rows(); |
97 |
show_all_rows(); |
93 |
- |
|
|