Partial fix for Bug 2420 ("OPAC shows broken image for some Google Jackets"). This fix only corrects for undefined img src, not for well-formed but broken img src.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
c1f34d7dd9
commit
cee7483d52
|
|
@ -276,8 +276,8 @@ th[scope=row] {
|
|||
|
||||
tr.highlight td, tr.highlight th, tr.odd td {
|
||||
background-color : #F3F3F3;
|
||||
border : 1px solid #DDDDDD;
|
||||
border-right : 1px solid #DDDDDD;
|
||||
border-top : 1px solid #DDDDDD;
|
||||
border-bottom : 1px solid #DDDDDD;
|
||||
}
|
||||
|
||||
tr.even td, tr.even.highlight td {
|
||||
|
|
@ -527,6 +527,10 @@ a .term {
|
|||
border-right : 1px solid black;
|
||||
}
|
||||
|
||||
#members li:last-child {
|
||||
border-right : 0;
|
||||
}
|
||||
|
||||
#members li {
|
||||
display : inline;
|
||||
list-style : none;
|
||||
|
|
|
|||
|
|
@ -40,10 +40,12 @@ KOHA.Google = {
|
|||
$("#"+book.bib_key).each(function() {
|
||||
var a = document.createElement("a");
|
||||
a.href = book.info_url;
|
||||
var img = document.createElement("img");
|
||||
img.src = book.thumbnail_url;
|
||||
a.appendChild(img);
|
||||
$(this).append(a);
|
||||
var img = document.createElement("img");
|
||||
if(typeof(book.thumbnail_url) != "undefined"){
|
||||
img.src = book.thumbnail_url;
|
||||
a.appendChild(img);
|
||||
$(this).append(a);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue