From 5b6e758ba65f706c70b873e8e38b4b0da9f76a05 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 2 Nov 2021 13:48:43 +0000 Subject: [PATCH] Bug 28307: (follow-up) Correct OPAC references to OPACBakerTaylorEnabled This patch adds the new OPACBakerTaylorEnabled preferences to OPAC templates and scripts which were missed in the first patch. The patch also adds OPACBakerTaylorEnabled to UsageStats.pm and sysprefs.sql. Check these pages in the OPAC: - Catalog -> Search results - And search results -> RSS - Catalog -> Bibliographic details page -> Shelf browser - Catalog -> Lists -> List contents - Catalog -> Recent comments - And recent comments -> RSS - Your summary -> Checkouts and Overdues --- C4/UsageStats.pm | 1 + installer/data/mysql/mandatory/sysprefs.sql | 1 + .../bootstrap/en/includes/opac-bottom.inc | 2 +- .../bootstrap/en/includes/shelfbrowser.inc | 14 +++++------ .../bootstrap/en/modules/opac-opensearch.tt | 2 +- .../en/modules/opac-readingrecord.tt | 12 ++++++---- .../bootstrap/en/modules/opac-results.tt | 21 +++++----------- .../bootstrap/en/modules/opac-shelves.tt | 20 +++++----------- .../en/modules/opac-showreviews-rss.tt | 4 +++- .../bootstrap/en/modules/opac-showreviews.tt | 11 +++++---- .../bootstrap/en/modules/opac-user.tt | 24 +++++++++++-------- opac/opac-readingrecord.pl | 6 ++--- opac/opac-search.pl | 4 +--- opac/opac-shelves.pl | 2 +- opac/opac-showreviews.pl | 8 +++++++ opac/opac-user.pl | 6 ++--- 16 files changed, 67 insertions(+), 71 deletions(-) diff --git a/C4/UsageStats.pm b/C4/UsageStats.pm index 2ff5303bcb..8f14fdebc0 100644 --- a/C4/UsageStats.pm +++ b/C4/UsageStats.pm @@ -250,6 +250,7 @@ sub _shared_preferences { OPACAmazonCoverImages Babeltheque BakerTaylorEnabled + OPACBakerTaylorEnabled GoogleJackets HTML5MediaEnabled LibraryThingForLibrariesEnabled diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 9789af312e..a0e3289c99 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -394,6 +394,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('OPACAllowUserToChooseBranch','1','1','Allow the user to choose the branch they want to pickup their hold from','YesNo'), ('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'), ('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'), +('OPACBakerTaylorEnabled','0','','Enable or disable all Baker & Taylor features in the OPAC.','YesNo'), ('OPACBaseURL','',NULL,'Specify the Base URL of the OPAC, e.g., http://opac.mylibrary.com, including the protocol (http:// or https://). Otherwise, the http:// will be added automatically by Koha upon saving.','Free'), ('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'), ('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'), diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc index e4aaccf54a..c040e38ad4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -269,7 +269,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip); [% END %] -[% IF ( BakerTaylorEnabled ) %] +[% IF ( OPACBakerTaylorEnabled ) %] [% Asset.js("js/bakertaylorimages.js") | $raw %]