Add fmall.js to opac.xul so objects are mapped in opac.js.
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 3 Oct 2011 20:27:01 +0000 (16:27 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 15 Nov 2011 22:14:25 +0000 (17:14 -0500)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/xul/staff_client/chrome/content/cat/opac.js

index a4333fe..7a27291 100644 (file)
@@ -913,15 +913,13 @@ function add_volumes() {
                 api.FM_BRE_RETRIEVE_VIA_ID.app,
                 api.FM_BRE_RETRIEVE_VIA_ID.method,
                                [ ses(), [docid] ]
-                                                                                  );
+            );
                        bibObj = bibObj[0];
-                       alert(js2JSON(bibObj));
             cbsObj = g.network.request(
                 api.FM_CBS_RETRIEVE_VIA_PCRUD.app,
                 api.FM_CBS_RETRIEVE_VIA_PCRUD.method,
                 [ ses(), bibObj.source() ]
-                  );
-                       alert(js2JSON(cbsObj));
+            );
             can_have_copies = (cbsObj.can_have_copies() == get_db_true());
         } catch(E) {
             g.error.sdump('D_ERROR','can have copies check: ' + E);
@@ -930,7 +928,7 @@ function add_volumes() {
 
 
         if (!can_have_copies) {
-            alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbs.source]));
+            alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbs.source()]));
             return false;
         }