From: erickson Date: Wed, 31 Oct 2007 14:28:39 +0000 (+0000) Subject: also force hiding the jacket and attrib links if the item has no ISBN X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a0c424c416376822b6cf928469782a1c509726a0;p=Evergreen.git also force hiding the jacket and attrib links if the item has no ISBN git-svn-id: svn://svn.open-ils.org/ILS/trunk@7952 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index 356a69c7c2..76aee75813 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -192,10 +192,15 @@ function _rdetailDraw(r) { G.ui.rdetail.abstr.appendChild(text(record.synopsis())); try{ - if(ENABLE_ADDED_CONTENT_ATTRIB_LINKS) { - unHideMe($('rdetail.jacket_attrib_div')); - var href = $('rdetail.jacket_attrib_link').getAttribute('href') +cleanISBN(record.isbn()); - $('rdetail.jacket_attrib_link').setAttribute('href', href); + if(record.isbn()) { + if(ENABLE_ADDED_CONTENT_ATTRIB_LINKS) { + unHideMe($('rdetail.jacket_attrib_div')); + var href = $('rdetail.jacket_attrib_link').getAttribute('href') +cleanISBN(record.isbn()); + $('rdetail.jacket_attrib_link').setAttribute('href', href); + } + } else { + hideMe($("rdetail.jacket_attrib_div")); + hideMe($("rdetail_img_link")); } } catch(E) {}