-
-
- Home - [% IF news_item %] - › -
- [% news_item.title %] - [% END %] - -
[% END %]
-
- [% IF ( OpacNav || OpacNavBottom ) %]
-
-
- [% INCLUDE 'navigation.inc' %]
+
+ [% IF ( OpacNav || OpacNavBottom ) %]
+
- [% END %]
+ [% END %]
- [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
-
+
-
+ [% INCLUDE 'navigation.inc' %]
+
- [% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
-
- [% ELSIF ( OpacNav || OpacNavBottom ) %]
-
- [% ELSE %]
-
- [% END %]
- [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
+ [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
+ [% # Three-column layout with right and left sidebars %]
+
[% INCLUDE 'opac-bottom.inc' %]
+ [% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %]
+ [% # Two-column layout with right sidebar %]
+
+ [% ELSIF ( OpacNav || OpacNavBottom ) %]
+
+
+ [% ELSE %]
+
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %]
-
+ [% END %]
+
+
+
+ Koha home
+ + [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] + [% UNLESS news_item %] [% END %] + [% END %] - [% IF ( koha_news ) %] + [% IF koha_news.count %] [% IF single_news_error %] @@ -73,51 +97,55 @@ [% ELSE %] -
- [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %]
- [% FOREACH koha_new IN koha_news %]
-
-
- [% END %]
-
- [% UNLESS news_item %]
-
-
-
- [% END %]
- [% koha_new.title | html %]
-[% koha_new.content | $raw %]
- (published on [% koha_new.timestamp | $KohaDates with_hours = 1 | html %][% 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 ( koha_new.expirationdate ) %], expiry on [% koha_new.expirationdate %][% END %])
-
-
-
- [% IF Branches.all.size == 1 %]
- [% IF branchcode %]
- RSS feed for [% Branches.GetName( branchcode ) | html %] library news.
- [% ELSE %]
- RSS feed for library news.
- [% END %]
- [% ELSE %]
- [% IF branchcode %]
- RSS feed for [% Branches.GetName( branchcode ) | html %] and system-wide library news.
- [% ELSE %]
- RSS feed for system-wide library news.
+
[% END %]
+
+ [% END # IF koha_news %]
+
+ [% UNLESS news_item # Don't show under single news item %]
+ [% IF ( daily_quote ) %]
+
+ [% SET show_author = Koha.Preference('NewsAuthorDisplay') == 'opac' || Koha.Preference('NewsAuthorDisplay') == 'both' %]
+ [% FOREACH koha_new IN koha_news %]
+
- [% IF ( display_daily_quote && daily_quote ) %]
-
+
[% END %]
- [% END %]
- + [% 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 %]
- [% IF ( OpacMainUserBlock ) %]Quote of the day
-
- [% daily_quote.text | html %] ~ [% daily_quote.source | html %]
-
+ [% UNLESS news_item %]
+
+ [% END %]
[% OpacMainUserBlock | $raw %]
[% END %]
+ [% END # /IF single_news_error %]
- [% END %]
[% ELSE %]
[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
@@ -127,30 +155,53 @@
+
+ [% END %]
+
+ [% IF ( OpacMainUserBlock ) %]
+ [% PROCESS koha_news_block news => OpacMainUserBlock %]
+ [% END %]
[% END %]
- Quote of the day
+
+ [% daily_quote.text | html %] ~ [% daily_quote.source | html %]
+
+
+
-
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
[% UNLESS ( loggedinusername ) %]
- [% UNLESS ( casAuthentication || shibbolethAuthentication ) %]
+ [% UNLESS ( casAuthentication || shibbolethAuthentication || Koha.Preference('opacShibOnly') ) %]
+ [% PROCESS koha_news_block news => OpacNavRight %]
+
[% END # /opacuserlogin || OpacNavRight %]