2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›
4 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %][% END %]
12 [% INCLUDE 'bodytag.inc' bodyid='opac-login-page' bodyclass='scrollto' %]
13 [% INCLUDE 'masthead.inc' %]
16 <ul class="breadcrumb">
17 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
18 <li><a href="#">Log in</a></li>
21 <div class="container-fluid">
22 <div class="row-fluid">
23 <div class="span7 offset2">
24 <div id="opac-auth" class="maincontent">
26 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
27 [% IF ( nopermission ) %]
28 <!-- This is what is displayed if user doesnt have permission -->
30 <h3>Access denied</h3>
31 <p>Sorry, the system doesn't think you have permission to access this page. </p>
33 <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
35 <p><a href="/cgi-bin/koha/sci/sci-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
40 [% IF ( loginprompt ) %]
41 <!-- login prompt time-->
42 <h3>Log in to your account</h3>
44 [% IF ( timed_out ) %]
45 <!-- This is what is displayed if login has timed out -->
46 <div class="alert alert-info">
47 <p>Sorry, your session has timed out. Please log in again.</p>
51 [% IF ( different_ip ) %]
52 <!-- This is what is displayed if user doesnt have permission -->
53 <div class="alert alert-info">
54 <p>You are logging from a different IP address. Please log in again.</p>
59 [% IF too_many_login_attempts %]
60 <div class="alert alert-info">
61 This account has been locked!
62 [% IF Koha.Preference('OpacResetPassword') %]
63 <a href="/cgi-bin/koha/opac-password-recovery.pl">You must reset your password</a>.
65 Please contact a library staff member.
68 [% ELSIF invalid_username_or_password %]
69 <!-- This is what is displayed if user doesnt have permission -->
70 <div class="alert alert-info">
71 <p>You entered an incorrect username or password. Please try again! And remember, passwords are case sensitive.</p>
75 [% IF ( shibbolethAuthentication ) %]
76 [% IF ( invalidShibLogin ) %]
77 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
78 <div class="alert alert-info">
79 <p>Sorry, your Shibboleth identity does not match a valid library identity.</p>
80 [% IF ( casAuthentication ) %]
81 [% IF ( invalidCasLogin ) %]
82 <!-- This is what is displayed if cas login has failed -->
83 <p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p>
85 <p>If you have a CAS account, you may use that below.</p>
88 <p>If you have a local account, you may use that below.</p>
92 <h4>Shibboleth Login</h4>
93 <p><a href="[% shibbolethLoginUrl %]">If you have a Shibboleth account, please click here to log in.</a></p>
95 [% IF ( casAuthentication ) %]
97 <p>If you do not have a Shibboleth account, but you do have a CAS account, you can use CAS.</p>
100 <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below.</p>
105 [% IF ( casAuthentication ) %]
106 [% IF ( shibbolethAuthentication ) %]
107 [% IF ( casServerUrl ) %]
108 <p><a href="[% casServerUrl %]">Please click here to log in.</a><p>
111 [% IF ( casServersLoop ) %]
112 <p>Please choose against which one you would like to authenticate: </p>
114 [% FOREACH casServer IN casServersLoop %]
115 <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
122 [% IF ( invalidCasLogin ) %]
123 <!-- This is what is displayed if cas login has failed -->
124 <p>Sorry, the CAS login failed.</p>
127 [% IF ( casServerUrl ) %]
128 <p><a href="[% casServerUrl %]">If you have a CAS account, please click here to log in.</a><p>
131 [% IF ( casServersLoop ) %]
132 <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
134 [% FOREACH casServer IN casServersLoop %]
135 <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
141 [% IF ( shibbolethAuthentication ) %]
145 <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
148 [% END # / IF casAuthentication %]
150 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
151 [% IF ( invalidGoogleOpenIDConnectLogin ) %]
152 <h4>Google login</h4>
153 <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin %]</span></p>
154 <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
155 <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>
157 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-primary" id="openid_connect">Log in with Google</a>
158 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
162 <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post" autocomplete="off">
163 [% ELSIF SCI_login %]
164 <form action="/cgi-bin/koha/sci/sci-main.pl" name="auth" id="auth" method="post" autocomplete="off">
166 <form action="[% script_name %]" name="auth" id="auth" method="post" autocomplete="off">
168 <input type="hidden" name="koha_login_context" value="opac" />
169 <fieldset class="brief">
170 [% FOREACH INPUT IN INPUTS %]
171 <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
173 <label for="userid">Login</label>
174 <input type="text" size="25" id="userid" name="userid" />
175 <label for="password">Password</label><input type="password" size="25" id="password" name="password" />
178 <input type="submit" value="Log in" class="btn" />
179 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
180 <div id="forgotpassword">
181 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
184 <div id="nologininstructions">
185 [% IF Koha.Preference('OpacLoginInstructions') %]
186 [% Koha.Preference('OpacLoginInstructions') %]
188 <h5>Don't have a password yet?</h5>
189 <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>
190 <h5>Don't have a library card?</h5>
191 <p>If you don't have a library card, stop by your local library to sign up.</p>
192 [% END # / IF Koha.Preference('OpacLoginInstructions') %]
194 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"><a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a></span>
198 [% END # / IF loginprompt %]
201 <h4>Logging on to the catalog has not been enabled by the library.</h4>
203 <li>To report this error, you can email the Koha Administrator.<a href="mailto:[% admin %]">Email</a></li>
204 <li>Use top menu bar to navigate to another part of Koha.</li>
206 [% END # / IF opacuserlogin %]
208 </div> <!-- /.opac-auth -->
209 </div> <!-- /.span12 -->
210 </div> <!-- /.row-fluid -->
211 </div> <!-- /.container-fluid -->
212 </div> <!-- /.main -->
214 [% INCLUDE 'opac-bottom.inc' %]
215 [% BLOCK jsinclude %]
216 <script type="text/javascript">
218 // Hide circular 'Log in to Your Account' link in opac-auth.pl
219 $(document).ready(function() {
220 if ( $("#auth" ) ) { $("#members ul li a").hide(); }