X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fopac-tmpl%2Fbootstrap%2Fen%2Fmodules%2Fopac-main.tt;h=2288fc6b9fc20b454d930066e282f92ceefc214f;hb=13d9bdc74417f337106070f85332a7ef24331878;hp=6da2b5412e8976fed4e0d1d6ed08362ea723d2ab;hpb=1f15b585d486c6cd53086442f248b29bbe6b1e13;p=srvgit diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index 6da2b5412e..2288fc6b9f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -1,7 +1,15 @@ +[% 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 %][% ELSE %]Koha online[% END %] catalog +[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] @@ -10,7 +18,12 @@
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] @@ -32,40 +45,120 @@
[% END %] - [% IF ( OpacNav || OpacNavBottom ) %] -
+ [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %] +
+ [% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %] +
+ [% ELSIF ( OpacNav || OpacNavBottom ) %] +
[% ELSE %] -
+
[% END %] - [% IF ( koha_news_count ) %] -
- [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %] - [% FOREACH koha_new IN koha_news %] + [% 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' ) %] +
-

[% koha_new.title %]

-
[% koha_new.new %]
-
(published on [% koha_new.newdate %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by [% koha_new.author_title %] [% koha_new.author_firstname %] [% koha_new.author_surname %][% END %])
+
No news to display.
+
- [% END %] -
-
- [% SET branchcode = Branches.GetLoggedInBranchcode() %] - - RSS feed for [% IF ( loggedinusername ) %][% Branches.GetName( branchcode ) %] and [% END %] system-wide library news. -
- [% END %] +
+ [% END %] + + [% END # IF koha_news %] - [% IF ( display_daily_quote && daily_quote ) %] -
-

Quote of the Day

-
- [% daily_quote.text %] ~ [% daily_quote.source %] + [% 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 ( OpacMainUserBlock ) %]
[% OpacMainUserBlock %]
[% END %]
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %] @@ -74,35 +167,60 @@ [% 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 %]
- [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]

Don't have an account? Register here.

[% END %] -
- [% IF Koha.Preference( 'NoLoginInstructions' ) %] -
- [% Koha.Preference( 'NoLoginInstructions' ) %] -
- [% END %]
[% END # /casAuthentication %] - [% IF persona %] - Sign in with your email - [% END # /persona %] - [% END # / loggedinusername %] + [% ELSE %] + [% IF Koha.Preference('OPACUserSummary') && dashboard_info %] +
+

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

+ +
+ [% END %] + [% END # /loggedinusername %] [% END # /opacuserlogin %] - [% IF ( OpacNavRight ) %] -
- [% OpacNavRight %] -
- [% END # /OpacNavRight %] + [% PROCESS koha_news_block news => OpacNavRight %]
[% END # /opacuserlogin || OpacNavRight %]