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

(-)a/admin/columns_settings.yml (+21 lines)
Lines 297-302 modules: Link Here
297
        -
297
        -
298
          columnname: stocknumber
298
          columnname: stocknumber
299
299
300
    z3950_search:
301
      resultst:
302
        -
303
          columnname: server
304
        -
305
          columnname: title
306
        -
307
          columnname: author
308
        -
309
          columnname: date
310
        -
311
          columnname: edition
312
        -
313
          columnname: isbn
314
        -
315
          columnname: lccn
316
        -
317
          columnname: actions
318
          cannot_be_toggled: 1
319
          cannot_be_modified: 1
320
300
  coursereserves:
321
  coursereserves:
301
    courses:
322
    courses:
302
      course_reserves_table:
323
      course_reserves_table:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt (-7 / +12 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% USE Koha %]
4
[% USE Koha %]
5
[% USE ColumnsSettings %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Z39.50/SRU search results</title>
7
<title>Koha &rsaquo; Z39.50/SRU search results</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
Lines 204-210 Link Here
204
                            [% IF ( show_prevbutton ) %]
205
                            [% IF ( show_prevbutton ) %]
205
                                <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" />
206
                                <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" />
206
                            [% END %]
207
                            [% END %]
207
                            Page [% current_page | html %] / [% total_pages | html %]
208
                            <span id="result_pagenumbers">Showing page [% current_page | html %] of [% total_pages | html %]</span>
208
                            [% IF ( show_nextbutton ) %]
209
                            [% IF ( show_nextbutton ) %]
209
                                <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
210
                                <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
210
                            [% END %]
211
                            [% END %]
Lines 234-239 Link Here
234
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
235
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
235
    [% Asset.js("js/z3950_search.js") | $raw %]
236
    [% Asset.js("js/z3950_search.js") | $raw %]
236
    [% INCLUDE 'datatables.inc' %]
237
    [% INCLUDE 'datatables.inc' %]
238
    [% INCLUDE 'columns_settings.inc' %]
237
    <script>
239
    <script>
238
        $(document).ready(function(){
240
        $(document).ready(function(){
239
241
Lines 248-262 Link Here
248
                });
250
                });
249
            });
251
            });
250
252
251
            $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
253
            var columns_settings = [% ColumnsSettings.GetColumns( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
252
                "sDom": 't',
254
            KohaTable("resultst", {
253
                "aoColumnDefs": [
255
                "aoColumnDefs": [
254
                    { "aTargets": [ -1,-2,-3 ], "bSortable": false, "bSearchable": false },
256
                    { "targets": [ "NoSort" ],"sortable": false,"searchable": false },
255
                    { "aTargets": [ 1 ], "sType": "nsb-nse" },
257
                    { "aTargets": [ 1 ], "sType": "nsb-nse" },
256
                ],
258
                ],
257
                "aaSorting": [[ 1, "asc" ]],
259
                "aaSorting": [[ 1, "asc" ]],
258
                "bPaginate": false
260
                "bPaginate": false,
259
            }));
261
                "initComplete": function(){
262
                    $(".dataTables_info").text( $("#result_pagenumbers").text() );
263
                    $("#result_pagenumbers").hide();
264
                }
265
            }, columns_settings );
260
266
261
            /* Display actions menu anywhere the table is clicked */
267
            /* Display actions menu anywhere the table is clicked */
262
            $("td").click(function(event){
268
            $("td").click(function(event){
263
- 

Return to bug 23307