Bug 8679 [REVISED] Remove usage of Amazon API
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-main.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="opac-main">
6 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
7    <div id="bd">
8 [% INCLUDE 'masthead.inc' %]
9
10         <div id="yui-main">
11
12         <div class="yui-b">
13      [% IF ( opacuserlogin ) %]
14          [% IF ( loggedinusername ) %]
15          <div id="loggedin" class="yui-ge">
16          [% ELSE %]
17         <div id="notloggedin" class="yui-ge">
18          [% END %]
19      [% ELSE %]
20         <div id="notloggedin" class="yui-ge">
21     [% END %]
22         <div class="yui-u first">
23         [% IF ( koha_news_count ) %]
24 <div id="news" class="container">
25     <table>
26     [% FOREACH koha_new IN koha_news %]
27     <tr><th>[% koha_new.title %]</th></tr>
28     <tr><td><p>[% koha_new.new %]</p>
29                 <p><i>(published on [% koha_new.newdate %])</i></p></td></tr>
30     [% END %]
31     </table>
32 </div>
33 [% END %]
34
35       [% IF ( display_daily_quote && daily_quote ) %]
36     <div id="daily-quote" class="container"><h1>Quote of the Day</h1><div><span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span></div></div>
37 [% END %]
38
39         [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock" class="container">[% OpacMainUserBlock %]</div>[% END %]
40
41 </div>
42                 
43     [% IF ( opacuserlogin || OpacNavRight ) %]
44     <div class="yui-u">
45     [% IF ( opacuserlogin ) %]
46     [% UNLESS ( loggedinusername ) %]
47     [% UNLESS ( casAuthentication ) %]
48     <div id="login" class="container clearfix">
49         <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth">
50     <input type="hidden" name="koha_login_context" value="opac" />
51         <fieldset class="brief">
52         <legend>Log in to your account:</legend>
53                 <ol>
54                 <li><label for="userid">Login:</label><input type="text" id="userid" size="10" name="userid" /></li>
55                 <li><label for="password">Password:</label><input type="password" id="password" size="10" name="password" /></li>
56                 </ol>    <fieldset class="action">
57          <input type="submit" value="Log In" class="submit" />
58          </fieldset></fieldset>
59         </form>
60         </div>
61     [% END %]
62     [% END %]
63     [% END %]
64     [% IF ( OpacNavRight ) %]<div id="opacrightsidebar" class="container">[% OpacNavRight %]</div>[% END %]
65     </div>
66     [% END %]
67 </div>
68 </div>
69 </div>
70 [% IF ( OpacNav ) %]<div class="yui-b">
71 <div id="opacnav" class="container">
72 [% INCLUDE 'navigation.inc' %]
73 </div>
74 </div>[% END %]
75 </div>
76
77 [% INCLUDE 'opac-bottom.inc' %]