disable OPAC login form if opacuserlogin syspref is off
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 20 Feb 2008 21:52:45 +0000 (10:52 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 21 Feb 2008 02:15:28 +0000 (20:15 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Auth.pm
koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tmpl

index 92fdf7b..495ae9a 100755 (executable)
@@ -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"),
index 9d38d4d..d8ba653 100644 (file)
@@ -1,4 +1,9 @@
-<!-- TMPL_INCLUDE name="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  Log in to Your Account
+<!-- TMPL_INCLUDE name="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> 
+<!-- TMPL_IF NAME="opacuserlogin" -->
+ Catalog &rsaquo;  Log in to Your Account
+<!-- TMPL_ELSE -->
+ Catalog &rsaquo; Catalog Login Disabled
+<!-- /TMPL_IF -->
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 </head>
 <body>
@@ -9,6 +14,7 @@
        <div id="yui-g">
 
 <!--CONTENT-->
+<!-- TMPL_IF NAME="opacuserlogin" -->
 <!-- TMPL_IF NAME="loginprompt" -->
 <!-- login prompt time-->
 <h3>Log In to Your Account</h3>
 
 
 <!-- /TMPL_IF -->
+<!-- TMPL_ELSE -->
+<h4>Logging on to the catalog has not been enabled by the library.</h4>
+<ul>
+  <li>To report this error, you can 
+          <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
+  <li>Use top menu bar to navigate to another part of Koha.</li>
+</ul>
+<!-- /TMPL_IF -->
 
 </div>
 </div>
-</div>
 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->