From 5adc43b934c5aad79cba3bee488ecabe89be8e46 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 13 Jun 2017 22:15:13 +0000 Subject: [PATCH] [SIGNED-OFF] Bug 18798: Use Koha.Preference in OPAC Reading Record This patch uses the Koha.Preference plugin method for the following sysprefs: - OPACMySummaryHTML - OPACAmazonCoverImages - SyndeticsEnabled - SyndeticsCoverImages - SyndeticsClientCode - GoogleJackets - BakerTaylorEnabled (Bug 17896) - BakerTaylorBookstoreURL (Bug 17896) To test, apply the patch from Bug 17896 and confirm that enabling and disabling the above sysprefs does not break anything. Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard I'm not able to test Syndetics and BakerTaylor, but everything else works correctly. --- .../bootstrap/en/modules/opac-readingrecord.tt | 20 ++++++++++---------- opac/opac-readingrecord.pl | 7 ------- 2 files changed, 10 insertions(+), 17 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 4647001..cc43bad 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -60,7 +60,7 @@

[% END %] - [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %] + [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
  • All
  • @@ -78,7 +78,7 @@ Item type Call no. Date - [% IF ( OPACMySummaryHTML ) %] + [% IF ( Koha.Preference('OPACMySummaryHTML') ) %] Links [% END %] @@ -93,7 +93,7 @@ [% issuetype %] - [% IF OPACAmazonCoverImages %] + [% IF ( Koha.Preference('OPACAmazonCoverImages') ) %] [% IF issue.normalized_isbn %] [% ELSE %] @@ -118,16 +118,16 @@ [% END %] [% END %] - [% IF SyndeticsEnabled && SyndeticsCoverImages %] - [% IF using_https %] - + [% IF ( Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') ) %] + [% IF using_https %] + [% ELSE %] - + [% END %] [% END %] - [% IF issue.BiblioDefaultViewmarc %] + [% IF issue.BiblioDefaultViewmarc %] [% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %] [% ELSIF issue.BiblioDefaultViewisbd %] [% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %] @@ -156,7 +156,7 @@ (Checked out) [% END %] - [% IF OPACMySummaryHTML %] + [% IF ( Koha.Preference('OPACMySummaryHTML') ) %] [% issue.MySummaryHTML %] [% END %] @@ -181,7 +181,7 @@