rdetailCheckForGBPreview();
} else {
- hideMe($("rdetail.jacket_attrib_div"));
- hideMe($("rdetail_img_link"));
+ if (!record.doc_id()) {
+ hideMe($("rdetail.jacket_attrib_div"));
+ hideMe($("rdetail_img_link"));
+ }
}
} catch(E) {}
unHideMe($('rdetail_exp_refworks_span'));
}
- $('rdetail_img_link').setAttribute('href', buildISBNSrc(cleanISBN(record.isbn()), 'large'));
- G.ui.rdetail.image.setAttribute("src", buildISBNSrc(cleanISBN(record.isbn()), 'medium'));
+ $('rdetail_img_link').setAttribute('href', buildJacketSrc(record.doc_id(), 'large'));
+ G.ui.rdetail.image.setAttribute("src", buildJacketSrc(record.doc_id(), 'medium'));
runEvt("rdetail", "recordDrawn");
recordsCache.push(record);
*/
var pic = $n(r, config.names.result.item_jacket);
- if (currentISBN) {
- pic.setAttribute("src", buildISBNSrc(currentISBN));
+ if (rec.doc_id()) {
+ pic.setAttribute("src", buildJacketSrc(rec.doc_id()));
} else {
pic.setAttribute("src", "/opac/images/blank.png");
}