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:36:51 +0000 (11:36 -0400)
commit45ffbb48a522a21a37bfc3842015f5c6f1b54deb
tree9e44636f0a0f822f237847d6f58062b16c6a15d7
parent13901607c6cad0b0b489de07286dc5c28d404f93
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: Dan Scott <dan@coffeecode.net>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/opac/skin/default/js/result_common.js