From 48751a35cb042181996a6811b82b7708dcd07d02 Mon Sep 17 00:00:00 2001
From: inLibro 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. If you don't have a library card, stop by your local library to sign up. Welcome to Koha, please bring your passport to the front office
- and save
5) refresh the OPAC, try login again with invalid credentials. The new message should appear.
---
C4/Auth.pm | 1 +
installer/data/mysql/updatedatabase.pl | 8 ++++++++
.../prog/en/modules/admin/preferences/opac.pref | 5 +++++
koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt | 10 ++++++++--
4 files changed, 22 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/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl
index a37ea02..c5c9b19 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -7155,6 +7155,14 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
+$DBversion ="3.13.00.XXX";
+if ( CheckVersion($DBversion) ) {
+ $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
+ VALUES ('NoLoginInstructions', 'Don't have a password yet?
Don't have a library card?
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.
-If you don't have a library card, stop by your local library to sign up[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %] or register here[% END %].
+[% IF NoLoginInstructions %] [% NoLoginInstructions %] +[% ELSE %] +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.
+