From 0d09f7bc4b0deec3adc123ff465a454ee0b08637 Mon Sep 17 00:00:00 2001
From: Mark Tompsett <mtompset@hotmail.com>
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 @@
<fieldset class="brief">
<label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
<label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
+ [% IF ( opacbelowloginbox ) %]
+ [% opacbelowloginbox %]
+ [% END %]
[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<div id="mpatronregistration"><p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p></div>[% END %]
</fieldset>
</div>
@@ -284,4 +287,4 @@
<a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
</div>
</form> <!-- /#auth -->
- </div> <!-- /#modalAuth -->
\ No newline at end of file
+ </div> <!-- /#modalAuth -->
--
1.7.9.5