Bugzilla – Attachment 94239 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 - detail (staff)
Bug-22445-Custom-cover-images---detail-staff.patch (text/plain), 2.96 KB, created by
Jonathan Druart
on 2019-10-16 07:17:51 UTC
(
hide
)
Description:
Bug 22445: Custom cover images - detail (staff)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-10-16 07:17:51 UTC
Size:
2.96 KB
patch
obsolete
>From ffc9a20aa9566f6548f1ce3cfdc24ed42c093534 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 28 Feb 2019 19:11:19 -0300 >Subject: [PATCH] Bug 22445: Custom cover images - detail (staff) > >Test plan: >Staff side now, go the detail page of a bibliographic record >You should see the cover image. > >Sponsored-by: Orex Digital > >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Michal Denar <black23@gmail.com> >--- > catalogue/detail.pl | 2 ++ > .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 14 +++++++++++--- > 2 files changed, 13 insertions(+), 3 deletions(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index b4d9bae646..303d709c7b 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -533,6 +533,8 @@ foreach my $myorder (@allorders_using_biblio) { > } > } > >+$template->param(biblio => $biblio); >+ > my $count_orders_using_biblio = scalar @orders_using_biblio ; > $template->param (countorders => $count_orders_using_biblio); > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 4f6f474db6..21feb30194 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -73,8 +73,12 @@ > <span class="Z3988" title="[% ocoins | html %]"></span> > [% END %] > >- [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %] >- <div id="catalogue_detail_biblio" class="col-xs-9"> >+ [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] >+ [% IF ( XSLTDetailsDisplay ) %] >+ <div id="catalogue_detail_biblio" class="col-xs-9"> >+ [% ELSE %] >+ <div id="catalogue_detail_biblio" class="col-xs-9"> >+ [% END %] > [% ELSE %] > <div id="catalogue_detail_biblio" class="col-xs-12"> > [% END %] >@@ -125,7 +129,7 @@ > </span> > [% END %] > >- [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %] >+ [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] > </div><div class="col-xs-3" id="bookcoverimg"> > [% IF ( LocalCoverImages ) %] > <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div> >@@ -149,6 +153,10 @@ > [% END %] > </a> > [% END %] >+ >+ [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %] >+ <a href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /> >+ [% END %] > [% END %] > > </div> >-- >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