Bug 14544: QA fixes - some minor bug fixes
[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                 [% SET branchcode = Branches.GetLoggedInBranchcode() %]
54                 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a>
55                 RSS feed for [% IF ( loggedinusername ) %][% Branches.GetName( branchcode ) %] <i>and</i> [% END %] system-wide library news.
56             </div>
57         [% END %]
58
59         [% IF ( display_daily_quote && daily_quote ) %]
60             <div id="daily-quote">
61                 <h3>Quote of the Day</h3>
62                 <div>
63                     <span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span>
64                 </div>
65             </div>
66         [% END %]
67
68         [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock">[% OpacMainUserBlock %]</div>[% END %]
69         </div> <!-- / .span 7/9 -->
70
71         [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
72             <div class="span3">
73                 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
74                     [% UNLESS ( loggedinusername ) %]
75                         [% UNLESS ( casAuthentication || shibbolethAuthentication ) %]
76                             <div id="login">
77                                 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth">
78                                     <input type="hidden" name="koha_login_context" value="opac" />
79                                     <fieldset class="brief">
80                                         <legend>Log in to your account:</legend>
81                                         <label for="userid">Login:</label><input type="text" id="userid" name="userid" />
82                                         <label for="password">Password:</label><input type="password" id="password" name="password" />
83                                     <fieldset class="action">
84                                         <input type="submit" value="Log in" class="btn" />
85                                     </fieldset>
86                                     [% 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 %]
87                                     </fieldset>
88                                 [% IF Koha.Preference( 'NoLoginInstructions' ) %]
89                                     <div id="nologininstructions-main">
90                                         [% Koha.Preference( 'NoLoginInstructions' ) %]
91                                     </div>
92                                 [% END %]
93                                 </form>
94                             </div> <!-- /#login -->
95                         [% END # /casAuthentication %]
96                         [% IF persona %]
97                             <a href="#" class="persona-button" id="browserid" ><span>Sign in with your email</span></a>
98                         [% END # /persona %]
99                     [% END # / loggedinusername %]
100                 [% END # /opacuserlogin %]
101                 [% IF ( OpacNavRight ) %]
102                     <div id="opacnavright">
103                         [% OpacNavRight %]
104                     </div>
105                 [% END # /OpacNavRight %]
106             </div> <!-- / .span3 -->
107         [% END # /opacuserlogin || OpacNavRight %]
108
109         </div> <!-- /.container-fluid -->
110     </div> <!-- /.row-fluid -->
111 </div> <!-- /.main -->
112
113 [% INCLUDE 'opac-bottom.inc' %]
114 [% BLOCK jsinclude %][% END %]