[Koha-patches] [PATCH] Bug 11740 - Use new DataTables include in quotes upload template

Owen Leonard oleonard at myacpl.org
Tue Feb 11 14:44:34 CET 2014


Bug 10649 introduced a new include file for adding DataTables-related
JavaScript assets. This patch adds use of this include file to the
quotes upload page.

To test you need a CSV file of quotes to upload ( "source","text" ).
Go to Tools -> Quote editor and click the "Import quotes" button. Upload
the CSV file and confirm that the table which previews the import
results loads correctly. Sorting is not enabled, but pagination and
searching should work.
---
 .../prog/en/modules/tools/quotes-upload.tt         |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt
index 2dc4af9..49cae8e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt
@@ -2,12 +2,9 @@
     <title>Koha › Tools › Quote uploader</title>
     [% INCLUDE 'doc-head-close.inc' %]
     <link rel="stylesheet" type="text/css" href="[% themelang %]/css/uploader.css" />
-    <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
     <link rel="stylesheet" type="text/css" href="[% themelang %]/css/quotes.css" />
-    <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
-    [% INCLUDE 'datatables-strings.inc' %]
-    </script>
-    <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
+    <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+    [% INCLUDE 'datatables.inc' %]
     <script type="text/javascript" src="[% themelang %]/js/jquery.jeditable.mini.js"></script>
     <script type="text/javascript">
     //<![CDATA[
-- 
1.7.9.5


More information about the Koha-patches mailing list