From 5ab1feaa2599d10ac4b602c007efae4ea0670c2c Mon Sep 17 00:00:00 2001
From: Aleisha Amohia
Date: Tue, 13 Jun 2017 22:15:13 +0000
Subject: [PATCH] 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
---
.../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 5140221..eadaf45 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 @@