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

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-5 / +5 lines)
Lines 27-33 var dataTablesDefaults = { Link Here
27
            "copySuccess": {
27
            "copySuccess": {
28
                _: __('Copied %d rows to clipboard'),
28
                _: __('Copied %d rows to clipboard'),
29
                1: __('Copied one row to clipboard'),
29
                1: __('Copied one row to clipboard'),
30
            }
30
            },
31
            "print": __("Print"),
32
            "copy": __("Copy"),
33
            "csv": __("CSV"),
34
            "excel": __("Excel")
31
        }
35
        }
32
    },
36
    },
33
    "dom": '<"dt-info"i><"top pager"<"table_entries"lp><"table_controls"fB>>tr<"bottom pager"ip>',
37
    "dom": '<"dt-info"i><"top pager"<"table_entries"lp><"table_controls"fB>>tr<"bottom pager"ip>',
Lines 688-694 function _dt_buttons(params){ Link Here
688
    var export_buttons = [
692
    var export_buttons = [
689
        {
693
        {
690
            extend: 'excelHtml5',
694
            extend: 'excelHtml5',
691
            text: __("Excel"),
692
            exportOptions: {
695
            exportOptions: {
693
                columns: exportColumns,
696
                columns: exportColumns,
694
                format:  export_format
697
                format:  export_format
Lines 696-702 function _dt_buttons(params){ Link Here
696
        },
699
        },
697
        {
700
        {
698
            extend: 'csvHtml5',
701
            extend: 'csvHtml5',
699
            text: __("CSV"),
700
            exportOptions: {
702
            exportOptions: {
701
                columns: exportColumns,
703
                columns: exportColumns,
702
                format:  export_format
704
                format:  export_format
Lines 704-710 function _dt_buttons(params){ Link Here
704
        },
706
        },
705
        {
707
        {
706
            extend: 'copyHtml5',
708
            extend: 'copyHtml5',
707
            text: __("Copy"),
708
            exportOptions: {
709
            exportOptions: {
709
                columns: exportColumns,
710
                columns: exportColumns,
710
                format:  export_format
711
                format:  export_format
Lines 712-718 function _dt_buttons(params){ Link Here
712
        },
713
        },
713
        {
714
        {
714
            extend: 'print',
715
            extend: 'print',
715
            text: __("Print"),
716
            exportOptions: {
716
            exportOptions: {
717
                columns: exportColumns,
717
                columns: exportColumns,
718
                format:  export_format
718
                format:  export_format
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js (-6 / +4 lines)
Lines 29-35 var dataTablesDefaults = { Link Here
29
                _: __("Copied %d rows to clipboard"),
29
                _: __("Copied %d rows to clipboard"),
30
                1: __("Copied one row to clipboard"),
30
                1: __("Copied one row to clipboard"),
31
            },
31
            },
32
            "print": __("Print")
32
            "print": __("Print"),
33
            "copy": __("Copy"),
34
            "csv": __("CSV"),
35
            "excel": __("Excel")
33
        }
36
        }
34
    },
37
    },
35
    "dom": 't',
38
    "dom": 't',
Lines 240-246 $.fn.dataTable.ext.buttons.clearFilter = { Link Here
240
        var export_buttons = [
243
        var export_buttons = [
241
            {
244
            {
242
                extend: 'excelHtml5',
245
                extend: 'excelHtml5',
243
                text: __("Excel"),
244
                exportOptions: {
246
                exportOptions: {
245
                    columns: exportColumns,
247
                    columns: exportColumns,
246
                    format:  export_format
248
                    format:  export_format
Lines 248-254 $.fn.dataTable.ext.buttons.clearFilter = { Link Here
248
            },
250
            },
249
            {
251
            {
250
                extend: 'csvHtml5',
252
                extend: 'csvHtml5',
251
                text: __("CSV"),
252
                exportOptions: {
253
                exportOptions: {
253
                    columns: exportColumns,
254
                    columns: exportColumns,
254
                    format:  export_format
255
                    format:  export_format
Lines 256-262 $.fn.dataTable.ext.buttons.clearFilter = { Link Here
256
            },
257
            },
257
            {
258
            {
258
                extend: 'copyHtml5',
259
                extend: 'copyHtml5',
259
                text: __("Copy"),
260
                exportOptions: {
260
                exportOptions: {
261
                    columns: exportColumns,
261
                    columns: exportColumns,
262
                    format:  export_format
262
                    format:  export_format
Lines 264-270 $.fn.dataTable.ext.buttons.clearFilter = { Link Here
264
            },
264
            },
265
            {
265
            {
266
                extend: 'print',
266
                extend: 'print',
267
                text: __("Print"),
268
                exportOptions: {
267
                exportOptions: {
269
                    columns: exportColumns,
268
                    columns: exportColumns,
270
                    format:  export_format
269
                    format:  export_format
271
- 

Return to bug 37257