Bug 10656: improve sorting of shelving location and collections on OPAC advanced...
authorOwen Leonard <oleonard@myacpl.org>
Thu, 1 Aug 2013 13:14:08 +0000 (09:14 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 6 Sep 2013 16:48:02 +0000 (16:48 +0000)
commitdd13998837ebd28b3b97e28da470ec341251b9b2
tree7e2bcdfc8facf85e350132002bac6d45bc55fefa
parentf8484348d12bac3b1e5f3d2e4fef9d3034d58969
Bug 10656: improve sorting of shelving location and collections on OPAC advanced search form

Collection codes and shelving locations are displayed in the OPAC and
staff client via GetAuthorisedValues which currently sorts results by
"lib, lib_opac." Consequently if lib (the description for the staff
client) doesn't match lib_opac (the description for the OPAC) sorting
will appear to be nonsensical in the OPAC. GetAuthorisedValues can be
passed an $opac parameter, so this should be used to switch how reuslts
are sorted. This patch implements such a switch.

To test, modify your collection code or shelving location authorized
values so that lib and lib_opac do not match. Set your
AdvancedSearchTypes system preference to display the modified authorized
values and view the advanced search page in the OPAC and staff client.
Sorting should be correct in each case according to the correct value
(lib in the staff client, lib_opac in the OPAC).

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Tested in staff and opac and it works perfectly!

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Koha.pm