c06e234772d9ef44bbccee3af4d175fd48c80b1b
[koha-ffzg.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-auth.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %]
3 [% IF ( opacuserlogin ) %]
4  catalog ›  Log in to your account
5 [% ELSE %]
6  catalog › Catalog login disabled
7 [% END %]
8 [% INCLUDE 'doc-head-close.inc' %]
9
10 <!-- Bug 4288: Hide circular 'Log in to Your Account' link in opac-auth.pl -->
11 <script type="text/javascript">
12     $(document).ready(function() {
13         if ( $("#auth" ) ) { $("#members ul li a").hide(); }
14     });
15 </script>
16 </head>
17 <body id="opac-login-page">
18 <div id="doc3" class="yui-t7">
19    <div id="bd">
20 [% INCLUDE 'masthead.inc' %]
21
22         <div id="yui-g">
23 <div id="userauth" class="container">
24 <div id="opac-auth">
25 <!--CONTENT-->
26 [% IF ( opacuserlogin ) %]
27 [% IF ( nopermission ) %]
28 <!-- This is what is displayed if user doesnt have permission -->
29 <p>Sorry, the system doesn't think you have permission to access this page. </p>
30 [% END %]
31 [% IF ( loginprompt ) %]
32 <!-- login prompt time-->
33 <h3>Log In to Your Account</h3>
34 [% IF ( timed_out ) %]
35 <!-- This is what is displayed if login has timed out -->
36 <p>Sorry, your session has timed out.  Please log in again.</p>
37 [% END %]
38
39 [% IF ( different_ip ) %]
40 <!-- This is what is displayed if user doesnt have permission -->
41 <p>You are logging from a different IP address.  Please log in again.</p>
42 [% END %]
43
44 [% IF ( invalid_username_or_password ) %]
45 <!-- This is what is displayed if user doesnt have permission -->
46 <p>You entered an incorrect username or password. Please try again! And remember, usernames and passwords are case sensitive.</p>
47 [% END %]
48
49 [% IF ( casAuthentication ) %]
50 <h4>Cas login</h4>
51
52 [% IF ( invalidCasLogin ) %]
53 <!-- This is what is displayed if cas login has failed -->
54 <p>Sorry, the CAS login failed.</p>
55 [% END %]
56
57 <p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account, 
58 [% IF ( casServerUrl ) %]
59     please <a href="[% casServerUrl %]">click here to login</a>.<p>
60 [% END %]
61
62 [% IF ( casServersLoop ) %]
63 please choose against which one you would like to authenticate: </p>
64 <ul>
65     [% FOREACH casServer IN casServersLoop %]
66         <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
67     [% END %]
68 [% END %]
69 </ul>
70
71 <h4>Local login</h4>
72 <p>If you do not have a CAS account, but a local account, you can still log in : </p>
73
74 [% END %]
75
76 <form action="[% url %]" name="auth" id="auth" method="post">
77   <input type="hidden" name="koha_login_context" value="opac" />
78 <fieldset class="brief">[% FOREACH INPUT IN INPUTS %]
79   <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
80 [% END %]
81 <ol>
82 <li><label for="userid">Login</label>
83 <input type="text"  size="25" id="userid"  name="userid" /></li>
84 <li><label for="password">Password</label><input type="password"  size="25" id="password"  name="password" /></li>
85 </ol></fieldset>
86
87 <input type="submit" value="Log In" class="submit" />
88 <div id="nologininstructions">
89 [% IF Koha.Preference('NoLoginInstructions') %]
90     [% Koha.Preference('NoLoginInstructions') %]
91 [% ELSE %]
92     <h5>Don't have a password yet?</h5>
93     <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>
94     <h5>Don't have a library card?</h5>
95     <p>If you don't have a library card, stop by your local library to sign up.</p>
96 [% END %]
97 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions">You may <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a>.</span>[% END %]
98 </div>
99 </form>
100
101
102 [% END %]
103 [% ELSE %]
104 <h4>Logging on to the catalog has not been enabled by the library.</h4>
105 <ul>
106   <li>To report this error, you can 
107           <a href="mailto:[% admin %]">email the Koha Administrator</a>.</li>
108   <li>Use top menu bar to navigate to another part of Koha.</li>
109 </ul>
110 [% END %]
111
112 [% IF persona %]
113 <a href="#" class="persona-button" id="browserid" ><span>Sign in with your Email</span></a>
114 [% END %]
115
116 </div>
117 </div>
118 </div>
119 </div>
120
121 [% INCLUDE 'opac-bottom.inc' %]