[open-ils-commits] r10715 - trunk/Open-ILS/web/opac/skin/default/js

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Sep 27 21:44:43 EDT 2008


Author: dbs
Date: 2008-09-27 21:44:41 -0400 (Sat, 27 Sep 2008)
New Revision: 10715

Modified:
   trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
Log:
Add unAPI to main record details instead of only in MARC view

Modified: trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/rdetail.js	2008-09-26 21:13:19 UTC (rev 10714)
+++ trunk/Open-ILS/web/opac/skin/default/js/rdetail.js	2008-09-28 01:44:41 UTC (rev 10715)
@@ -239,6 +239,16 @@
 		}
 	}
 
+	// Fill in our unAPI ID, if anyone cares
+	var abbrs = document.getElementsByTagName('abbr');
+	var span;
+	for (var i = 0; i < abbrs.length; i = i + 1) {
+		if (abbrs[i].getAttribute('name') == 'unapi') {
+			span = abbrs[i];
+			break;
+		}
+	}
+	buildunAPISpan( span, 'biblio-record_entry', record.doc_id() );
 
 	$('rdetail_place_hold').setAttribute(
 		'href','javascript:holdsDrawEditor({record:"'+record.doc_id()+'",type:"T"});');



More information about the open-ils-commits mailing list