Bug 14571: using_https check for ssl connections doesn't work in some situations

To test:

* turn on Amazon images for result and detail in the OPAC
* do a search that will result in an Amazon image being displayed on the
  result page
* inspect the cover image that is returned on the result page, it should
  be using a https://images-na... Amazon URL.
* click through to the detail for that item
* inspect the cover image that is returned on the detail page, it should
  be using a https://images-na... Amazon URL.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

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 2015-07-21 10:41:02 +12:00 committed by Brendan A Gallagher
parent b124540ee9
commit 85397f429d
2 changed files with 0 additions and 8 deletions

View file

@ -58,11 +58,7 @@
[% ELSE %] [% ELSE %]
<a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]"> <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
[% END %] [% END %]
[% IF ( using_https ) %]
<img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a> <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
[% ELSE %]
<img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
[% END %]
[% END %] [% END %]
[% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]

View file

@ -240,11 +240,7 @@
[% END %] [% END %]
[% IF ( OPACAmazonCoverImages ) %] [% IF ( OPACAmazonCoverImages ) %]
[% IF ( SEARCH_RESULT.normalized_isbn ) %] [% IF ( SEARCH_RESULT.normalized_isbn ) %]
[% IF ( using_https ) %]
<span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span> <span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span>
[% ELSE %]
<span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span>
[% END %]
[% ELSE %] [% ELSE %]
<span class="no-image">No cover image available</span> <span class="no-image">No cover image available</span>
[% END %] [% END %]