7 [% USE AdditionalContents %]
8 [% PROCESS 'i18n.inc' %]
9 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
10 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
11 [% SET OpacNavRight = AdditionalContents.get( location => "OpacNavRight", lang => lang, library => logged_in_user.branchcode || default_branch ) %]
12 [% SET OpacMainUserBlock = AdditionalContents.get( location => "OpacMainUserBlock", lang => lang, library => logged_in_user.branchcode || default_branch ) %]
13 [% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode || default_branch ) %]
14 [% INCLUDE 'doc-head-open.inc' %]
15 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% BLOCK cssinclude %][% END %]
19 [% INCLUDE 'bodytag.inc' bodyid='opac-main' %]
20 [% INCLUDE 'masthead.inc' %]
23 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
24 <ol class="breadcrumb">
26 <li class="breadcrumb-item">
27 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
29 <li class="breadcrumb-item active">
30 <a href="#" aria-current="page">[% news_item.title | html %]</a>
33 <li class="breadcrumb-item active">
34 <a href="#" aria-current="page">Home</a>
38 </nav> <!-- /#breadcrumbs -->
40 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
41 [% IF ( loggedinusername ) %]
42 <div id="loggedin" class="container-fluid">
44 <div id="notloggedin" class="container-fluid">
47 <div id="notloggedin" class="container-fluid">
51 [% IF ( OpacNav || OpacNavBottom ) %]
52 <div class="col-12 col-lg-2 order-3 order-lg-1">
54 [% INCLUDE 'navigation.inc' %]
59 [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
60 [% # Three-column layout with right and left sidebars %]
61 <div class="col-12 col-lg-7 order-md-1 maincontent">
62 [% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
63 [% # Two-column layout with right sidebar %]
64 <div class="col-12 col-lg-9 order-md-1 maincontent">
65 [% ELSIF ( OpacNav || OpacNavBottom ) %]
66 <div class="col-12 col-lg-10 order-md-1 maincontent">
68 <div class="col order-md-1 maincontent">
71 <h1 class="sr-only">Koha home</h1>
73 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
74 [% UNLESS news_item %]
75 <form id="news-branch-select" class="form-inline" name="news-branch-select" method="get" action="/cgi-bin/koha/opac-main.pl">
76 <legend class="sr-only">News</legend>
77 <label for="news-branch">Display news for: </label>
78 <select id="news-branch" name="branch">
79 [% IF ( branchcode == "" ) %]
80 <option value="" selected="selected">System-wide only</option>
82 <option value="">System-wide only</option>
84 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
90 [% IF koha_news.count %]
92 [% IF single_news_error %]
94 <div class="alert alert-error">
95 This news item does not exist.
100 <div id="news" class="newscontainer">
101 [% SET show_author = Koha.Preference('NewsAuthorDisplay') == 'opac' || Koha.Preference('NewsAuthorDisplay') == 'both' %]
102 [% FOREACH koha_new IN koha_news %]
103 [% IF koha_new.category == 'news' %]
104 <div class="newsitem">
105 <h4 class="newsheader">
106 [% IF ( news_item ) %]
107 [% koha_new.title | html %]
109 <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>
112 <div class="newsbody">[% koha_new.content | $raw %]</div>
113 <div class="newsfooter">
114 Published on [% koha_new.published_on | $KohaDates %]
115 [% IF ( show_author && koha_new.author ) %]
116 by <span class="newsauthor">[% INCLUDE 'patron-title.inc' patron=koha_new.author %]</span>
118 [% IF ( news_item ) %]
119 • <a href="/cgi-bin/koha/opac-main.pl">Show all news</a>
126 [% UNLESS news_item %]
127 <div id="rssnews-container">
128 <!-- Logged in users have a branch code or it could be explicitly set -->
129 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode | uri %]">
130 <i class="fa fa-rss" aria-hidden="true"></i>
131 [% IF Branches.all.size == 1 %]
133 <span>RSS feed for [% Branches.GetName( branchcode ) | html %] library news</span>
135 <span>RSS feed for library news</span>
139 <span>RSS feed for [% Branches.GetName( branchcode ) | html %] and system-wide library news</span>
141 <span>RSS feed for system-wide library news</span>
149 [% END # /IF single_news_error %]
151 [% ELSE %] <!-- koha news -->
152 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
153 <div id="news" class="newscontainer">
154 <div class="newsitem">
155 <div class="newsbody">No news to display.</div>
156 <div class="newsfooter"></div>
161 [% END # IF koha_news %]
163 [% UNLESS news_item # Don't show under single news item %]
164 [% IF ( daily_quote ) %]
165 <div id="daily-quote">
166 <h2>Quote of the day</h2>
168 <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>
173 [% IF ( OpacMainUserBlock ) %]
174 [% 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 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
191 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-light" id="openid_connect"><i class="fa fa-google" aria-hidden="true"></i> Log in with Google</a>
192 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
193 [% END # /IF GoogleOpenIDConnect %]
194 <div class="local-login">
195 <label for="userid">Login:</label>
196 <input class="form-control" type="text" id="userid" name="userid" autocomplete="off" />
197 <label for="password">Password:</label>
198 <input class="form-control" type="password" id="password" name="password" autocomplete="off" />
199 <fieldset class="action">
200 <input type="submit" value="Log in" class="btn btn-primary" />
203 [% IF ( OpacLoginInstructions ) %]
204 <div id="nologininstructions-main" class="nologininstructions">
205 [% PROCESS koha_news_block news => OpacLoginInstructions %]
208 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
209 <div id="forgotpassword-main" class="forgotpassword">
210 <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
213 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
214 <div id="patronregistration-main" class="patronregistration">
215 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
220 </div> <!-- /#login -->
221 [% END # /casAuthentication %]
223 [% IF Koha.Preference('OPACUserSummary') && dashboard_info %]
224 <div id="user_summary">
225 <h2>User summary</h2>
226 <p>Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</span></a></p>
227 <ul id="user_summary_shortcuts">
228 [% IF checkouts && checkouts > 0 %]
230 <a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">
231 <span class="user_checkouts_count count_label">[% checkouts | html %]</span>
232 [% tn('checkout', 'checkouts', checkouts ) | html %]
236 [% IF overdues && overdues > 0 %]
238 <a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">
239 <span class="user_overdues_count count_label">[% overdues | html %]</span>
240 [% tn('overdue', 'overdues', overdues ) | html %]
244 [% IF holds_pending && holds_pending > 0 %]
246 <a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">
247 <span class="user_holds_pending_count count_label">[% holds_pending | html %]</span>
248 [% tn('hold pending', 'holds pending', holds_pending ) | html %]
252 [% IF holds_waiting && holds_waiting > 0 %]
254 <a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">
255 <span class="user_holds_waiting_count count_label">[% holds_waiting | html %]</span>
256 [% tn('hold waiting', 'holds waiting', holds_waiting ) | html %]
260 [% IF total_owing && total_owing > 0 %]
262 <a href="/cgi-bin/koha/opac-account.pl">
263 <span class="user_fines_count count_label">[% total_owing | $Price with_symbol => 1 %]</span>
264 due in fines and charges
268 [% IF patron_messages && patron_messages.count > 0 || opacnote %]
271 <a href="/cgi-bin/koha/opac-user.pl">
272 <span class="count_label">[% patron_messages.count + 1 | html %]</span>
273 [% tn('message', 'messages', patron_messages.count + 1 ) | html %]
278 <a href="/cgi-bin/koha/opac-user.pl">
279 <span class="count_label">[% patron_messages.count | html %]</span>
280 [% tn('message', 'messages', patron_messages.count ) | html %]
288 [% END # /loggedinusername %]
289 [% END # /opacuserlogin %]
290 [% PROCESS koha_news_block news => OpacNavRight %]
291 </div> <!-- / .col -->
292 [% END # /opacuserlogin || OpacNavRight %]
294 </div> <!-- /.container-fluid -->
295 </div> <!-- /.row -->
296 </div> <!-- /.main -->
298 [% INCLUDE 'opac-bottom.inc' %]
299 [% BLOCK jsinclude %][% END %]