fall through instead of return to handle pre-cats in bib summary
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Oct 2009 16:29:27 +0000 (16:29 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Oct 2009 16:29:27 +0000 (16:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14506 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js

index 0fdc232..d1fc5b2 100644 (file)
@@ -25,8 +25,7 @@ function bib_brief_overlay(params) {
             if (typeof robj.ilsevent != 'undefined') throw(robj); 
             params.mvr = robj;
         }
-        if (! params.mvr) { alert('early mvr return!'); return; }
-        if (! params.mvr_id) params.mvr_id = params.mvr.doc_id();
+        if (params.mvr && !params.mvr_id) params.mvr_id = params.mvr.doc_id();
 
         // Ditto with the bre
         if ( (params.bre_id || params.mvr_id) && ! params.bre) {
@@ -34,7 +33,6 @@ function bib_brief_overlay(params) {
             if (typeof robj.ilsevent != 'undefined') throw(robj); 
             params.bre = robj[0];
         }
-        if (! params.bre) { alert('early bre return!'); return; }
 
         JSAN.use('util.widgets');
         function set(name,value) {