From 6df7652ac8a1492b45cd6573ad56a4ef00e727d0 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Thu, 21 Feb 2013 15:55:11 +0100 Subject: [PATCH] Bug 9685: Allow sort baskets by number In acqui/booksellers.pl, first column of baskets tables is "name (#number)". This allows to sort by name but not by numnber. This patch splits acutal first column into 2 columns number and name to allow sorting on number. Sets default sort on name like existing. Test plan: Look at page and use sorting on name and number columns. Signed-off-by: Marc Sabin Signed-off-by: Katrin Fischer Nice change for better usability. Sorting of both columns works nicely. Signed-off-by: Jared Camins-Esakov --- .../intranet-tmpl/prog/en/modules/acqui/booksellers.tt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt index b0e4549a32..acfa3118a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt @@ -21,6 +21,7 @@ $(document).ready(function() { 'bPaginate': false, 'bFilter': false, 'bInfo': false, + "aaSorting": [[ 1, "asc" ]], 'aoColumnDefs': [ { 'aTargets': [-1], 'bSortable': false } ] @@ -85,7 +86,8 @@ $(document).ready(function() { - + + @@ -101,7 +103,8 @@ $(document).ready(function() { [% ELSE %] [% END %] - + + -- 2.39.5
Basket (#)N°Name Item count Biblio count Items expected
[% basket.basketname %] (#[% basket.basketno %])[% basket.basketno %][% basket.basketname %] [% basket.total_items %] [% basket.total_biblios %] [% basket.expected_items %]