cca / millennium_catalog

CCA's customized Millennium catalog screens & settings.
http://library.cca.edu/search
Apache License 2.0
1 stars 1 forks source link

better handling of book cover image when it's not available #39

Open phette23 opened 9 years ago

phette23 commented 9 years ago

See Cool Memories for instance; it doesn't have a book cover so no image appears, but if you click where the cover should be a broken, blank image labelled "book" appears:

cm-bug

We should correct for this in the script that sets up the book cover images and fancybox display.

phette23 commented 9 years ago

See how this is handled in the Materials Library now in the commit referenced above: we add an onerror attribute to the book jacket image which removes the DOM element if the image fails to load. An elegant, easy solution.