From 91284c5ee3749ee35014e7c173357e0ed35f2f2c 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 n° columns. --- koha-tmpl/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 4077b5d..a13d248 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 } ] @@ -87,7 +88,8 @@ $(document).ready(function() { - + + @@ -103,7 +105,8 @@ $(document).ready(function() { [% ELSE %] [% END %] - + + -- 1.7.10.4
Basket (#)Name Item count Biblio count Items expected
[% basket.basketname %] (#[% basket.basketno %])[% basket.basketno %][% basket.basketname %] [% basket.total_items %] [% basket.total_biblios %] [% basket.expected_items %]