From: Jason Stephenson Date: Mon, 3 Oct 2011 18:03:18 +0000 (-0400) Subject: Fix VIA/BY typo. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=51b53f2f69f28b44c751e7fe388c7646e71bcdf9;p=working%2FEvergreen.git Fix VIA/BY typo. 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 72969f50ad..a4333fe643 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js @@ -910,25 +910,24 @@ function add_volumes() { var cbsObj; try { var bibObj = g.network.request( - api.FM_BRE_RETRIEVE_BY_ID.app, - api.FM_BRE_RETRIEVE_BY_ID.method, - [docid] - ); + 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() - ] - ); + [ 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); return; } - alert(js2JSON(cbsObj)); if (!can_have_copies) { alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbs.source])); diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul b/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul index b7d517f9bf..2d775d3a5f 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul @@ -26,7 +26,7 @@ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); - +