LP#1772680: add global flag to control display of digital search tab
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 20 Sep 2018 20:23:10 +0000 (16:23 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 16 Mar 2020 21:16:20 +0000 (17:16 -0400)
commit7f67360617c7978b1c7cc14f2ea8b4f7bb8f7159
tree8af317a605f5065de3bbcd3767b7d0826eba0120
parentccd4aa34a96611fe4ccb0d28d4e475113b54acfe
LP#1772680: add global flag to control display of digital search tab

This patch introduces a new global flag, extras.enable_digital_resource_search_tab,
that controls whether the public catalog search tab for digital
resources is displayed. If that flag is not turned on, the tab
is not displayed and unnecessary RBDigital initialization code
is bypassed.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
LP#1772680: add some guards

Avoid crashes if the RBDigital API is not available or incorrect
tokens are configured.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/EbookAPI.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/EbookAPI/RBDigital.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/RBDigitalSearch.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting.ebook-api-rbdigital.sql
Open-ILS/src/templates/opac/parts/topnav.tt2