Bugzilla – Attachment 90001 Details for
Bug 22445
Ability to define a URL for custom cover images
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22445: Custom cover images - opac results
Bug-22445-Custom-cover-images---opac-results.patch (text/plain), 2.67 KB, created by
Michal Denar
on 2019-05-23 08:25:11 UTC
(
hide
)
Description:
Bug 22445: Custom cover images - opac results
Filename:
MIME Type:
Creator:
Michal Denar
Created:
2019-05-23 08:25:11 UTC
Size:
2.67 KB
patch
obsolete
>From dbdf9176f567d29b4d0b68f0bc5b8ec508b91fa6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 1 Mar 2019 08:01:05 -0300 >Subject: [PATCH] Bug 22445: Custom cover images - opac results > >Test plan: >Search for bibliographic records at the OPAC, the custom cover should be >displayed > >Sponsored-by: Orex Digital > >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Michal Denar <black23@gmail.com> >--- > C4/Search.pm | 2 ++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 9 +++++++++ > 2 files changed, 11 insertions(+) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 559abea4ba..cd203f9cf8 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -2319,6 +2319,8 @@ sub searchResults { > $oldbiblio->{'alternateholdings_count'} = $alternateholdingscount; > } > >+ $oldbiblio->{biblio_object} = Koha::Biblios->find( $oldbiblio->{biblionumber} ); >+ > push( @newresults, $oldbiblio ); > } > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index e6bd51b2d9..b45b4bc90b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -320,6 +320,15 @@ > [% END %] > [% END %] > >+ [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] >+ [% IF ( OPACURLOpenInNewWindow ) %] >+ <a href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" /></a> >+ [% ELSE %] >+ <a href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" /></a> >+ [% END %] >+ [% END %] >+ >+ > [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %] > <div class="idbresult" style="display: none;"> > [% IF ( IDreamBooksReviews ) %] >-- >2.11.0
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 22445
:
85925
|
85926
|
85927
|
85928
|
85929
|
85930
|
85931
|
85932
|
85933
|
85934
|
85935
|
85936
|
85937
|
85938
|
86214
|
86726
|
86727
|
87434
|
89973
|
89974
|
89975
|
89976
|
89977
|
89978
|
89979
|
89980
|
89981
|
89982
|
89983
|
89984
|
89985
|
89986
|
89987
|
89988
|
89989
|
89996
|
89997
|
89998
|
89999
|
90000
|
90001
|
90002
|
90003
|
90004
|
90005
|
90006
|
90007
|
90009
|
90010
|
90011
|
90012
|
90013
|
94227
|
94228
|
94229
|
94230
|
94231
|
94232
|
94233
|
94234
|
94235
|
94236
|
94237
|
94238
|
94239
|
94240
|
94241
|
94242
|
94243
|
94244
|
94559
|
94560
|
94561
|
94562
|
94563
|
94564
|
94566
|
94567
|
94568
|
94569
|
94570
|
94571
|
94572
|
94573
|
94574
|
94575
|
94576
|
94577