[% USE raw %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% USE Categories %] [% USE Price %] [% USE AdditionalContents %] [% PROCESS 'i18n.inc' %] [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %] [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %] [% SET OpacNavRight = AdditionalContents.get( location => "OpacNavRight", lang => lang, library => branchcode ) %] [% SET OpacMainUserBlock = AdditionalContents.get( location => "OpacMainUserBlock", lang => lang, library => branchcode ) %] [% SET OpacLoginInstructions = AdditionalContents.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) %] [% # Three-column layout with right and left sidebars %]
[% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %] [% # Two-column layout with right sidebar %]
[% ELSIF ( OpacNav || OpacNavBottom ) %]
[% ELSE %]
[% END %]

Koha home

[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] [% UNLESS news_item %]
News
[% END %] [% END %] [% IF koha_news.count %] [% IF single_news_error %]
This news item does not exist.
[% ELSE %]
[% SET show_author = Koha.Preference('NewsAuthorDisplay') == 'opac' || Koha.Preference('NewsAuthorDisplay') == 'both' %] [% 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.published_on | $KohaDates %] [% IF ( show_author && koha_new.author ) %] by [% INCLUDE 'patron-title.inc' patron=koha_new.author %] [% 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 || Koha.Preference('opacShibOnly') ) %]
Log in to your account: [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %] Log in with Google

If you do not have a Google account, but do have a local account, you can still log in:

[% END # /IF GoogleOpenIDConnect %]
[% 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 %] [% END %] [% END # /loggedinusername %] [% END # /opacuserlogin %] [% PROCESS koha_news_block news => OpacNavRight %]
[% END # /opacuserlogin || OpacNavRight %]
[% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %][% END %]