for consistency, change itemToStoreData to toStoreItem
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Jan 2009 15:37:42 +0000 (15:37 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Jan 2009 15:37:42 +0000 (15:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11784 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/fieldmapper/dojoData.js
Open-ILS/web/js/ui/default/acq/financial/list_currency_types.js
Open-ILS/web/js/ui/default/acq/financial/list_funding_sources.js
Open-ILS/web/js/ui/default/acq/financial/list_funds.js
Open-ILS/web/js/ui/default/acq/financial/list_providers.js
Open-ILS/web/js/ui/default/acq/picklist/view_list.js
Open-ILS/web/js/ui/default/acq/po/search.js
Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js
Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js
Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js

index 47c16cc..597e9b1 100644 (file)
@@ -44,7 +44,7 @@ if(!dojo._hasResource['fieldmapper.dojoData']){
                return { label : label, identifier : params.identifier, items : [] };
     }
 
-    function _itemToStoreData(fmObj, params) {
+    function _toStoreItem(fmObj, params) {
                if (!params) params = {};
         return fmObj.toHash(true, params.virtualFields);
     }
@@ -94,8 +94,8 @@ if(!dojo._hasResource['fieldmapper.dojoData']){
 
        for (var i in fmclasses) fieldmapper[i].prototype.fromStoreItem = _fromStoreItem;
        for (var i in fmclasses) fieldmapper[i].toStoreData = _toStoreData;
-       for (var i in fmclasses) fieldmapper[i].itemToStoreData = _itemToStoreData;
-       for (var i in fmclasses) fieldmapper[i].prototype.itemToStoreData = function ( args ) { return _itemToStoreData(this, args) };
+       for (var i in fmclasses) fieldmapper[i].toStoreItem = _toStoreItem;
+       for (var i in fmclasses) fieldmapper[i].prototype.toStoreItem = function ( args ) { return _toStoreItem(this, args) };
        for (var i in fmclasses) fieldmapper[i].initStoreData = _initStoreData;
 
        fieldmapper.aou.prototype._ignore_fields = ['children'];
index 8f17cba..21e187b 100644 (file)
@@ -21,7 +21,7 @@ function loadCTypesGrid() {
           onresponse : function(r){
                 if(ct = openils.Util.readResponse(r)) {
                     openils.acq.CurrencyType.cache[ct.code()] = ct;
-                    store.newItem(acqct.itemToStoreData(ct));
+                    store.newItem(acqct.toStoreItem(ct));
                 }
             }
         }
index 6523259..ae76f21 100644 (file)
@@ -34,7 +34,7 @@ function loadFSGrid() {
             onresponse : function(r) { /* request object */
                 if(fs = openils.Util.readResponse(r)) {
                     openils.acq.FundingSource.cache[fs.id()] = fs;
-                    store.newItem(acqfs.itemToStoreData(fs));
+                    store.newItem(acqfs.toStoreItem(fs));
                 }
             }
         }
index aa6f3ed..5245ae4 100644 (file)
@@ -37,7 +37,7 @@ function loadFundGrid() {
             onresponse : function(r) {
                 if(lf = openils.Util.readResponse(r)) {
                     openils.acq.Fund.cache[lf.id()] = lf;
-                    store.newItem(acqf.itemToStoreData(lf));
+                    store.newItem(acqf.toStoreItem(lf));
                     var year = lf.year();
                     if(!(year in yearsAdded)) {
                         yearStore.items.push({year:year});
index 05eb05e..a951d32 100644 (file)
@@ -28,7 +28,7 @@ function loadProviderGrid() {
             onresponse : function(r) {
                 if( lp = openils.Util.readResponse(r)) {
                     openils.acq.Provider.cache[lp.id()] = lp;
-                    store.newItem(acqpro.itemToStoreData(lp));
+                    store.newItem(acqpro.toStoreItem(lp));
                 }
             }
         }       
index d45c47f..af661bf 100644 (file)
@@ -31,7 +31,7 @@ function loadGrid() {
             onresponse : function(r) {
                 if(pl = openils.Util.readResponse(r)) {
                     plCache[pl.id()] = pl;
-                    store.newItem(acqpl.itemToStoreData(pl));
+                    store.newItem(acqpl.toStoreItem(pl));
                 }
             }
         }
index 91df83c..956ffe7 100644 (file)
@@ -56,7 +56,7 @@ function doSearch(fields) {
             onresponse : function(r) {
                 if(po = openils.Util.readResponse(r)) {
                     openils.acq.PO.cache[po.id()] = po;
-                    store.newItem(acqpo.itemToStoreData(po));
+                    store.newItem(acqpo.toStoreItem(po));
                 }
                 dojo.style('po-grid', 'visibility', 'visible');
             } 
index a9ab1b6..c4178e7 100644 (file)
@@ -18,7 +18,7 @@ function buildCMGrid() {
             params: [openils.User.authtoken, {code:{'!=':null}}],
             onresponse: function (r) { 
                 if(obj = openils.Util.readResponse(r)) {
-                    store.newItem(ccm.itemToStoreData(obj));
+                    store.newItem(ccm.toStoreItem(obj));
                     cmCache[obj.code()] = obj;
                 }
            }
@@ -94,7 +94,7 @@ function cmCreate(args) {
             params: [openils.User.authtoken, cmod],
             oncomplete: function(r) {
                 if(cm = openils.Util.readResponse(r))
-                    cmGrid.store.newItem(ccm.itemToStoreData(cm));
+                    cmGrid.store.newItem(ccm.toStoreItem(cm));
             }
         }
     );
index cceaddc..6175e7c 100644 (file)
@@ -129,7 +129,7 @@ function buildHMGrid() {
             params: [openils.User.authtoken, {id:{'!=':null}}],
             onresponse: function (r) {
                 if(obj = openils.Util.readResponse(r)) {
-                    store.newItem(chmm.itemToStoreData(obj));
+                    store.newItem(chmm.toStoreItem(obj));
                     // cmCache[obj.code()] = obj;
                 }
            }
@@ -163,4 +163,4 @@ function _deleteFromGrid(list, idx) {
     );
 }
 
-openils.Util.addOnLoad(init);
\ No newline at end of file
+openils.Util.addOnLoad(init);
index f8ad62d..d51417a 100644 (file)
@@ -18,7 +18,7 @@ function spBuildGrid() {
             params: [openils.User.authtoken, {id:{'!=':null}}, {order_by:{csp:'id'}}],
             onresponse: function(r) {
                 if(sp = openils.Util.readResponse(r)) 
-                    store.newItem(csp.itemToStoreData(sp));
+                    store.newItem(csp.toStoreItem(sp));
                 spCache[sp.id()] = sp;
             } 
         }
@@ -39,7 +39,7 @@ function spCreate(args) {
           params: [openils.User.authtoken, penalty],
           oncomplete: function(r) {
               if(obj = openils.Util.readResponse(r))
-                  spGrid.store.newItem(csp.itemToStoreData(obj));
+                  spGrid.store.newItem(csp.toStoreItem(obj));
             }
         }
     );
index c9feb63..7249208 100644 (file)
@@ -20,7 +20,7 @@ var GPT = {
                     params: [openils.User.authtoken, GPT.contextOrg],
                     onresponse: function (r) { 
                         if(obj = openils.Util.readResponse(r, false, true)) {
-                            store.newItem(pgpt.itemToStoreData(obj));
+                            store.newItem(pgpt.toStoreItem(obj));
                         }
                     }
                 }
@@ -52,7 +52,7 @@ var GPT = {
 
     _onCreateComplete : function(r) {
         if(threshold = openils.Util.readResponse(r)) {
-            gptGrid.store.newItem(pgpt.itemToStoreData(threshold));
+            gptGrid.store.newItem(pgpt.toStoreItem(threshold));
         }
     },