Bug 17834: Make translation easier
[koha_ffzg] / 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             [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
41                 <form id="news-branch-select" class="form-inline" name="news-branch-select" method="get" action="/cgi-bin/koha/opac-main.pl">
42                 <label for="news-branch">Display news for: </label>
43                 <select id="news-branch" name="branch">
44                 [% IF ( branchcode == "" ) %]
45                 <option value="" selected="selected">system-wide only</option>
46                 [% ELSE %]
47                 <option value=""         >system-wide only</option>
48                 [% END %]
49                 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
50                 </select>
51                 </form>
52             [% END %]
53
54         [% IF ( koha_news_count ) %]
55
56             <div id="news" class="newscontainer">
57                 [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %]
58                 [% FOREACH koha_new IN koha_news %]
59                     <div class="newsitem">
60                         <a name="newsitem[% koha_new.idnew %]"></a><h4 class="newsheader">[% koha_new.title %]</h4>
61                         <div class="newsbody">[% koha_new.content %]</div>
62                         <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>
63                     </div>
64                 [% END %]
65             </div>
66             <div id="rssnews-container">
67                 <!-- Logged in users have a branch code or it could be explicitly set -->
68                 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a>
69                 [% IF Branches.all.size == 1 %]
70                     [% IF branchcode %]
71                         RSS feed for [% Branches.GetName( branchcode ) %] library news.
72                     [% ELSE %]
73                         RSS feed for library news.
74                     [% END %]
75                 [% ELSE %]
76                     [% IF branchcode %]
77                         RSS feed for [% Branches.GetName( branchcode ) %] and system-wide library news.
78                     [% ELSE %]
79                         RSS feed for system-wide library news.
80                     [% END %]
81                 [% END %]
82             </div>
83             [% ELSE %]
84                 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
85                     <div id="news" class="newscontainer">
86                         <div class="newsitem">
87                             <div class="newsbody">No news to display.</div>
88                             <div class="newsfooter"></div>
89                         </div>
90                     </div>
91                 [% END %]
92             [% END %]
93
94         [% IF ( display_daily_quote && daily_quote ) %]
95             <div id="daily-quote">
96                 <h3>Quote of the Day</h3>
97                 <div>
98                     <span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span>
99                 </div>
100             </div>
101         [% END %]
102
103         [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock">[% OpacMainUserBlock %]</div>[% END %]
104         </div> <!-- / .span 7/9 -->
105
106         [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
107             <div class="span3">
108                 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
109                     [% UNLESS ( loggedinusername ) %]
110                         [% UNLESS ( casAuthentication || shibbolethAuthentication ) %]
111                             <div id="login">
112                                 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth">
113                                     <input type="hidden" name="koha_login_context" value="opac" />
114                                     <fieldset class="brief">
115                                         <legend>Log in to your account:</legend>
116                                         <label for="userid">Login:</label><input type="text" id="userid" name="userid" />
117                                         <label for="password">Password:</label><input type="password" id="password" name="password" />
118                                     <fieldset class="action">
119                                         <input type="submit" value="Log in" class="btn" />
120                                     </fieldset>
121                                     [% 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 %]
122                                     </fieldset>
123                                 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
124                                     <div id="forgotpassword">
125                                         <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
126                                     </div>
127                                 [% END %]
128                                 [% IF Koha.Preference( 'NoLoginInstructions' ) %]
129                                     <div id="nologininstructions-main">
130                                         [% Koha.Preference( 'NoLoginInstructions' ) %]
131                                     </div>
132                                 [% END %]
133                                 </form>
134                             </div> <!-- /#login -->
135                         [% END # /casAuthentication %]
136                     [% END # / loggedinusername %]
137                 [% END # /opacuserlogin %]
138                 [% IF ( OpacNavRight ) %]
139                     <div id="opacnavright">
140                         [% OpacNavRight %]
141                     </div>
142                 [% END # /OpacNavRight %]
143             </div> <!-- / .span3 -->
144         [% END # /opacuserlogin || OpacNavRight %]
145
146         </div> <!-- /.container-fluid -->
147     </div> <!-- /.row-fluid -->
148 </div> <!-- /.main -->
149
150 [% INCLUDE 'opac-bottom.inc' %]
151 [% BLOCK jsinclude %][% END %]