Bug 23913: Use a single menu to sort lists in the OPAC
authorOwen Leonard <oleonard@myacpl.org>
Mon, 28 Oct 2019 16:02:35 +0000 (16:02 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 2 Jan 2020 14:39:06 +0000 (14:39 +0000)
commitbebdbd535b9e28b982f615a301a2817aa1454951
treeaf3f812696822e417b794a24be42952889156f46
parent8dd4bf35a96bf7543e8eaa66794963136e29b627
Bug 23913: Use a single menu to sort lists in the OPAC

This patch modifies the sorting form on the OPAC list contents view so
that the two menus (sort field and direction) are combined into one.
This makes it consistent with the sort menu on the search results page.

To test, apply the patch and view a list with multiple titles on it.

Test the "Sort by" menu, trying all the various options. Confirm that
the pre-selected item in the sorting menu is correct after each re-sort.

Edit the list to change the default sorting and verify that the "Sort
by" menu reflects your selection.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
opac/opac-shelves.pl