Kyle M Hall
5254441c14
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>
29 lines
1.3 KiB
PHP
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") %]
|