From 422b1cc8b43fb8aee882a510e01ec25dc8243e4a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 7 Feb 2014 15:24:06 -0500 Subject: [PATCH] Bug 11717 - Use new DataTables include in member templates Bug 10649 introduced a new include file for adding DataTables-related JavaScript assets. This patch adds use of this include file to all member pages which use DataTables. Apply the patch and test the following pages to confirm that table sorting works correctly: - Patron details (members/moremember.pl) - The checkouts, relatives' checkouts, and holds tables have been modified to exclude articles when sorting of titles. - Notices (members/notices.pl) - Circulation history (members/readingrec.pl) - Statistics (members/statistics.pl) - Update child to adult patron (members/update-child.pl) - This is the page which appears in a pop-up when you update a child patron to an adult (from the "More" menu in the toolbar when viewing patron details). Signed-off-by: Aleisha Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/members/moremember.tt | 12 +++++------- koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt | 4 +--- .../intranet-tmpl/prog/en/modules/members/readingrec.tt | 6 ++---- .../intranet-tmpl/prog/en/modules/members/statistics.tt | 6 ++---- .../intranet-tmpl/prog/en/modules/members/update-child.tt | 6 ++---- 5 files changed, 12 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 9e64caa..c4705d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -9,10 +9,8 @@ [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] - - -[% INCLUDE 'datatables-strings.inc' %] - + +[% INCLUDE 'datatables.inc' %] [% INCLUDE 'timepicker.inc' %] @@ -35,14 +33,14 @@ $(document).ready(function() { { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false } ], "aoColumns": [ - { "sType": "title-string" },null,null,{ "sType": "title-string" },null,null,null,null,null,null + { "sType": "title-string" },{ "sType": "anti-the" },null,{ "sType": "title-string" },null,null,null,null,null,null ], "bPaginate": false })); $("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, { "sDom": 't', "aoColumns": [ - { "sType": "title-string" },null,null,{ "sType": "title-string" },null,null,null,null,null + { "sType": "title-string" },{ "sType": "anti-the" },null,{ "sType": "title-string" },null,null,null,null,null ], "bPaginate": false })); @@ -52,7 +50,7 @@ $(document).ready(function() { { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false } ], "aoColumns": [ - { "sType": "title-string" },null,null,null,null,null,null,null + { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null ], "bPaginate": false })); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt index f3727f7..beab40d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt @@ -3,9 +3,7 @@ Sent notices for [% INCLUDE 'patron-title.inc' %] [% INCLUDE 'doc-head-close.inc' %] - -[% INCLUDE 'datatables-strings.inc' %] - +[% INCLUDE 'datatables.inc' %] -[% INCLUDE 'datatables-strings.inc' %] - + +[% INCLUDE 'datatables.inc' %] -[% INCLUDE 'datatables-strings.inc' %] - + +[% INCLUDE 'datatables.inc' %] [% INCLUDE 'calendar.inc' %] -[% INCLUDE 'datatables-strings.inc' %] - + +[% INCLUDE 'datatables.inc' %]