the new drawMarcData() func doesn't run the events needed to get the staff client...
authorberick <berick@esilibrary.com>
Fri, 4 Mar 2011 16:03:43 +0000 (11:03 -0500)
committerberick <berick@esilibrary.com>
Fri, 4 Mar 2011 16:03:43 +0000 (11:03 -0500)
Open-ILS/web/opac/skin/kcls/js/rdetail.js

index 3ccf037..058e110 100644 (file)
@@ -179,7 +179,9 @@ function rdetailDraw() {
     if(getRid()) {
                ridPreDraw();
                marc = new MarcRecord(getRid());
+        runEvt('rdetail', 'recordRetrieved', record.doc_id());
                drawMarcData();
+        runEvt("rdetail", "recordDrawn");
                   //var req = new Request(FETCH_RMODS, getRid());
                   //req.callback(_rdetailDraw);  
                   //req.send();  
@@ -189,12 +191,14 @@ function rdetailDraw() {
          // If we have an ISBN in the URL, let's try to find that record
          // This allows direct linking by ISBN.
          // Note, this uses the first record it finds
-         if(getRtype() == RTYPE_ISBN) {
-                  var req = fieldmapper.standardRequest(['open-ils.search','open-ils.search.biblio.isbn'], {'params':[getAdvTerm()]});
-                  if(req && req.count > 0) RID = req.ids[0];
-                  ridPreDraw();
-                  marc = new MarcRecord(getRid());
-                  drawMarcData();
+        if(getRtype() == RTYPE_ISBN) {
+            var req = fieldmapper.standardRequest(['open-ils.search','open-ils.search.biblio.isbn'], {'params':[getAdvTerm()]});
+            if(req && req.count > 0) RID = req.ids[0];
+            ridPreDraw();
+            marc = new MarcRecord(getRid());
+            runEvt('rdetail', 'recordRetrieved', record.doc_id());
+            drawMarcData();
+            runEvt("rdetail", "recordDrawn");
                   //var req2 = new Request(FETCH_RMODS, getRid());
                   //req2.callback(_rdetailDraw);
                   //req2.send();