get the copy locations for the ws_ou
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Aug 2006 03:14:37 +0000 (03:14 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Aug 2006 03:14:37 +0000 (03:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5270 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js

index db3ee8b..70a64cc 100644 (file)
@@ -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') {