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:
parent
b124540ee9
commit
85397f429d
2 changed files with 0 additions and 8 deletions
|
@ -58,11 +58,7 @@
|
|||
[% ELSE %]
|
||||
<a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
|
||||
[% 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>
|
||||
[% ELSE %]
|
||||
<img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
|
||||
|
|
|
@ -240,11 +240,7 @@
|
|||
[% END %]
|
||||
[% IF ( OPACAmazonCoverImages ) %]
|
||||
[% 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>
|
||||
[% 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 %]
|
||||
<span class="no-image">No cover image available</span>
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue