From ba19a4ffc18bef85ef0600bddb335efb740b539b Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 21 Feb 2008 10:52:45 +1300 Subject: [PATCH] disable OPAC login form if opacuserlogin syspref is off Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 1 + .../opac-tmpl/prog/en/modules/opac-auth.tmpl | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 92fdf7bb0a..495ae9a431 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -697,6 +697,7 @@ sub checkauth { virtualshelves => C4::Context->preference("virtualshelves"), opaclargeimage => C4::Context->preference("opaclargeimage"), LibraryName => C4::Context->preference("LibraryName"), + opacuserlogin => C4::Context->preference("opacuserlogin"), OpacNav => C4::Context->preference("OpacNav"), opaccredits => C4::Context->preference("opaccredits"), opacreadinghistory => C4::Context->preference("opacreadinghistory"), diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tmpl index 9d38d4d481..d8ba653d8b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tmpl @@ -1,4 +1,9 @@ -Koha Online Catalog › Log in to Your Account +Koha Online + + Catalog › Log in to Your Account + + Catalog › Catalog Login Disabled + @@ -9,6 +14,7 @@
+

Log In to Your Account

@@ -49,9 +55,16 @@ + + +

Logging on to the catalog has not been enabled by the library.

+ -
-- 2.39.5