From: Jason Stephenson Date: Mon, 3 Oct 2011 20:27:01 +0000 (-0400) Subject: Add fmall.js to opac.xul so objects are mapped in opac.js. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8f0f785832bac883897e92d32c51af2d937246f1;p=working%2FEvergreen.git Add fmall.js to opac.xul so objects are mapped in opac.js. Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js index a4333fe643..7a27291a6b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js @@ -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; }