Koha/koha-tmpl/opac-tmpl/prog/en/js
Edmund Balnaves 7e293e20de Bug 8264 - local cover images not working in IE8 [ prog ]
[Patch submitted by David Cook]
Edmund, rather than myself, was the author of this patch,
so I'm not entirely sure about his code choices, but...it
looks like IE must process images differently than other
browsers.

It seems to me that the images are not appearing in IE,
because they're being regarded as incomplete or having
0/NULL natural width.

This patch simply introduces a try/catch hack where it
tries to add the image and remove any "no-image" elements
even nwhen the image is considered incomplete/width of
0/NULL. It won't do this if it catches any errors,
although I'm not sure that any errors would be caught
with this set up anyway...

It's certainly not the ideal solution, but it's a solution.

To Test:

Before applying the patch:
1) Use IE and FF/Chrome/other browser to view a record
   with local images attached
2) Note that the local images appear in FF/Chrome/other,
   but not in IE

Apply patch.

After applying the patch:
1) Repeat step 1 from above
2) Note that the local images now appear in all browsers
   as they should.

--

As I mentioned before, this seems like a real suboptimal
solution. Any ideas on why IE might be considering local
images to be incomplete or having 0/NULL natural width?

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
I did a regression test using Chromium and Firefox in
Ubuntu. I checked both prog and CCSR - covers displayed
nicely.
All tests and QA script pass.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Changed author of patch to reflect actual authorship.
2013-05-01 06:16:38 -04:00
..
amazonimages.js Second patch to address LL Bug 367 Titles without ISBNs display "no cover image available" while titles with ISBNS that don't match a Syndetics cover display nothing 2009-03-27 17:23:50 -05:00
bakertaylorimages.js This file was missing from previous commit. bakertaylorimages.js manages the display of 'missing cover' text when Baker & Taylor images are used. 2008-11-04 15:47:48 -06:00
basket.js Bug 9059: Followup 2012-11-25 18:32:47 -05:00
browserid_include.js Bug 9587 : Mozilla Persona login 2013-02-24 10:15:35 -05:00
datatables.js Bug 6836: followup CSS work 2012-01-27 11:33:12 +01:00
google-jackets.js Bug 7657 - Google and OpenLibrary image conflict 2013-01-15 21:51:51 -05:00
googleindictransliteration.js Use Google Indic Transliteration API to allow users to transliterate english typed words into Indic languages. 2009-06-05 18:05:47 -05:00
localcovers.js Bug 8264 - local cover images not working in IE8 [ prog ] 2013-05-01 06:16:38 -04:00
openlibrary.js Bug 9660 - OpenLibrary covers are too small on OPAC search results 2013-03-29 21:47:51 -04:00
script.js Bug 9166: OPAC needs configuration file for datepicker 2012-12-19 19:38:27 -05:00
tags.js bug 9401: remove direct reads of CGISESSID cookie by JavaScript 2013-02-01 11:05:35 -05:00