From d9da81aefd1598d437a082298a7bb89f9847a04c Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 30 Dec 2005 18:28:37 +0000 Subject: [PATCH] api change for retrieving au via session. Need to rip out those offline bits of code and implement offline through the stash git-svn-id: svn://svn.open-ils.org/ILS/trunk@2562 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/chrome/content/evergreen/OpenILS/data.js | 7 ++++--- .../chrome/content/evergreen/main/constants.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js index 241405eb8e..03b897cdf0 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js @@ -158,9 +158,10 @@ OpenILS.data.prototype = { try { f(); } catch(E) { - // Probably the one thing we should not cache, so what do we do? - obj.list.au = new au(); - obj.list.au.home_lib( '1' ); + var error = 'Error: ' + js2JSON(E); + obj.error.sdump('D_ERROR',error); + alert(error); + throw(E); } obj.list.au = [ obj.list.au ]; } diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js index 3d8be6ad47..5d4eedcc5d 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js @@ -15,7 +15,7 @@ var api = { 'fm_aou_retrieve_related_via_session' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_unit.full_path.retrieve' }, 'fm_aout_retrieve' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_types.retrieve' }, 'fm_au_ids_retrieve_via_hash' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.patron.search.advanced' }, - 'fm_au_retrieve_via_session' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.actor.user.session' }, + 'fm_au_retrieve_via_session' : { 'app' : 'open-ils.auth', 'method' : 'open-ils.auth.session.retrieve' }, 'fm_au_retrieve_via_barcode' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fleshed.retrieve_by_barcode' }, 'fm_au_retrieve_via_id' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fleshed.retrieve' }, 'fm_ccs_retrieve' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.config.copy_status.retrieve.all' }, -- 2.43.2