[% USE raw %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% USE Categories %] [% USE Price %] [% USE AdditionalContents %] [% USE AuthClient %] [% PROCESS 'i18n.inc' %] [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% SET OpacNavRight = AdditionalContents.get( location => "OpacNavRight", lang => lang, library => logged_in_user.branchcode || default_branch ) %] [% SET OpacMainUserBlock = AdditionalContents.get( location => "OpacMainUserBlock", lang => lang, library => logged_in_user.branchcode || default_branch ) %] [% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode || default_branch ) %] [% 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' %]
[% WRAPPER breadcrumbs %] [% IF news_item %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% news_item.title | html %] [% END %] [% ELSE %] [% END %] [% END #/ WRAPPER breadcrumbs %] [% 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_id %]
News
[% END %] [% END %] [% IF news_id %] [% SET koha_news = AdditionalContents.get( category => 'news', location => ['opac_only', 'staff_and_opac'], lang => lang, news_id => news_id ) %] [% ELSE %] [% SET koha_news = AdditionalContents.get( category => 'news', location => ['opac_only', 'staff_and_opac'], lang => lang, library => branchcode ) %] [% END %] [% IF koha_news.content.count %]
[% SET show_author = Koha.Preference('NewsAuthorDisplay') == 'opac' || Koha.Preference('NewsAuthorDisplay') == 'both' %] [% FOREACH koha_new IN koha_news.content %]

[% 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_id ) %] • Show all news [% END %]
[% END %] [% UNLESS news_id %] [% END %]
[% ELSIF news_id %]
This news item does not exist.
[% 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') ) %]
[% INCLUDE 'csrf-token.inc' %]
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 %] [% SET identity_providers = AuthClient.get_providers('opac') %] [% IF ( ! identity_providers.empty ) %] [% FOREACH provider IN identity_providers %]

[% IF provider.icon_url %] [% ELSE %] [% END %] Log in with [% provider.description | html %]

[% END %]

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

[% END # /IF identity_providers.size %] [% IF ( OpacLoginInstructions ) %]
[% PROCESS koha_news_block news => OpacLoginInstructions %]
[% END %] [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %] [% END %] [% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %] [% 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 %]