8 [% PROCESS 'i18n.inc' %]
9 [% SET OpacNavRight = KohaNews.get( location => "OpacNavRight", lang => lang, library => branchcode ) %]
10 [% SET OpacMainUserBlock = KohaNews.get( location => "OpacMainUserBlock", lang => lang, library => branchcode ) %]
11 [% SET OpacLoginInstructions = KohaNews.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
14 [% INCLUDE 'doc-head-close.inc' %]
15 [% BLOCK cssinclude %][% END %]
17 [% INCLUDE 'bodytag.inc' bodyid='opac-main' %]
18 [% INCLUDE 'masthead.inc' %]
21 <nav aria-label="breadcrumb">
22 <ul class="breadcrumb">
24 <li class="breadcrumb-item">
25 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
27 <li class="breadcrumb-item active" aria-current="page">
28 [% news_item.title | html %]
31 <li class="breadcrumb-item active" aria-current="page">
32 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
38 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
39 [% IF ( loggedinusername ) %]
40 <div id="loggedin" class="container-fluid">
42 <div id="notloggedin" class="container-fluid">
45 <div id="notloggedin" class="container-fluid">
49 [% IF ( OpacNav || OpacNavBottom ) %]
50 <div class="col-12 col-lg-2 order-3 order-lg-1">
52 [% INCLUDE 'navigation.inc' %]
57 [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
58 [% # Three-column layout with right and left sidebars %]
59 <div class="col-12 col-lg-7 order-md-1 maincontent">
60 [% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
61 [% # Two-column layout with right sidebar %]
62 <div class="col-12 col-lg-9 order-md-1 maincontent">
63 [% ELSIF ( OpacNav || OpacNavBottom ) %]
64 <div class="col-12 col-lg-10 order-md-1 maincontent">
66 <div class="col order-md-1 maincontent">
69 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
70 [% UNLESS news_item %]
71 <form id="news-branch-select" class="form-inline" name="news-branch-select" method="get" action="/cgi-bin/koha/opac-main.pl">
72 <label for="news-branch">Display news for: </label>
73 <select id="news-branch" name="branch">
74 [% IF ( branchcode == "" ) %]
75 <option value="" selected="selected">System-wide only</option>
77 <option value="">System-wide only</option>
79 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
85 [% IF ( koha_news ) %]
87 [% IF single_news_error %]
89 <div class="alert alert-error">
90 This news item does not exist.
95 <div id="news" class="newscontainer">
96 [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %]
97 [% FOREACH koha_new IN koha_news %]
98 <div class="newsitem">
99 <h4 class="newsheader">
100 [% IF ( news_item ) %]
101 [% koha_new.title | html %]
103 <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>
106 <div class="newsbody">[% koha_new.content | $raw %]</div>
107 <div class="newsfooter">
108 Published on [% koha_new.published_on | $KohaDates %]
109 [% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %]
111 [% SET author = koha_new.author %]
112 by <span class="newsauthor_title">[% author.title | html %] </span>[% author.firstname | html %] [% author.surname | html %]
114 by <span class="newsauthor_title">[% koha_new.author_title | html %] </span>[% koha_new.author_firstname | html %] [% koha_new.author_surname | html %]
117 [% IF ( news_item ) %]
118 • <a href="/cgi-bin/koha/opac-main.pl">Show all news</a>
124 [% UNLESS news_item %]
125 <div id="rssnews-container">
126 <!-- Logged in users have a branch code or it could be explicitly set -->
127 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode | uri %]">
128 <i class="fa fa-rss" aria-hidden="true"></i>
129 [% IF Branches.all.size == 1 %]
131 RSS feed for [% Branches.GetName( branchcode ) | html %] library news
133 RSS feed for library news
137 RSS feed for [% Branches.GetName( branchcode ) | html %] and system-wide library news
139 RSS feed for system-wide library news
147 [% END # /IF single_news_error %]
149 [% ELSE %] <!-- koha news -->
150 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
151 <div id="news" class="newscontainer">
152 <div class="newsitem">
153 <div class="newsbody">No news to display.</div>
154 <div class="newsfooter"></div>
159 [% END # IF koha_news %]
161 [% UNLESS news_item # Don't show under single news item %]
162 [% IF ( daily_quote ) %]
163 <div id="daily-quote">
164 <h3>Quote of the day</h3>
166 <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>
171 [% IF ( OpacMainUserBlock ) %]
172 <div id="opacmainuserblock">
173 [% PROCESS koha_news_block news => OpacMainUserBlock %]
178 </div> <!-- / .col 6/8 -->
180 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
181 <div class="col-12 col-lg-3 order-md-2">
182 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
183 [% UNLESS ( loggedinusername ) %]
184 [% UNLESS ( casAuthentication || shibbolethAuthentication || Koha.Preference('opacShibOnly') ) %]
186 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth" autocomplete="off">
187 <input type="hidden" name="koha_login_context" value="opac" />
188 <fieldset class="brief">
189 <legend>Log in to your account:</legend>
190 <label for="userid">Login:</label>
191 <input class="form-control" type="text" id="userid" name="userid" />
192 <label for="password">Password:</label>
193 <input class="form-control" type="password" id="password" name="password" />
194 <fieldset class="action">
195 <input type="submit" value="Log in" class="btn btn-primary" />
197 [% IF ( OpacLoginInstructions ) %]
198 <div id="nologininstructions-main" class="nologininstructions">
199 [% PROCESS koha_news_block news => OpacLoginInstructions %]
202 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
203 <div id="forgotpassword-main" class="forgotpassword">
204 <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
207 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
208 <div id="patronregistration-main" class="patronregistration">
209 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
214 </div> <!-- /#login -->
215 [% END # /casAuthentication %]
217 [% IF Koha.Preference('OPACUserSummary') && dashboard_info %]
218 <div id="user_summary">
219 <h3>Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</span></a></h3>
220 <ul id="user_summary_shortcuts">
221 [% IF checkouts && checkouts > 0 %]
223 <a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">
224 <span class="user_checkouts_count count_label">[% checkouts | html %]</span>
225 [% tn('checkout', 'checkouts', checkouts ) | html %]
229 [% IF overdues && overdues > 0 %]
231 <a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">
232 <span class="user_overdues_count count_label">[% overdues | html %]</span>
233 [% tn('overdue', 'overdues', overdues ) | html %]
237 [% IF holds_pending && holds_pending > 0 %]
239 <a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">
240 <span class="user_holds_pending_count count_label">[% holds_pending | html %]</span>
241 [% tn('hold pending', 'holds pending', holds_pending ) | html %]
245 [% IF holds_waiting && holds_waiting > 0 %]
247 <a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">
248 <span class="user_holds_waiting_count count_label">[% holds_waiting | html %]</span>
249 [% tn('hold waiting', 'holds waiting', holds_waiting ) | html %]
253 [% IF total_owing && total_owing > 0 %]
255 <a href="/cgi-bin/koha/opac-account.pl">
256 <span class="user_fines_count count_label">[% total_owing | $Price with_symbol => 1 %]</span>
257 due in fines and charges
261 [% IF patron_messages && patron_messages.count > 0 || opacnote %]
264 <a href="/cgi-bin/koha/opac-user.pl">
265 <span class="count_label">[% patron_messages.count + 1 | html %]</span>
266 [% tn('message', 'messages', patron_messages.count + 1 ) | html %]
271 <a href="/cgi-bin/koha/opac-user.pl">
272 <span class="count_label">[% patron_messages.count | html %]</span>
273 [% tn('message', 'messages', patron_messages.count ) | html %]
281 [% END # /loggedinusername %]
282 [% END # /opacuserlogin %]
283 [% PROCESS koha_news_block news => OpacNavRight %]
284 </div> <!-- / .col -->
285 [% END # /opacuserlogin || OpacNavRight %]
287 </div> <!-- /.container-fluid -->
288 </div> <!-- /.row -->
289 </div> <!-- /.main -->
291 [% INCLUDE 'opac-bottom.inc' %]
292 [% BLOCK jsinclude %][% END %]