[% USE raw %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% USE Categories %] [% USE Price %] [% USE KohaNews %] [% SET OpacNavRight = KohaNews.get( location => "OpacNavRight", lang => lang, library => branchcode ) %] [% SET OpacMainUserBlock = KohaNews.get( location => "OpacMainUserBlock", lang => lang, library => branchcode ) %] [% SET OpacLoginInstructions = KohaNews.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] [% INCLUDE 'bodytag.inc' bodyid='opac-main' %] [% INCLUDE 'masthead.inc' %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% IF ( loggedinusername ) %]
[% ELSE %]
[% END %] [% ELSE %]
[% END %]
[% IF ( OpacNav || OpacNavBottom ) %]
[% END %] [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
[% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
[% ELSIF ( OpacNav || OpacNavBottom ) %]
[% ELSE %]
[% END %] [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] [% UNLESS news_item %]
[% END %] [% END %] [% IF ( koha_news ) %] [% IF single_news_error %]
This news item does not exist.
[% ELSE %]
[% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %] [% FOREACH koha_new IN koha_news %]

[% IF ( news_item ) %] [% koha_new.title | html %] [% ELSE %] [% koha_new.title | html %] [% END %]

[% koha_new.content | $raw %]
Published on [% koha_new.timestamp | $KohaDates with_hours = 1 %] [% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by [% koha_new.author_title | html %] [% koha_new.author_firstname | html %] [% koha_new.author_surname | html %] [% END %] [% IF ( news_item ) %] • Show all news [% END %]
[% END %] [% UNLESS news_item %] [% END %]
[% END # /IF single_news_error %] [% ELSE %] [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
No news to display.
[% END %] [% END # IF koha_news %] [% UNLESS news_item # Don't show under single news item %] [% IF ( daily_quote ) %]

Quote of the day

[% daily_quote.text | html %] ~ [% daily_quote.source | html %]
[% END %] [% IF ( OpacMainUserBlock ) %]
[% PROCESS koha_news_block news => OpacMainUserBlock %]
[% END %] [% END %]
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% UNLESS ( loggedinusername ) %] [% UNLESS ( casAuthentication || shibbolethAuthentication ) %]
Log in to your account:
[% IF ( OpacLoginInstructions ) %]
[% PROCESS koha_news_block news => OpacLoginInstructions %]
[% END %] [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %] [% END %] [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]

Don't have an account? Register here.

[% END %]
[% END # /casAuthentication %] [% ELSE %] [% IF Koha.Preference('OPACUserSummary') && dashboard_info %]

Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user %]

[% END %] [% END # /loggedinusername %] [% END # /opacuserlogin %] [% PROCESS koha_news_block news => OpacNavRight %]
[% END # /opacuserlogin || OpacNavRight %]
[% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %][% END %]