Bug 27926: Add 'title-string' for dates on circ-patron-results
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 11 Mar 2021 12:15:25 +0000 (12:15 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 6 Apr 2021 13:56:30 +0000 (15:56 +0200)
commita1f5f363bc8c29f3374e4751599c420caa43ef9a
tree7dfae5a58e6c1ec90c032472e0c8ed9c59d198df
parent5787203a708429bfb746dfa16cfa6fee75a8714a
Bug 27926: Add 'title-string' for dates on circ-patron-results

This patch adds the title string sorting for the data of birth field in
the circulation patron results table.  This has the side effect of
adding a tooltip that displays the date of birth in ISO format, so I'm
not entirely sure it's the right approach.

Test plan
1/ Set your date format preferences to British English (dd-mm-yyyy)
2/ Do a search that will yield multiple patrons via "Check out"
3/ Try sorting on date of birth and not the order is incorrect.
4/ Apply the patch
5/ Refresh the page and try sorting on date again
6/ The order should now be correct
7/ Signoff

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc