6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% BLOCK cssinclude %][% END %]
11 [% INCLUDE 'bodytag.inc' bodyid='opac-main' %]
12 [% INCLUDE 'masthead.inc' %]
15 <ul class="breadcrumb">
16 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a>
18 <span class="divider">›</span></li>
19 <li>[% news_item.title | html %]</li>
24 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
25 [% IF ( loggedinusername ) %]
26 <div id="loggedin" class="container-fluid">
28 <div id="notloggedin" class="container-fluid">
31 <div id="notloggedin" class="container-fluid">
34 <div class="row-fluid">
35 [% IF ( OpacNav || OpacNavBottom ) %]
38 [% INCLUDE 'navigation.inc' %]
43 [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
45 [% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
47 [% ELSIF ( OpacNav || OpacNavBottom ) %]
53 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
54 [% UNLESS news_item %]
55 <form id="news-branch-select" class="form-inline" name="news-branch-select" method="get" action="/cgi-bin/koha/opac-main.pl">
56 <label for="news-branch">Display news for: </label>
57 <select id="news-branch" name="branch">
58 [% IF ( branchcode == "" ) %]
59 <option value="" selected="selected">System-wide only</option>
61 <option value="">System-wide only</option>
63 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
69 [% IF ( koha_news ) %]
71 [% IF single_news_error %]
73 <div class="alert alert-error">
74 This news item does not exist.
79 <div id="news" class="newscontainer">
80 [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %]
81 [% FOREACH koha_new IN koha_news %]
82 <div class="newsitem">
83 <h4 class="newsheader">
84 [% IF ( news_item ) %]
85 [% koha_new.title | html %]
87 <a name="newsitem[% koha_new.idnew | html %]" href="/cgi-bin/koha/opac-main.pl?news_id=[% koha_new.idnew | uri %]">[% koha_new.title | html %]</a>
90 <div class="newsbody">[% koha_new.content | $raw %]</div>
91 <div class="newsfooter">
92 Published on [% koha_new.timestamp | $KohaDates with_hours = 1 %]
93 [% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %]
94 by <span class="newsauthor_title">[% koha_new.author_title | html %] </span>[% koha_new.author_firstname | html %] [% koha_new.author_surname | html %]
96 [% IF ( news_item ) %]
97 • <a href="/cgi-bin/koha/opac-main.pl">Show all news</a>
103 [% UNLESS news_item %]
104 <div id="rssnews-container">
105 <!-- Logged in users have a branch code or it could be explicitly set -->
106 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode | uri %]">
107 <i class="fa fa-rss"></i>
108 [% IF Branches.all.size == 1 %]
110 RSS feed for [% Branches.GetName( branchcode ) | html %] library news
112 RSS feed for library news
116 RSS feed for [% Branches.GetName( branchcode ) | html %] and system-wide library news
118 RSS feed for system-wide library news
126 [% END # /IF single_news_error %]
128 [% ELSE %] <!-- koha news -->
129 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
130 <div id="news" class="newscontainer">
131 <div class="newsitem">
132 <div class="newsbody">No news to display.</div>
133 <div class="newsfooter"></div>
138 [% END # IF koha_news %]
140 [% UNLESS news_item # Don't show under single news item %]
141 [% IF ( display_daily_quote && daily_quote ) %]
142 <div id="daily-quote">
143 <h3>Quote of the day</h3>
145 <span id="daily-quote-text">[% daily_quote.text | html %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source | html %]</span>
150 [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock">[% OpacMainUserBlock | $raw %]</div>[% END %]
153 </div> <!-- / .span 7/9 -->
155 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
157 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
158 [% UNLESS ( loggedinusername ) %]
159 [% UNLESS ( casAuthentication || shibbolethAuthentication ) %]
161 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth" autocomplete="off">
162 <input type="hidden" name="koha_login_context" value="opac" />
163 <fieldset class="brief">
164 <legend>Log in to your account:</legend>
165 <label for="userid">Login:</label><input type="text" id="userid" name="userid" />
166 <label for="password">Password:</label><input type="password" id="password" name="password" />
167 <fieldset class="action">
168 <input type="submit" value="Log in" class="btn" />
170 [% IF Koha.Preference( 'OpacLoginInstructions' ) %]
171 <div id="nologininstructions-main" class="nologininstructions">
172 [% Koha.Preference( 'OpacLoginInstructions' ) | $raw %]
175 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
176 <div id="forgotpassword-main" class="forgotpassword">
177 <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
180 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
181 <div id="patronregistration-main" class="patronregistration">
182 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
187 </div> <!-- /#login -->
188 [% END # /casAuthentication %]
190 [% IF Koha.Preference('OPACUserSummary') && dashboard_info %]
191 <div id="user_summary">
192 <h3>Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</span></a></h3>
193 <ul id="user_summary_shortcuts">
194 [% IF checkouts && checkouts > 0 %]
195 <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts"><span class="user_checkouts_count count_label">[% checkouts | html %]</span> checkout(s)</a></li>
197 [% IF overdues && overdues > 0 %]
198 <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues"><span class="user_overdues_count count_label">[% overdues | html %]</span> overdue(s)</a></li>
200 [% IF holds_pending && holds_pending > 0 %]
201 <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds"><span class="user_holds_pending_count count_label">[% holds_pending | html %]</span> hold(s) pending</a></li>
203 [% IF holds_waiting && holds_waiting > 0 %]
204 <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds"><span class="user_holds_waiting_count count_label">[% holds_waiting | html %]</span> hold(s) waiting</a></li>
206 [% IF total_owing && total_owing > 0 %]
207 <li><a href="/cgi-bin/koha/opac-account.pl"><span class="user_fines_count count_label">[% total_owing | $Price with_symbol => 1 %]</span> due in fines and charges</a></li>
212 [% END # /loggedinusername %]
213 [% END # /opacuserlogin %]
214 [% IF ( OpacNavRight ) %]
215 <div id="opacnavright">
216 [% OpacNavRight | $raw %]
218 [% END # /OpacNavRight %]
219 </div> <!-- / .span3 -->
220 [% END # /opacuserlogin || OpacNavRight %]
222 </div> <!-- /.container-fluid -->
223 </div> <!-- /.row-fluid -->
224 </div> <!-- /.main -->
226 [% INCLUDE 'opac-bottom.inc' %]
227 [% BLOCK jsinclude %][% END %]