From 0d09f7bc4b0deec3adc123ff465a454ee0b08637 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Wed, 2 Apr 2014 22:33:03 -0400 Subject: [PATCH] Bug 6864 - Bootstrap OpacBelowLoginBox This adds OpacBelowLoginBox to bootstrap. It also corrects the placement of setting the opacbelowloginbox template parameter, so that it will work under bootstrap. --- C4/Auth.pm | 2 +- .../opac-tmpl/bootstrap/en/includes/masthead.inc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index d2a8a19..d4fff77 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -398,6 +398,7 @@ sub get_template_and_user { LibraryNameTitle => "" . $LibraryNameTitle, LoginBranchname => C4::Context->userenv?C4::Context->userenv->{"branchname"}:"", OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), + opacbelowloginbox => C4::Context->preference("OpacBelowLoginBox"), OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), OPACItemHolds => C4::Context->preference("OPACItemHolds"), @@ -1064,7 +1065,6 @@ sub checkauth { IndependentBranches=> C4::Context->preference("IndependentBranches"), AutoLocation => C4::Context->preference("AutoLocation"), wrongip => $info{'wrongip'}, - opacbelowloginbox => C4::Context->preference("OpacBelowLoginBox"), PatronSelfRegistration => C4::Context->preference("PatronSelfRegistration"), PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"), persona => C4::Context->preference("Persona"), diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 1edc244..337afdd 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -276,6 +276,9 @@
+ [% IF ( opacbelowloginbox ) %] + [% opacbelowloginbox %] + [% END %] [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]

Don't have an account? Register here.

[% END %]
@@ -284,4 +287,4 @@ - \ No newline at end of file + -- 1.7.9.5