8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% BLOCK cssinclude %][% END %]
13 [% INCLUDE 'bodytag.inc' bodyid='opac-main' %]
14 [% INCLUDE 'masthead.inc' %]
17 <ul class="breadcrumb">
18 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a>
20 <span class="divider">›</span></li>
21 <li>[% news_item.title | html %]</li>
26 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
27 [% IF ( loggedinusername ) %]
28 <div id="loggedin" class="container-fluid">
30 <div id="notloggedin" class="container-fluid">
33 <div id="notloggedin" class="container-fluid">
36 <div class="row-fluid">
37 [% IF ( OpacNav || OpacNavBottom ) %]
40 [% INCLUDE 'navigation.inc' %]
45 [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
47 [% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
49 [% ELSIF ( OpacNav || OpacNavBottom ) %]
55 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
56 [% UNLESS news_item %]
57 <form id="news-branch-select" class="form-inline" name="news-branch-select" method="get" action="/cgi-bin/koha/opac-main.pl">
58 <label for="news-branch">Display news for: </label>
59 <select id="news-branch" name="branch">
60 [% IF ( branchcode == "" ) %]
61 <option value="" selected="selected">System-wide only</option>
63 <option value="">System-wide only</option>
65 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
71 [% IF ( koha_news ) %]
73 [% IF single_news_error %]
75 <div class="alert alert-error">
76 This news item does not exist.
81 <div id="news" class="newscontainer">
82 [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %]
83 [% FOREACH koha_new IN koha_news %]
84 <div class="newsitem">
85 <h4 class="newsheader">
86 [% IF ( news_item ) %]
87 [% koha_new.title | html %]
89 <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>
92 <div class="newsbody">[% koha_new.content | $raw %]</div>
93 <div class="newsfooter">
94 Published on [% koha_new.timestamp | $KohaDates with_hours = 1 %]
95 [% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %]
96 by <span class="newsauthor_title">[% koha_new.author_title | html %] </span>[% koha_new.author_firstname | html %] [% koha_new.author_surname | html %]
98 [% IF ( news_item ) %]
99 • <a href="/cgi-bin/koha/opac-main.pl">Show all news</a>
105 [% UNLESS news_item %]
106 <div id="rssnews-container">
107 <!-- Logged in users have a branch code or it could be explicitly set -->
108 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode | uri %]">
109 <i class="fa fa-rss"></i>
110 [% IF Branches.all.size == 1 %]
112 RSS feed for [% Branches.GetName( branchcode ) | html %] library news
114 RSS feed for library news
118 RSS feed for [% Branches.GetName( branchcode ) | html %] and system-wide library news
120 RSS feed for system-wide library news
128 [% END # /IF single_news_error %]
130 [% ELSE %] <!-- koha news -->
131 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
132 <div id="news" class="newscontainer">
133 <div class="newsitem">
134 <div class="newsbody">No news to display.</div>
135 <div class="newsfooter"></div>
140 [% END # IF koha_news %]
142 [% UNLESS news_item # Don't show under single news item %]
143 [% IF ( display_daily_quote && daily_quote ) %]
144 <div id="daily-quote">
145 <h3>Quote of the day</h3>
147 <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>
152 [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock">[% OpacMainUserBlock | $raw %]</div>[% END %]
155 </div> <!-- / .span 7/9 -->
157 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
159 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
160 [% UNLESS ( loggedinusername ) %]
161 [% UNLESS ( casAuthentication || shibbolethAuthentication ) %]
163 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth" autocomplete="off">
164 <input type="hidden" name="koha_login_context" value="opac" />
165 <fieldset class="brief">
166 <legend>Log in to your account:</legend>
167 <label for="userid">Login:</label><input type="text" id="userid" name="userid" />
168 <label for="password">Password:</label><input type="password" id="password" name="password" />
169 <fieldset class="action">
170 <input type="submit" value="Log in" class="btn" />
172 [% IF Koha.Preference( 'OpacLoginInstructions' ) %]
173 <div id="nologininstructions-main" class="nologininstructions">
174 [% Koha.Preference( 'OpacLoginInstructions' ) | $raw %]
177 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
178 <div id="forgotpassword-main" class="forgotpassword">
179 <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
182 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
183 <div id="patronregistration-main" class="patronregistration">
184 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
189 </div> <!-- /#login -->
190 [% END # /casAuthentication %]
192 [% IF Koha.Preference('OPACUserSummary') && dashboard_info %]
193 <div id="user_summary">
194 <h3>Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</span></a></h3>
195 <ul id="user_summary_shortcuts">
196 [% IF checkouts && checkouts > 0 %]
197 <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>
199 [% IF overdues && overdues > 0 %]
200 <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>
202 [% IF holds_pending && holds_pending > 0 %]
203 <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>
205 [% IF holds_waiting && holds_waiting > 0 %]
206 <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>
208 [% IF total_owing && total_owing > 0 %]
209 <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>
214 [% END # /loggedinusername %]
215 [% END # /opacuserlogin %]
216 [% PROCESS koha_news_block news => KohaNews.get( location => "OpacNavRight", lang => news_lang, library => branchcode ) %]
217 </div> <!-- / .span3 -->
218 [% END # /opacuserlogin || OpacNavRight %]
220 </div> <!-- /.container-fluid -->
221 </div> <!-- /.row-fluid -->
222 </div> <!-- /.main -->
224 [% INCLUDE 'opac-bottom.inc' %]
225 [% BLOCK jsinclude %][% END %]