Bugzilla – Attachment 137210 Details for
Bug 30976
Cover images for biblio should be displayed first
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30976: Display biblio's cover images first
Bug-30976-Display-biblios-cover-images-first.patch (text/plain), 1.23 KB, created by
Martin Renvoize (ashimema)
on 2022-07-06 13:37:29 UTC
(
hide
)
Description:
Bug 30976: Display biblio's cover images first
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-07-06 13:37:29 UTC
Size:
1.23 KB
patch
obsolete
>From b7ac07432979f9ccd6b2c112dd2670f3063b8181 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 16 Jun 2022 12:33:31 +0200 >Subject: [PATCH] Bug 30976: Display biblio's cover images first > >If one add cover images at item's level, then biblio level, the cover images >of the items are displayed first on the main "cover slider" at the top of the page. >We should displayed biblio cover images first, then the ones for the items. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > catalogue/detail.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >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 >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30976
:
136146
|
136161
| 137210 |
140039