4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog ›
6 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
11 [% INCLUDE 'doc-head-close.inc' %]
12 [% BLOCK cssinclude %][% END %]
14 [% INCLUDE 'bodytag.inc' bodyid='opac-login-page' bodyclass='scrollto' %]
15 [% INCLUDE 'masthead.inc' %]
18 <ul class="breadcrumb">
19 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
20 <li><a href="#">Log in</a></li>
23 <div class="container-fluid">
24 <div class="row-fluid">
25 <div class="span7 offset2">
26 <div id="opac-auth" class="maincontent">
28 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
29 [% IF ( nopermission ) %]
30 <!-- This is what is displayed if user doesn't have permission -->
32 <h3>Access denied</h3>
33 <p>Sorry, the system doesn't think you have permission to access this page. </p>
35 <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
37 <p><a href="/cgi-bin/koha/sci/sci-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
42 [% IF ( loginprompt ) %]
43 <!-- login prompt time-->
44 <h3>Log in to your account</h3>
46 [% IF ( timed_out ) %]
47 <!-- This is what is displayed if login has timed out -->
48 <div class="alert alert-info">
49 <p>Sorry, your session has timed out. Please log in again.</p>
53 [% IF ( different_ip ) %]
54 <!-- This is what is displayed if user doesn't have permission -->
55 <div class="alert alert-info">
56 <p>You are logging from a different IP address. Please log in again.</p>
61 [% IF invalid_username_or_password || too_many_login_attempts %]
62 <!-- This is what is displayed if user doesn't have permission or account is locked. (Do not expose more information than needed.) -->
63 <div class="alert alert-info">
64 <p>You entered an incorrect username or password. Please try again! But note that passwords are case sensitive[% IF Koha.Preference('FailedLoginAttempts') %] and that your account will be locked out after a fixed number of failed login attempts[% END %]. Please contact a library staff member if you continue to have problems.</p>
68 [% IF ( shibbolethAuthentication ) %]
69 [% IF ( invalidShibLogin ) %]
70 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
71 <div class="alert alert-info">
72 <p>Sorry, your Shibboleth identity does not match a valid library identity.</p>
73 [% IF ( casAuthentication ) %]
74 [% IF ( invalidCasLogin ) %]
75 <!-- This is what is displayed if cas login has failed -->
76 <p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p>
78 <p>If you have a CAS account, you may use that below.</p>
81 <p>If you have a local account, you may use that below.</p>
85 <h4>Shibboleth Login</h4>
86 <p><a href="[% shibbolethLoginUrl | url %]">If you have a Shibboleth account, please click here to log in.</a></p>
88 [% IF ( casAuthentication ) %]
90 <p>If you do not have a Shibboleth account, but you do have a CAS account, you can use CAS.</p>
93 <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below.</p>
98 [% IF ( casAuthentication ) %]
99 [% IF ( shibbolethAuthentication ) %]
100 [% IF ( casServerUrl ) %]
101 <p><a href="[% casServerUrl | $raw %]">Please click here to log in.</a><p>
104 [% IF ( casServersLoop ) %]
105 <p>Please choose against which one you would like to authenticate: </p>
107 [% FOREACH casServer IN casServersLoop %]
108 <li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li>
115 [% IF ( invalidCasLogin ) %]
116 <!-- This is what is displayed if cas login has failed -->
117 <p>Sorry, the CAS login failed.</p>
120 [% IF ( casServerUrl ) %]
121 <p><a href="[% casServerUrl | $raw %]">If you have a CAS account, please click here to log in.</a><p>
124 [% IF ( casServersLoop ) %]
125 <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
127 [% FOREACH casServer IN casServersLoop %]
128 <li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li>
134 [% IF ( shibbolethAuthentication ) %]
138 <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
141 [% END # / IF casAuthentication %]
143 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
144 [% IF ( invalidGoogleOpenIDConnectLogin ) %]
145 <h4>Google login</h4>
146 <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin | html %]</span></p>
147 <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
148 <p>If you want to, you can try to <a href="/cgi-bin/koha/svc/auth/googleopenidconnect?reauthenticate=select_account">log in using a different account</a>
150 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-primary" id="openid_connect">Log in with Google</a>
151 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
155 <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post" autocomplete="off">
156 [% ELSIF SCI_login %]
157 <form action="/cgi-bin/koha/sci/sci-main.pl" name="auth" id="auth" method="post" autocomplete="off">
159 <form action="[% script_name | html %]" name="auth" id="auth" method="post" autocomplete="off">
161 <input type="hidden" name="koha_login_context" value="opac" />
162 <fieldset class="brief">
163 [% FOREACH INPUT IN INPUTS %]
164 <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
166 <label for="userid">Login</label>
167 <input type="text" size="25" id="userid" name="userid" />
168 <label for="password">Password</label><input type="password" size="25" id="password" name="password" />
171 <input type="submit" value="Log in" class="btn" />
173 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
174 <div id="forgotpassword">
175 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
178 <div id="nologininstructions">
179 [% IF Koha.Preference('OpacLoginInstructions') %]
180 [% Koha.Preference('OpacLoginInstructions') | $raw %]
182 <h5>Don't have a password yet?</h5>
183 <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>
184 <h5>Don't have a library card?</h5>
185 <p>If you don't have a library card, stop by your local library to sign up.</p>
186 [% END # / IF Koha.Preference('OpacLoginInstructions') %]
188 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"><a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a></span>
192 [% END # / IF loginprompt %]
195 <h4>Logging on to the catalog has not been enabled by the library.</h4>
197 <li>To report this error, you can email the Koha Administrator.<a href="mailto:[% admin | uri %]">Email</a></li>
198 <li>Use top menu bar to navigate to another part of Koha.</li>
200 [% END # / IF opacuserlogin %]
202 </div> <!-- /.opac-auth -->
203 </div> <!-- /.span12 -->
204 </div> <!-- /.row-fluid -->
205 </div> <!-- /.container-fluid -->
206 </div> <!-- /.main -->
208 [% INCLUDE 'opac-bottom.inc' %]
209 [% BLOCK jsinclude %]
212 // Hide circular 'Log in to Your Account' link in opac-auth.pl
213 $(document).ready(function() {
214 if ( $("#auth" ) ) { $("#members ul li a").hide(); }