From 99182ec0e5021b9c5c0f3dd24f21966082d5914c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 7 Dec 2018 17:57:00 +0000 Subject: [PATCH] Bug 18798: (follow-up) Use Koha.preference for GoogleJackets This patch converts the check for the GoogleJackets preference to use the Koha.preference() style. To test, apply the patch and log in to the OPAC as a user who has a checkout history. View the "your reading history" page with GoogleJackets both enabled and disabled. Everything should work correctly. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt index 741fad6..150e9ff 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -115,7 +115,7 @@ [% END %] [% END %] - [% IF GoogleJackets %] + [% IF ( Koha.Preference('GoogleJackets') ) %] [% IF issue.normalized_isbn %]
[% ELSE %] @@ -123,7 +123,7 @@ [% END %] [% END %] - [% IF BakerTaylorEnabled %] + [% IF ( Koha.Preference('BakerTaylorEnabled') ) %] [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %] [% IF ( bt_id ) %] See Baker & Taylor -- 2.1.4