Bug 22445: Custom cover images - opac user (checkout list)
[srvgit] / opac / opac-main.pl
index fbfd925..4af6f1a 100755 (executable)
@@ -67,7 +67,7 @@ my $news_id = $input->param('news_id');
 my @all_koha_news;
 
 if (defined $news_id){
-    @all_koha_news = Koha::News->search({ idnew => $news_id });
+    @all_koha_news = Koha::News->search({ idnew => $news_id, lang => { '!=', 'koha' } }); # get news that is not staff-only news
     if (scalar @all_koha_news > 0){
         $template->param( news_item => @all_koha_news );
     } else {
@@ -104,6 +104,7 @@ if ( $patron ) {
 
 $template->param(
     koha_news           => @all_koha_news,
+    news_lang           => $news_lang,
     branchcode          => $homebranch,
     display_daily_quote => C4::Context->preference('QuoteOfTheDay'),
     daily_quote         => $quote,