]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Fix broken images for items without ISBNs in search results
authorDan Scott <dan@coffeecode.net>
Fri, 24 Jun 2011 14:44:43 +0000 (10:44 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 28 Jun 2011 15:37:33 +0000 (11:37 -0400)
commite1bfdad900674c4f9e4859cfdd11cb6c19209318
treeb9da6b75d053e58da503e1d9f64a3f72562d9562
parent08b13c6648eb9316baaeb84c5b2bfcaa39e2f72a
Fix broken images for items without ISBNs in search results

The search results code happily sets the src attribute of the cover
image to an empty string (as returned by cleanISBN()) if currentISBN has
not been defined (which is generally the case if an item doesn't have an
ISBN, such as a DVD or a thesis or an old book).

Protect against the empty string and set the src attribute to
'/opac/images/blank.png' to avoid broken image indicators in search
results.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/opac/skin/default/js/result_common.js