]> git.koha-community.org Git - koha.git/commit
Bug 27807: Add multi-column ordering support to datatables wrapper
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 2 Mar 2021 10:36:06 +0000 (10:36 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 13 Apr 2021 14:48:54 +0000 (16:48 +0200)
commit2bbff47bcac044236a2b8c8bcf8b35b577f0fc21
tree1e2b123965c0e805aa2f22867738585014a28983
parent6eb861dc61444e04200295967e77be514aa73a5f
Bug 27807: Add multi-column ordering support to datatables wrapper

This patch add mutli-column ordering support to the datatables api
wrapper.

Test plan
1/ Add a series of cities to the system with various combinations of
city and state such that you can distinguish sorting on city + state in
city ascending + state ascending, city ascending + state descending etc.
2/ Attempt to sort on the two fields in the table (Click the 'City'
heading to sort on city name, then Shift Click on 'State' to add 'state'
ordering on top.. Shift click again on state to reverse the 'state'
ordering but maintain the 'City' ordering.
3/ Confirm the various ordering comes out correctly.
4/ Signoff

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 548562ca17ae06088e84d8fe9287a9f4043ce80e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/datatables.js