adding Identifier to fieldmapper classes
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Apr 2008 14:08:31 +0000 (14:08 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Apr 2008 14:08:31 +0000 (14:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9379 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js

index 83e956a..e1bbc48 100644 (file)
@@ -132,6 +132,7 @@ if(!dojo._hasResource["fieldmapper.Fieldmapper"]){
                        constructor : function () {
                                if (!this.a) this.a = [];
                                this.classname = this.declaredClass;
+                               this.Identifier = 'id';
                                this._fields = fmclasses[this.classname];
                                for( var pos = 0; pos <  this._fields.length; pos++ ) {
                                        var p = parseInt(pos) + 3;
@@ -144,6 +145,27 @@ if(!dojo._hasResource["fieldmapper.Fieldmapper"]){
 
        }
 
+       fieldmmapper.ppl.Identifier = 'code';
+       fieldmmapper.ccm.Identifier = 'code';
+       fieldmmapper.cvrfm.Identifier = 'code';
+       fieldmmapper.clm.Identifier = 'code';
+       fieldmmapper.cam.Identifier = 'code';
+       fieldmmapper.cifm.Identifier = 'code';
+       fieldmmapper.citm.Identifier = 'code';
+       fieldmmapper.cblvl.Identifier = 'code';
+       fieldmmapper.clfm.Identifier = 'code';
+       fieldmmapper.mous.Identifier = 'usr';
+       fieldmmapper.moucs.Identifier = 'usr';
+       fieldmmapper.mucs.Identifier = 'usr';
+       fieldmmapper.mus.Identifier = 'usr';
+       fieldmmapper.rxbt.Identifier = 'xact';
+       fieldmmapper.rxpt.Identifier = 'xact';
+       fieldmmapper.cxt.Identifier = 'name';
+       fieldmmapper.amtr.Identifier = 'matchpoint';
+       fieldmmapper.chmt.Identifier = 'matchpoint';
+       fieldmmapper.ccmt.Identifier = 'matchpoint';
+       fieldmmapper.ccmrs.Identifier = 'matchpoint';
+
        fieldmapper.OpenSRF = {};
 
        /*      Methods are defined as [ service, method, have_staff ]