From 26c81f1044d4ce6d82da53662d7505b5d3890b13 Mon Sep 17 00:00:00 2001 From: dbs Date: Sun, 28 Sep 2008 01:44:41 +0000 Subject: [PATCH] Add unAPI to main record details instead of only in MARC view git-svn-id: svn://svn.open-ils.org/ILS/trunk@10715 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/rdetail.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index b103dc32e9..5fba8515ae 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -239,6 +239,16 @@ function _rdetailDraw(r) { } } + // 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"});'); -- 2.43.2