Bug 14571: HTTPS Amazon images [follow up]
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-main.tt
index bda8913..7e51a94 100644 (file)
@@ -1,6 +1,7 @@
 [% USE Koha %]
+[% USE Branches %]
 [% INCLUDE 'doc-head-open.inc' %]
-[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog
+<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog</title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% BLOCK cssinclude %][% END %]
 </head>
 
         [% IF ( koha_news_count ) %]
             <div id="news" class="newscontainer">
+                [% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %]
                 [% FOREACH koha_new IN koha_news %]
                     <div class="newsitem">
-                        <h4 class="newsheader">[% koha_new.title %]</h4>
+                        <a name="newsitem[% koha_new.idnew %]"></a><h4 class="newsheader">[% koha_new.title %]</h4>
                         <div class="newsbody">[% koha_new.new %]</div>
-                        <div class="newsfooter">(published on [% koha_new.newdate %])</div>
+                        <div class="newsfooter">(published on [% koha_new.newdate %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author_title %] </span>[% koha_new.author_firstname %] [% koha_new.author_surname %][% END %])</div>
                     </div>
                 [% END %]
             </div>
+            <div id="rssnews-container">
+                [% SET branchcode = Branches.GetLoggedInBranchcode() %]
+                <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a>
+                RSS feed for [% IF ( loggedinusername ) %][% Branches.GetName( branchcode ) %] <i>and</i> [% END %] system-wide library news.
+            </div>
         [% END %]
 
         [% IF ( display_daily_quote && daily_quote ) %]