From 9b44647509e4d08029760bae25703b049a4bda30 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 9 Oct 2014 15:22:29 +0000 Subject: [PATCH] Bug 13069 - Enable sort by title to ignore articles on circulation and patron detail pages With the conversion of the circulation and patron detail checkout summary tables to AJAX recently we lost the ability to sort by title while ignoring articles. This patch corrects the problem by adding the "anti-the" configuration to the relevant column in the DataTables initializtion script. To test, apply the patch and clear your cache if necessary. Check out to a patron who has multiple checkouts, some of which have titles beginning with "a," "an," and "the." Sorting those checkouts by title should ignore articles. Test the patron detail page for that patron as well. Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart NOTE: This is the one early in the javascript file. This is the one visible by having multiple checkouts where the title excluding the articles is a different order than titles including the articles. Patrons -> Details (scroll down to check out area, view checkouts and toggle the title sort) Signed-off-by: Mark Tompsett Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index 78d2cb74a2..774afd71a1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -255,7 +255,8 @@ $(document).ready(function() { + onsite_checkout; return title; - } + }, + "sType": "anti-the" }, { "mDataProp": "itemtype_description" }, { "mDataProp": "issuedate_formatted" }, -- 2.39.5