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 ) %]
52 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
53 <form id="news-branch-select" class="form-inline" name="news-branch-select" method="get" action="/cgi-bin/koha/opac-main.pl">
54 <label for="news-branch">Display news for: </label>
55 <select id="news-branch" name="branch">
56 [% IF ( branchcode == "" ) %]
57 <option value="" selected="selected">system-wide only</option>
59 <option value="" >system-wide only</option>
61 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
66 [% IF ( koha_news ) %]
68 [% IF single_news_error %]
70 <div class="alert alert-error">
71 This news item does not exist.
76 <div id="news" class="newscontainer">
77 [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %]
78 [% FOREACH koha_new IN koha_news %]
79 <div class="newsitem">
80 <a name="newsitem[% koha_new.idnew | html %]" href="/cgi-bin/koha/opac-main.pl?news_id=[% koha_new.idnew | uri %]"><h4 class="newsheader">[% koha_new.title | html %]</h4></a>
81 <div class="newsbody">[% koha_new.content | $raw %]</div>
82 <div class="newsfooter">(published on [% koha_new.timestamp | $KohaDates with_hours = 1 %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author_title | html %] </span>[% koha_new.author_firstname | html %] [% koha_new.author_surname | html %][% END %])</div>
89 [% UNLESS news_item %] <!-- unless single news item -->
91 <div id="rssnews-container">
92 <!-- Logged in users have a branch code or it could be explicitly set -->
93 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode | uri %]"><i class="fa fa-rss"></i>
94 [% IF Branches.all.size == 1 %]
96 RSS feed for [% Branches.GetName( branchcode ) | html %] library news.
98 RSS feed for library news.
102 RSS feed for [% Branches.GetName( branchcode ) | html %] and system-wide library news.
104 RSS feed for system-wide library news.
110 [% END %] <!-- single news item -->
112 [% ELSE %] <!-- koha news -->
113 [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
114 <div id="news" class="newscontainer">
115 <div class="newsitem">
116 <div class="newsbody">No news to display.</div>
117 <div class="newsfooter"></div>
122 [% IF ( display_daily_quote && daily_quote ) %]
123 <div id="daily-quote">
124 <h3>Quote of the day</h3>
126 <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>
131 [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock">[% OpacMainUserBlock | $raw %]</div>[% END %]
133 [% END %] <!-- koha news -->
134 </div> <!-- / .span 7/9 -->
136 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
138 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
139 [% UNLESS ( loggedinusername ) %]
140 [% UNLESS ( casAuthentication || shibbolethAuthentication ) %]
142 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth" autocomplete="off">
143 <input type="hidden" name="koha_login_context" value="opac" />
144 <fieldset class="brief">
145 <legend>Log in to your account:</legend>
146 <label for="userid">Login:</label><input type="text" id="userid" name="userid" />
147 <label for="password">Password:</label><input type="password" id="password" name="password" />
148 <fieldset class="action">
149 <input type="submit" value="Log in" class="btn" />
151 [% IF Koha.Preference( 'OpacLoginInstructions' ) %]
152 <div id="nologininstructions-main" class="nologininstructions">
153 [% Koha.Preference( 'OpacLoginInstructions' ) | $raw %]
156 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
157 <div id="forgotpassword-main" class="forgotpassword">
158 <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
161 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
162 <div id="patronregistration-main" class="patronregistration">
163 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
168 </div> <!-- /#login -->
169 [% END # /casAuthentication %]
171 [% IF Koha.Preference('OPACUserSummary') && dashboard_info %]
172 <div id="user_summary">
173 <h3>Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</span></a></h3>
174 <ul id="user_summary_shortcuts">
175 [% IF checkouts && checkouts > 0 %]
176 <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>
178 [% IF overdues && overdues > 0 %]
179 <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>
181 [% IF holds_pending && holds_pending > 0 %]
182 <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>
184 [% IF holds_waiting && holds_waiting > 0 %]
185 <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>
187 [% IF total_owing && total_owing > 0 %]
188 <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>
193 [% END # /loggedinusername %]
194 [% END # /opacuserlogin %]
195 [% IF ( OpacNavRight ) %]
196 <div id="opacnavright">
197 [% OpacNavRight | $raw %]
199 [% END # /OpacNavRight %]
200 </div> <!-- / .span3 -->
201 [% END # /opacuserlogin || OpacNavRight %]
203 </div> <!-- /.container-fluid -->
204 </div> <!-- /.row-fluid -->
205 </div> <!-- /.main -->
207 [% INCLUDE 'opac-bottom.inc' %]
208 [% BLOCK jsinclude %][% END %]