Koha/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc
Kyle M Hall 5254441c14 Bug 18791: Add the ability for librarians to easily copy, download or print DataTables based tables in Koha
There are many tables in Koha where it would be useful
for librarians to easily copy, download or print the table
for various purposes. These functions are available via
DataTables button plugins.

Test Plan:
1) Clear your browser cache ( just in case )
2) Apply this patch
3) Browse to boraccount.pl ( or another page using DataTabes )
4) Note the new Excel, CSV, Copy and Print buttons
5) Test each button to ensure they work

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-13 13:55:18 -03:00

29 lines
1.3 KiB
PHP

[% USE Asset %]
[% INCLUDE 'format_price.inc' %]
[% Asset.css("css/buttons.dataTables.min.css") %]
[% Asset.js("lib/jquery/plugins/jquery.dataTables.min.js") %]
[% Asset.js("lib/jquery/plugins/dataTables.buttons.min.js") %]
[% Asset.js("lib/jquery/plugins/buttons.colVis.min.js") %]
[% Asset.js("lib/jquery/plugins/jszip.min.js") %]
[% Asset.js("lib/jquery/plugins/buttons.print.min.js") %]
[% Asset.js("lib/jquery/plugins/buttons.html5.min.js") %]
<script type="text/javascript">
//<![CDATA[
var MSG_DT_FIRST = _("First");
var MSG_DT_LAST = _("Last");
var MSG_DT_NEXT = _("Next");
var MSG_DT_PREVIOUS = _("Previous");
var MSG_DT_EMPTY_TABLE = _("No data available in table");
var MSG_DT_INFO = _("Showing _START_ to _END_ of _TOTAL_");
var MSG_DT_INFO_EMPTY = _("No entries to show");
var MSG_DT_INFO_FILTERED = _("(filtered from _MAX_ total entries)");
var MSG_DT_LENGTH_MENU = _("Show _MENU_ entries");
var MSG_DT_LOADING_RECORDS = _("Loading...");
var MSG_DT_PROCESSING = _("Processing...");
var MSG_DT_SEARCH = _("Search:");
var MSG_DT_ZERO_RECORDS = _("No matching records found");
var MSG_DT_ALL = _("All");
var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
//]]>
</script>
[% Asset.js("js/datatables.js") %]