Bug 14571 - Intranet detail needs ssl sources for Amazon images

To test:

Enable Amazon images for the staff client - syspref:  AmazonCoverImages -> Show
Go to a record detail in the intranet that has an Amazon image, inspect it, and make sure that it

1. Shows
2. has https://images-na. and not http://images.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Liz Rea 2016-01-08 11:23:38 +13:00 committed by Brendan A Gallagher
parent 53939af8d6
commit 07f950082c
1 changed files with 0 additions and 8 deletions

View File

@ -388,11 +388,7 @@ function verify_images() {
[% IF ( AmazonCoverImages ) %]
<div id="amazon-bookcoverimg">
<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link">
[% IF ( using_https ) %]
<img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
[% ELSE %]
<img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
[% END %]
</a></div>
[% END %]
[% END %]
@ -466,11 +462,7 @@ function verify_images() {
[% IF ( AmazonCoverImages ) %]
<div id="amazon-bookcoverimg">
<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link">
[% IF ( using_https ) %]
<img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
[% ELSE %]
<img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
[% END %]
</a>
</div>
[% END %]