disable OPAC login form if opacuserlogin syspref is off
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
040323b800
commit
ba19a4ffc1
2 changed files with 16 additions and 2 deletions
|
@ -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"),
|
||||
|
|
|
@ -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 › 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 › Log in to Your Account
|
||||
<!-- TMPL_ELSE -->
|
||||
Catalog › 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>
|
||||
|
@ -49,9 +55,16 @@
|
|||
</form>
|
||||
|
||||
|
||||
<!-- /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" -->
|
||||
|
|
Loading…
Reference in a new issue