Add unAPI to main record details instead of only in MARC view
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 28 Sep 2008 01:44:41 +0000 (01:44 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 28 Sep 2008 01:44:41 +0000 (01:44 +0000)
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

index b103dc3..5fba851 100644 (file)
@@ -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"});');