diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 459fe6433f..a5f2ede6ba 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -553,7 +553,11 @@ if (C4::Context->preference("FRBRizeEditions")==1) { if ( C4::Context->preference("LocalCoverImages") == 1 ) { my $images = $biblio->cover_images; - $template->param( localimages => $biblio->cover_images ); + $template->param( + localimages => $biblio->cover_images->search( + {}, { order_by => [ \"COALESCE(itemnumber, 0, 1)", 'timestamp' ] } + ), + ); } # HTML5 Media