Hide item image in results when error loading
authorJeff Godin <jgodin@tadl.org>
Tue, 3 Apr 2012 13:32:45 +0000 (09:32 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 3 Apr 2012 13:32:45 +0000 (09:32 -0400)
Hide the item image in results table when there is an
error loading it -- typically a 404.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/web/opac/skin/tadlv2/xml/result/result_table.xml

index 91596a3..858d146 100644 (file)
@@ -34,7 +34,7 @@
                             <tr style='height: 1em' name='counts_row' valign="top">
 
                                 <td  rowspan='4' class='result_table_pic_header'>
-                                    <a><img name='item_jacket' class='result_table_pic'/></a>
+                                    <a><img name='item_jacket' class='result_table_pic' onerror='this.style.display="none";' /></a>
                                 </td>
 
                                 <td class='result_table_title_cell' name='result_table_title_cell'>