From 61101bdf7ebdfaaa7d289b9168cf4599adb3cf56 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Thu, 23 Jan 2014 15:10:05 +1300 Subject: [PATCH] Bug 10944 - opac-user and opac-readingrecord had instances of non-https amazon images To test: * Enable Amazon images in the system preferences * Issue a book you know will have images for, verify that without SSL 1. the images show on the borrower's logged in home page (opac-user) and on the opac-readingrecord 2. the image source is from an Amazon url that uses http:// 3. the images are the right size, and look ok * Do the same using https, verify that with SSL 1. the images show on the borrower's logged in home page (opac-user) and on the opac-readingrecord 2. the image source is from an Amazon url that uses https:// 3. the images are the right size, and look ok --- .../bootstrap/en/modules/opac-readingrecord.tt | 4 +++- .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt index 584e0e3..80e9f1d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -72,7 +72,9 @@ [% IF OPACAmazonCoverImages %] [% IF issue.normalized_isbn %] - + + [% IF using_https %] + [% ELSE %] [% END %] [% ELSE %] No cover image available [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index a16dc47..d3377fe 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -130,7 +130,12 @@ [% IF ( OPACAmazonCoverImages ) %] [% IF ( ISSUE.normalized_isbn ) %] - + + [% IF using_https %] + + [% ELSE %] + item-thumbnail + [% END %] [% ELSE %] No cover image available [% END %] -- 1.7.9.5