Bug 13069 - Enable sort by title to ignore articles on circulation and patron detail...
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 9 Oct 2014 15:22:29 +0000 (15:22 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 13 Apr 2015 12:54:22 +0000 (09:54 -0300)
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 <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
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 <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js

index 78d2cb7..774afd7 100644 (file)
@@ -255,7 +255,8 @@ $(document).ready(function() {
                               + onsite_checkout;
 
                         return title;
-                    }
+                    },
+                    "sType": "anti-the"
                 },
                 { "mDataProp": "itemtype_description" },
                 { "mDataProp": "issuedate_formatted" },