Bugzilla – Attachment 21460 Details for
Bug 10951
Make the NoLoginInstructions a customizable field through preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Enhancement adding system preference NoLoginInstructions to be used when wrong credential are used in OPAC login
Enhancement-adding-system-preference-NoLoginInstru.patch (text/plain), 3.40 KB, created by
Blou
on 2013-09-25 20:55:58 UTC
(
hide
)
Description:
Enhancement adding system preference NoLoginInstructions to be used when wrong credential are used in OPAC login
Filename:
MIME Type:
Creator:
Blou
Created:
2013-09-25 20:55:58 UTC
Size:
3.40 KB
patch
obsolete
>From 4bf4433f14bed9b22e52dc9906d33718c8dbc4af Mon Sep 17 00:00:00 2001 >From: anoushka <anoushka.malekou@inlibro.com> >Date: Fri, 20 Sep 2013 16:14:32 -0400 >Subject: [PATCH] Enhancement adding system preference NoLoginInstructions to > be used when wrong credential are used in OPAC login > >http://bugs.koha-community.org/show_bug.cgi?id=10951 >--- > C4/Auth.pm | 1 + > .../prog/en/modules/admin/preferences/opac.pref | 5 +++++ > koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt | 10 ++++++++-- > 3 files changed, 14 insertions(+), 2 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 1e17e59..ca386c6 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -1020,6 +1020,7 @@ sub checkauth { > PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"), > persona => C4::Context->preference("Persona"), > opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'}, >+ NoLoginInstructions => C4::Context->preference("NoLoginInstructions"), > ); > > $template->param( OpacPublic => C4::Context->preference("OpacPublic")); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index a75c7ef..317bb91 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -280,6 +280,11 @@ OPAC: > homebranch: 'home library' > holdingbranch: 'holding library' > - "is the logged in user's library. The second tab will contain all other items." >+ - >+ - "Show the following HTML when a person is not connected:" >+ - pref: NoLoginInstructions >+ type: textarea >+ class: code > Features: > - > - pref: opacuserlogin >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt >index 7b8b8f9..a83c8e0 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt >@@ -86,8 +86,14 @@ please choose against which one you would like to authenticate: </p> > > <input type="submit" value="Log In" class="submit" /> > <div id="nologininstructions"> >- <h5>Don't have a password yet?</h5><p> If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p> >- <h5>Don't have a library card?</h5><p> If you don't have a library card, stop by your local library to sign up[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"> or <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a></span>[% END %]. </p> >+[% IF NoLoginInstructions %] [% NoLoginInstructions %] >+[% ELSE %] >+ <h5>Don't have a password yet?</h5> >+ <p>If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p> >+ <h5>Don't have a library card?</h5> >+ If you don't have a library card, stop by your local library to sign up >+[% END %] >+[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"> or <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a></span>[% END %]. > </div> > </form> > >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10951
:
21460
|
21510
|
21515
|
21516
|
21522
|
21524
|
21807
|
21810
|
21811
|
21812
|
21813
|
21814
|
21815
|
21816
|
21853
|
21854
|
21855
|
22711
|
22712
|
22713