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>
38 [% IF ( loginprompt ) %]
39 <!-- login prompt time-->
40 <h3>Log in to your account</h3>
42 [% IF ( timed_out ) %]
43 <!-- This is what is displayed if login has timed out -->
44 <div class="alert alert-info">
45 <p>Sorry, your session has timed out. Please log in again.</p>
49 [% IF ( different_ip ) %]
50 <!-- This is what is displayed if user doesnt have permission -->
51 <div class="alert alert-info">
52 <p>You are logging from a different IP address. Please log in again.</p>
56 [% IF ( invalid_username_or_password ) %]
57 <!-- This is what is displayed if user doesnt have permission -->
58 <div class="alert alert-info">
59 <p>You entered an incorrect username or password. Please try again! And remember, passwords are case sensitive.</p>
63 [% IF ( shibbolethAuthentication ) %]
64 [% IF ( invalidShibLogin ) %]
65 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
66 <div class="alert alert-info">
67 <p>Sorry, your Shibboleth identity does not match a valid library identity.</p>
68 [% IF ( casAuthentication ) %]
69 [% IF ( invalidCasLogin ) %]
70 <!-- This is what is displayed if cas login has failed -->
71 <p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p>
73 <p>If you have a CAS account, you may use that below.</p>
76 <p>If you have a local account, you may use that below.</p>
80 <h4>Shibboleth Login</h4>
81 <p><a href="[% shibbolethLoginUrl %]">If you have a Shibboleth account, please click here to log in.</a></p>
83 [% IF ( casAuthentication ) %]
85 <p>If you do not have a Shibboleth account, but you do have a CAS account, you can use CAS.</p>
88 <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below.</p>
93 [% IF ( casAuthentication ) %]
94 [% IF ( shibbolethAuthentication ) %]
95 [% IF ( casServerUrl ) %]
96 <p><a href="[% casServerUrl %]">Please click here to log in.</a><p>
99 [% IF ( casServersLoop ) %]
100 <p>Please choose against which one you would like to authenticate: </p>
102 [% FOREACH casServer IN casServersLoop %]
103 <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
110 [% IF ( invalidCasLogin ) %]
111 <!-- This is what is displayed if cas login has failed -->
112 <p>Sorry, the CAS login failed.</p>
115 [% IF ( casServerUrl ) %]
116 <p><a href="[% casServerUrl %]">If you have a CAS account, please click here to log in.</a><p>
119 [% IF ( casServersLoop ) %]
120 <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
122 [% FOREACH casServer IN casServersLoop %]
123 <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
129 [% IF ( shibbolethAuthentication ) %]
133 <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
136 [% END # / IF casAuthentication %]
138 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
139 [% IF ( invalidGoogleOpenIDConnectLogin ) %]
140 <h4>Google login</h4>
141 <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin %]</span></p>
142 <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
143 <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>
145 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-primary" id="openid_connect">Log in with Google</a>
146 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
150 <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post">
152 <form action="[% script_name %]" name="auth" id="auth" method="post">
154 <input type="hidden" name="koha_login_context" value="opac" />
155 <fieldset class="brief">
156 [% FOREACH INPUT IN INPUTS %]
157 <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
159 <label for="userid">Login</label>
160 <input type="text" size="25" id="userid" name="userid" />
161 <label for="password">Password</label><input type="password" size="25" id="password" name="password" />
164 <input type="submit" value="Log in" class="btn" />
165 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
166 <div id="forgotpassword">
167 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
170 <div id="nologininstructions">
171 [% IF Koha.Preference('NoLoginInstructions') %]
172 [% Koha.Preference('NoLoginInstructions') %]
174 <h5>Don't have a password yet?</h5>
175 <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>
176 <h5>Don't have a library card?</h5>
177 <p>If you don't have a library card, stop by your local library to sign up.</p>
178 [% END # / IF Koha.Preference('NoLoginInstructions') %]
180 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"><a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a></span>
184 [% END # / IF loginprompt %]
187 <h4>Logging on to the catalog has not been enabled by the library.</h4>
189 <li>To report this error, you can email the Koha Administrator.<a href="mailto:[% admin %]">Email</a></li>
190 <li>Use top menu bar to navigate to another part of Koha.</li>
192 [% END # / IF opacuserlogin %]
195 <p><a href="#" class="persona-button" id="browserid" ><span>Sign in with your Email</span></a></p>
198 </div> <!-- /.opac-auth -->
199 </div> <!-- /.span12 -->
200 </div> <!-- /.row-fluid -->
201 </div> <!-- /.container-fluid -->
202 </div> <!-- /.main -->
204 [% INCLUDE 'opac-bottom.inc' %]
205 [% BLOCK jsinclude %]
206 <script type="text/javascript">
208 // Hide circular 'Log in to Your Account' link in opac-auth.pl
209 $(document).ready(function() {
210 if ( $("#auth" ) ) { $("#members ul li a").hide(); }