Bugzilla – Attachment 120469 Details for
Bug 28180
Use a lightbox gallery to display the images on the detail pages in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28180: Reintroduce and adjust Baker and Taylor
Bug-28180-Reintroduce-and-adjust-Baker-and-Taylor.patch (text/plain), 3.24 KB, created by
Jonathan Druart
on 2021-05-04 13:40:06 UTC
(
hide
)
Description:
Bug 28180: Reintroduce and adjust Baker and Taylor
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-05-04 13:40:06 UTC
Size:
3.24 KB
patch
obsolete
>From 9c6b516d4ff14be090be054d260a98f510d18ac0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 20 Apr 2021 15:32:42 +0200 >Subject: [PATCH] Bug 28180: Reintroduce and adjust Baker and Taylor >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Test plan: >1. Turn on BakerTaylorEnabled and fill BakerTaylorUsername/BakerTaylorPassword (if you don't have, ask me) >2. Display the cover images in the gallery > >Sponsored-by: Gerhard Sondermann Dialog e.K. (presseplus.de, presseshop.at, presseshop.ch) > >Signed-off-by: Rasmus LeiÃner <rasmus.leissner@solutions-factory.de> >--- > .../bootstrap/en/modules/opac-detail.tt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 0433eb2804f..c1d8fe34e5c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -128,6 +128,22 @@ > </div> > [% END %] > >+ [% bt_id = ( normalized_upc || normalized_isbn ) %] >+ [% IF ( BakerTaylorEnabled && bt_id ) %] >+ <div class="cover-image" id="bakertaylor-coverimg"> >+ [% IF BakerTaylorBookstoreURL %] >+ <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]"> >+ <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" /> >+ </a> >+ [% ELSE %] >+ <a href="[% BakerTaylorImageURL | url %][% bt_id | uri%]"> >+ <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" /> >+ </a> >+ [% END %] >+ <div class="hint">Image from BakerTaylor</div> >+ </div> >+ [% END %] >+ > [% IF Koha.Preference('OPACCustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %] > [% SET custom_cover_image_url = biblio.custom_cover_image_url %] > [% IF custom_cover_image_url %] >@@ -1728,6 +1744,8 @@ > } > div.find(".hint").html(coce_description); > lightbox_descriptions.push(coce_description); >+ } else if ( div.attr("id") == "bakertaylor-coverimg" ){ >+ lightbox_descriptions.push(_("Image from Baker Taylor")); > } else if ( div.attr("id") == "adlibris-coverimg" ){ > lightbox_descriptions.push(_("Image from Adlibris (<a href='%s'>see the original image</a>)").format($(img).data('link'))); > } else if ( div.attr("class") == "cover-image local-coverimg" ) { >-- >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 28180
:
119918
|
119919
|
119920
|
119921
|
119922
|
119923
|
119924
|
120444
|
120445
|
120446
|
120447
|
120448
|
120449
|
120450
|
120464
|
120465
|
120466
|
120467
|
120468
|
120469
|
120470
|
120753
|
120754
|
120805
|
122783
|
122784
|
123178
|
123790
|
123792
|
123793
|
123794
|
124819
|
125666
|
126041
|
126042
|
126506
|
126507
|
126508
|
126509
|
126510
|
126511
|
126512
|
126513
|
126514
|
126515
|
126516
|
126517
|
126518
|
126519
|
126520
|
126596
|
126597
|
126598
|
126599
|
126600
|
126601
|
126602
|
126603
|
126604
|
126605
|
126606
|
126607
|
126608
|
126609
|
126610