[open-ils-commits] r9379 - trunk/Open-ILS/web/js/dojo/fieldmapper
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Apr 18 10:47:08 EDT 2008
Author: miker
Date: 2008-04-18 10:08:31 -0400 (Fri, 18 Apr 2008)
New Revision: 9379
Modified:
trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
Log:
adding Identifier to fieldmapper classes
Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js 2008-04-18 05:16:33 UTC (rev 9378)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js 2008-04-18 14:08:31 UTC (rev 9379)
@@ -132,6 +132,7 @@
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 @@
}
+ 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 ]
More information about the open-ils-commits
mailing list