[open-ils-commits] r7952 - trunk/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 31 10:43:23 EDT 2007
Author: erickson
Date: 2007-10-31 10:28:39 -0400 (Wed, 31 Oct 2007)
New Revision: 7952
Modified:
trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
Log:
also force hiding the jacket and attrib links if the item has no ISBN
Modified: trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/rdetail.js 2007-10-31 04:03:35 UTC (rev 7951)
+++ trunk/Open-ILS/web/opac/skin/default/js/rdetail.js 2007-10-31 14:28:39 UTC (rev 7952)
@@ -192,10 +192,15 @@
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) {}
More information about the open-ils-commits
mailing list