LP#1879983: Restrict top-level curbside tab display
authorMike Rylander <mrylander@gmail.com>
Mon, 29 Jun 2020 20:58:37 +0000 (16:58 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 29 Jun 2020 21:01:55 +0000 (17:01 -0400)
commitc626c585bc5fd95b8b55f71fccb2777cc6b38f97
tree2cc474be2432c157b9e5039c3b2e0265ca52e11c
parentf8cba714d651b10c0b474ed2eef14be962103829
LP#1879983: Restrict top-level curbside tab display

Refactor the code checking for curbside-available current-pickup
libraries so that it is checked for all of MyOPAC, allowing us to hide
the Curbside Pickup top-level tab when there are no holds ready at
curbside pickup enabled locations.  The tab will always be at the end of
the list if it is visible.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/templates/opac/parts/myopac/base.tt2