Bug 19570: Add autocomplete to opac-main as well
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-main.tt
1 [% USE Koha %]
2 [% USE Branches %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% BLOCK cssinclude %][% END %]
7 </head>
8 [% INCLUDE 'bodytag.inc' bodyid='opac-main' %]
9 [% INCLUDE 'masthead.inc' %]
10
11 <div class="main">
12     <ul class="breadcrumb">
13         <li><a href="#">Home</a></li>
14     </ul>
15
16     [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
17         [% IF ( loggedinusername ) %]
18             <div id="loggedin" class="container-fluid">
19         [% ELSE %]
20             <div id="notloggedin" class="container-fluid">
21         [% END %]
22     [% ELSE %]
23         <div id="notloggedin" class="container-fluid">
24     [% END %]
25
26     <div class="row-fluid">
27     [% IF ( OpacNav ||  OpacNavBottom ) %]
28         <div class="span2">
29             <div id="navigation">
30                 [% INCLUDE 'navigation.inc' %]
31             </div>
32         </div>
33     [% END %]
34
35     [% IF ( OpacNav ||  OpacNavBottom  ) %]
36         <div class="span7">
37     [% ELSE %]
38         <div class="span9">
39     [% END %]
40
41         [% IF ( koha_news_count ) %]
42             <div id="news" class="newscontainer">
43                 [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %]
44                 [% FOREACH koha_new IN koha_news %]
45                     <div class="newsitem">
46                         <a name="newsitem[% koha_new.idnew %]"></a><h4 class="newsheader">[% koha_new.title %]</h4>
47                         <div class="newsbody">[% koha_new.new %]</div>
48                         <div class="newsfooter">(published on [% koha_new.newdate %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author_title %] </span>[% koha_new.author_firstname %] [% koha_new.author_surname %][% END %])</div>
49                     </div>
50                 [% END %]
51             </div>
52             <div id="rssnews-container">
53                 <!-- Logged in users have a branch code or it could be explicitly set -->
54                 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a>
55                 [% IF Branches.all.size == 1 %]
56                     [% IF branchcode %]
57                         RSS feed for [% Branches.GetName( branchcode ) %] library news.
58                     [% ELSE %]
59                         RSS feed for library news.
60                     [% END %]
61                 [% ELSE %]
62                     [% IF branchcode %]
63                         RSS feed for [% Branches.GetName( branchcode ) %] and system-wide library news.
64                     [% ELSE %]
65                         RSS feed for system-wide library news.
66                     [% END %]
67                 [% END %]
68             </div>
69         [% END %]
70
71         [% IF ( display_daily_quote && daily_quote ) %]
72             <div id="daily-quote">
73                 <h3>Quote of the Day</h3>
74                 <div>
75                     <span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span>
76                 </div>
77             </div>
78         [% END %]
79
80         [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock">[% OpacMainUserBlock %]</div>[% END %]
81         </div> <!-- / .span 7/9 -->
82
83         [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
84             <div class="span3">
85                 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
86                     [% UNLESS ( loggedinusername ) %]
87                         [% UNLESS ( casAuthentication || shibbolethAuthentication ) %]
88                             <div id="login">
89                                 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth" autocomplete="off">
90                                     <input type="hidden" name="koha_login_context" value="opac" />
91                                     <fieldset class="brief">
92                                         <legend>Log in to your account:</legend>
93                                         <label for="userid">Login:</label><input type="text" id="userid" name="userid" />
94                                         <label for="password">Password:</label><input type="password" id="password" name="password" />
95                                     <fieldset class="action">
96                                         <input type="submit" value="Log in" class="btn" />
97                                     </fieldset>
98                                     [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<div id="patronregistration"><p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p></div>[% END %]
99                                     </fieldset>
100                                 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
101                                     <div id="forgotpassword">
102                                         <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
103                                     </div>
104                                 [% END %]
105                                 [% IF Koha.Preference( 'NoLoginInstructions' ) %]
106                                     <div id="nologininstructions-main">
107                                         [% Koha.Preference( 'NoLoginInstructions' ) %]
108                                     </div>
109                                 [% END %]
110                                 </form>
111                             </div> <!-- /#login -->
112                         [% END # /casAuthentication %]
113                         [% IF persona %]
114                             <a href="#" class="persona-button" id="browserid" ><span>Sign in with your email</span></a>
115                         [% END # /persona %]
116                     [% END # / loggedinusername %]
117                 [% END # /opacuserlogin %]
118                 [% IF ( OpacNavRight ) %]
119                     <div id="opacnavright">
120                         [% OpacNavRight %]
121                     </div>
122                 [% END # /OpacNavRight %]
123             </div> <!-- / .span3 -->
124         [% END # /opacuserlogin || OpacNavRight %]
125
126         </div> <!-- /.container-fluid -->
127     </div> <!-- /.row-fluid -->
128 </div> <!-- /.main -->
129
130 [% INCLUDE 'opac-bottom.inc' %]
131 [% BLOCK jsinclude %][% END %]