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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 1 Apr 2021 15:58:49 +0000 (17:58 +0200)
commit548562ca17ae06088e84d8fe9287a9f4043ce80e
treeec5dfa0d988d85ba2f5236220f5dc097d5b383e3
parentb7d5f477ac62935f37b1b4046564283acacf4f39
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>
koha-tmpl/intranet-tmpl/prog/js/datatables.js