LP#1879983: Restrict top-level curbside tab display
authorMike Rylander <mrylander@gmail.com>
Mon, 29 Jun 2020 20:58:37 +0000 (16:58 -0400)
committerJason Stephenson <jason@sigio.com>
Wed, 28 Apr 2021 12:34:31 +0000 (08:34 -0400)
commit7ebfdb7b249f1afcbf218eae1f854f624a8b95a7
treee5dcd22ce72830565bcada769013b8489deb273c
parentd195082b03d557fadb0f0ca7e7d2648715e36016
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