From 8b9171e8fff5b9fb98e3a6628154ca859ae02733 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 16 Jun 2015 19:05:10 -0400 Subject: [PATCH] Bug 14404 - Checkouts default sort order for Self Checkout (SCO) confusing for patrons Libraries are reporting that patrons are very confused during self-checkout. The problem is they are expecting the list of checkouts to be in the order they checked out the items ( first checkout on the bottom, last item checked out on top ). However, the checkouts table is sorted by title ( ascending ) then due date ( descending ). This is not intuitive. Test Plan: 1) Enable Koha's self checkout 2) Use the SCO to check out a random assortment of items, make sure you don't check them out in alphabetical order 3) Note the order of the items in the list is not based on the order you checked them out in 4) Apply this patch 5) Refresh the page 6) Note the items are now in the order you checked them out with the last on top and the first on bottom Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 4443904..d4dc7b7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -214,11 +214,21 @@ Checkouts for [% borrowername %] ([% issues_count %] total) - TitleCall no.DueRenew[% UNLESS ( nofines ) %]Fines[% END %] + + Checked out on + Title + Call no. + Due + Renew + [% UNLESS ( nofines ) %] + Fines + [% END %] + [% FOREACH ISSUE IN ISSUES %] + [% ISSUE.issuedate %] [% UNLESS ( noitemlinks ) %] [% ISSUE.title |html %] @@ -348,9 +358,10 @@ dofocus(); [% IF ( patronid ) %]sco_init();[% END %] $("#loanTable").dataTable($.extend(true, {}, dataTablesDefaults, { - "aaSorting": [ [2, "desc"], [0, "asc"] ], + "aaSorting": [ 0 ], "aoColumnDefs": [ - { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false }, + { "aTargets": [ "nosort" ], "bSortable": false, "bSearchable": false }, + { "aTargets": [ "no-show" ], "bVisible": false, "bSearchable": false }, { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, { "sType": "title-string", "aTargets" : [ "title-string" ] } ] -- 2.1.0