From: phasefx Date: Fri, 4 Aug 2006 03:14:37 +0000 (+0000) Subject: get the copy locations for the ws_ou X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=eaa9d28b2c31f33317a402a452eb04628f838aa7;p=evergreen%2Fpines.git get the copy locations for the ws_ou git-svn-id: svn://svn.open-ils.org/ILS/trunk@5270 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js index db3ee8bd38..70a64cce71 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js @@ -71,7 +71,9 @@ OpenILS.data.prototype = { /* 'cst' : [ api.FM_CST_RETRIEVE.app, api.FM_CST_RETRIEVE.method, [], true ], */ + /* 'acpl' : [ api.FM_ACPL_RETRIEVE.app, api.FM_ACPL_RETRIEVE.method, [], true ], + */ 'ccs' : [ api.FM_CCS_RETRIEVE.app, api.FM_CCS_RETRIEVE.method, [], true ], 'aou' : [ api.FM_AOU_RETRIEVE.app, api.FM_AOU_RETRIEVE.method, [], true ], 'aout' : [ api.FM_AOUT_RETRIEVE.app, api.FM_AOUT_RETRIEVE.method, [], true ], @@ -467,6 +469,28 @@ OpenILS.data.prototype = { } ); + this.chain.push( + function() { + var f = gen_fm_retrieval_func( + 'acpl', + [ + api.FM_ACPL_RETRIEVE.app, + api.FM_ACPL_RETRIEVE.method, + [ obj.list.au[0].ws_ou() ], + false + ] + ); + try { + f(); + } catch(E) { + var error = 'Error: ' + js2JSON(E); + obj.error.sdump('D_ERROR',error); + throw(E); + } + } + ); + + if (typeof this.on_complete == 'function') {