From 6d43393873f84a3efb5c3898bcce19f132496a66 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 7 Feb 2014 12:09:08 -0500 Subject: [PATCH] Bug 11713 - Use new DataTables include in course reserves templates Content-Type: text/plain; charset="utf-8" This patch modifies two course reserves templates to use the new DataTables include. This simplifies the inclusion of assets and updates to the latest DataTables version. Also included: - Adds a sorting filter on the course reserves detail table to excluding articles from sorting. - Corrects the logic controlling column sorting configuration so that the correct columns have sorting disabled under various combinations of item_level_itypes, CAN_user_coursereserves_delete_reserves, and CAN_user_coursereserves_delete_reserves. - Corrects the styling of toolbar buttons (buttons should have btn and btn-small classes). To test you must have UseCourseReserves enabled and have multiple existing courses, at least one of which should have items on reserve. 1. View the list of courses. Table sorting should work correctly. The "new course" button should look consistent with other staff client toolbar buttons. 2. View the list of reserves on a course. - Toolbar buttons should look consistent with other staff client toolbar buttons. - Sorting should work correctly, excluding sorting on the Edit, Remove, and "Other course reserves" columns. - Titles on reserve which begin with an article should be sorted correctly with article excluded - Test sorting with item-level_itypes on and off. - Test sorting using a patron whose permissions include various combinations of add_reserves and delete_reserves To test, go to cataloging and choose "New from Z39.50." Perform a search and confirm that table sorting still works correctly. --- .../en/modules/course_reserves/course-details.tt | 27 ++++++++++++++------ .../en/modules/course_reserves/course-reserves.tt | 6 ++--- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index 5e69702..e062b47 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -6,9 +6,7 @@ [% INCLUDE 'doc-head-close.inc' %] - -[% INCLUDE 'datatables-strings.inc' %] - +[% INCLUDE 'datatables.inc' %] -[% INCLUDE 'datatables-strings.inc' %] - +[% INCLUDE 'datatables.inc' %]