Bug 35006: OPAC holdings table - Fix sort for library columns
authorOwen Leonard <oleonard@myacpl.org>
Tue, 10 Oct 2023 12:03:18 +0000 (12:03 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 18 Oct 2023 13:25:53 +0000 (10:25 -0300)
commit06d182bc82b40872970d99055c449d3c406724fa
tree43effbdd18059579d366b77bcd42a3e97151bfbd
parent0128ce5b100df4f96a9b79076077459d3ea8b6c2
Bug 35006: OPAC holdings table - Fix sort for library columns

This patch updates the holdings table on the OPAC's bibliographic detail
page so that home and current library columns can be sorted correctly by
library name. There have been changes to the way the template shows
these values, but the DataTables "data-sort" attribute on the table cell
had not been updated accordingly.

To test, apply the patch set the OpacLocationBranchToDisplay system
preference to "home and holding libraries."

- Make sure home and holding library columns are not hidden in the
  table settings under Administration -> Table settings -> OPAC ->
  holdingst.
- Locate a bibliographic record in the OPAC which has multiple items
  from different libraries.
- Test that the home and current library columns sort correctly by
  library name.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt