-[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %]
+[% USE Koha %]
+[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %]
[% IF ( opacuserlogin ) %]
- Catalog › Log in to Your Account
+ catalog › Log in to your account
[% ELSE %]
- Catalog › Catalog Login Disabled
+ catalog › Catalog login disabled
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
[% END %]
[% IF ( casAuthentication ) %]
-<h4>Cas Login</h4>
+<h4>Cas login</h4>
[% IF ( invalidCasLogin ) %]
<!-- This is what is displayed if cas login has failed -->
<p>Sorry, the CAS login failed.</p>
[% END %]
-<p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account, please <a href="[% casServerUrl %]">click here to login</a>.<p>
+<p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account,
+[% IF ( casServerUrl ) %]
+ please <a href="[% casServerUrl %]">click here to login</a>.<p>
+[% END %]
-<h4>Local Login</h4>
+[% IF ( casServersLoop ) %]
+please choose against which one you would like to authenticate: </p>
+<ul>
+ [% FOREACH casServer IN casServersLoop %]
+ <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
+ [% END %]
+[% END %]
+</ul>
+
+<h4>Local login</h4>
<p>If you do not have a CAS account, but a local account, you can still log in : </p>
[% END %]
</ol></fieldset>
<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. </p></div>
+<div id="nologininstructions">
+[% IF Koha.Preference('NoLoginInstructions') %]
+ [% Koha.Preference('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>
+ <p>If you don't have a library card, stop by your local library to sign up.</p>
+[% END %]
+[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions">You may <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a>.</span>[% END %]
+</div>
</form>
<a href="mailto:[% admin %]">email the Koha Administrator</a>.</li>
<li>Use top menu bar to navigate to another part of Koha.</li>
</ul>
-[% END %]</div>
+[% END %]
+
+[% IF persona %]
+<a href="#" class="persona-button" id="browserid" ><span>Sign in with your Email</span></a>
+[% END %]
+
+</div>
</div>
</div>
</div>