Bug 1633: [SIGNED-OFF] Don't show image tab when inappropriate
[koha.git] / opac / opac-search.pl
index 12baf3b..08a4687 100755 (executable)
@@ -616,6 +616,10 @@ for (my $i=0;$i<@servers;$i++) {
             $template->param(SEARCH_RESULTS => \@newresults,
                                 OPACItemsResultsDisplay => (C4::Context->preference("OPACItemsResultsDisplay") eq "itemdetails"?1:0),
                             );
+           if (C4::Context->preference("OPACLocalCoverImages")){
+               $template->param(OPACLocalCoverImages => 1);
+               $template->param(OPACLocalCoverImagesPriority => C4::Context->preference("OPACLocalCoverImagesPriority"));
+           }
             ## Build the page numbers on the bottom of the page
             my @page_numbers;
             # total number of pages there will be