From a113966819d5623c029c7e5e58a9bbb3bc99248a Mon Sep 17 00:00:00 2001
From: Aleisha Amohia
Date: Fri, 27 Jan 2017 03:37:31 +0000
Subject: [PATCH] Bug 12691: Use Koha.Preference in Self-Checkout
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
For calls to SCOUserJS, SCOUserCSS, OPACUserCSS, AllowSelfCheckReturns,
OpacFavicon, ShowPatronImageInWebBasedSelfCheck, SelfCheckoutByLogin
Sponsored-by: Catalyst IT
Signed-off-by: Katrin Fischer
Signed-off-by: Marc Véron
Signed-off-by: Nick Clemens
Bug 12691: [FOLLOW-UP] Follow-up patch
This patch fixes merge conflicts and fixes the problems in Comment 7
QA tools complain about missing bracket, will be fixed in next followup
Signed-off-by: Marc Véron
Signed-off-by: Nick Clemens
Bug 12691: [FOLLOW-UP] Missing bracket
Patch adds bracket to template file (Comment 16)
Signed-off-by: Marc Véron
Signed-off-by: Nick Clemens
Bug 12691: [FOLLOW-UP] Fixing some logic
Signed-off-by: Marc Véron
Signed-off-by: Jonathan Druart
Patches have been squashed for readability and 1 removal occurrence of
display_patron_image has been reintroduced.
---
.../opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 20 ++++++++++----------
opac/sco/sco-main.pl | 15 +--------------
2 files changed, 11 insertions(+), 24 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
index f7fae7bb54..7357d896cc 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
@@ -5,12 +5,12 @@
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] › Self checkout
-
+
-[% IF ( OPACUserCSS ) %][% END %]
-[% IF ( SCOUserCSS ) %][% END %]
+[% IF ( Koha.Preference('OPACUserCSS') ) %][% END %]
+[% IF ( Koha.Preference('SCOUserCSS') ) %][% END %]
@@ -76,7 +76,7 @@
Please see a member of the library staff.
- [% IF ( returnitem && AllowSelfCheckReturns ) %]
+ [% IF ( returnitem && Koha.Preference('AllowSelfCheckReturns') ) %]