From 85c387f8486c4b1bfcc36978cbc5b13c9a73a1b2 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 15 Aug 2014 10:47:29 -0300 Subject: [PATCH] Bug 12683: (followup) use the Koha.Preference plugin and add ids It is kosher now to use the Koha template toolkit plugin for retrieving system preferences values. This followup does that. It also changes the class for ids, for people considering this patch introduces too much noise on the home screen being able to control its visibility. Regards To+ Signed-off-by: Tomas Cohen Arazi --- C4/Auth.pm | 1 - koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 8 ++++---- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 8 ++++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 0f153af1f9..2b8a0365b0 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -421,7 +421,6 @@ sub get_template_and_user { LibraryNameTitle => "" . $LibraryNameTitle, LoginBranchname => C4::Context->userenv?C4::Context->userenv->{"branchname"}:"", OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), - NoLoginInstructions => C4::Context->preference("NoLoginInstructions"), OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), OPACItemHolds => C4::Context->preference("OPACItemHolds"), diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 61f130857a..2ee0ed99d5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -285,11 +285,11 @@
-
- [% IF ( NoLoginInstructions ) %] - [% NoLoginInstructions %] - [% END %] + [% IF Koha.Preference( 'NoLoginInstructions' ) %] +
+ [% Koha.Preference( 'NoLoginInstructions' ) %]
+ [% END %] [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]

Don't have an account? Register here.

[% END %]
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index b4c957cb21..450506edf9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -78,11 +78,11 @@ [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]

Don't have an account? Register here.

[% END %] -
- [% IF ( NoLoginInstructions ) %] - [% NoLoginInstructions %] - [% END %] + [% IF Koha.Preference( 'NoLoginInstructions' ) %] +
+ [% Koha.Preference( 'NoLoginInstructions' ) %]
+ [% END %]
[% END # /casAuthentication %] -- 2.39.5