View | Details | Raw Unified | Return to bug 22639
Collapse All | Expand All

(-)a/admin/columns_settings.yml (+34 lines)
Lines 176-181 modules: Link Here
176
          cannot_be_toggled: 1
176
          cannot_be_toggled: 1
177
          cannot_be_modified: 1
177
          cannot_be_modified: 1
178
178
179
    mappings:
180
      search-field-table:
181
        -
182
          columnname: names
183
        -
184
          columnname: label
185
        -
186
          columnname: type
187
        -
188
          columnname: weight
189
190
      bilios-table:
191
        -
192
          columnname: search_field
193
        -
194
          columnname: sortable
195
        -
196
          columnname: facetable
197
        -
198
          columnname: suggestible
199
        -
200
          columnname: mapping
201
202
      auth-table:
203
        -
204
          columnname: search_field
205
        -
206
          columnname: sortable
207
        -
208
          columnname: facetable
209
        -
210
          columnname: suggestible
211
        -
212
          columnname: mapping
179
213
180
  catalogue:
214
  catalogue:
181
    detail:
215
    detail:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-7 / +11 lines)
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 &rsaquo; Administration &rsaquo; Search engine configuration</title>
6
<title>Koha &rsaquo; Administration &rsaquo; 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
- 

Return to bug 22639