[open-ils-commits] r17104 - trunk/Open-ILS/web/js/dojo/fieldmapper (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 5 16:19:52 EDT 2010
Author: erickson
Date: 2010-08-05 16:19:46 -0400 (Thu, 05 Aug 2010)
New Revision: 17104
Modified:
trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js
Log:
updated IDL parser to 1) load oils_object:required attr at field level
instead of class level and 2) added the oils_persist:i18n attr as
another field-level boolean
Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js 2010-08-05 19:08:08 UTC (rev 17103)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js 2010-08-05 20:19:46 UTC (rev 17104)
@@ -76,7 +76,6 @@
label : fieldmapper._getAttributeNS(node,this.NS_REPORTS, 'label'),
restrict_primary : fieldmapper._getAttributeNS(node,this.NS_PERSIST, 'restrict_primary'),
virtual : (fieldmapper._getAttributeNS(node,this.NS_PERSIST, 'virtual') == 'true'),
- required : (fieldmapper._getAttributeNS(node,this.NS_OBJ, 'required') == 'true'),
pkey : fieldmapper._getAttributeNS(fields,this.NS_PERSIST, 'primary'),
pkey_sequence : fieldmapper._getAttributeNS(fields,this.NS_PERSIST, 'sequence')
};
@@ -147,7 +146,9 @@
selector : fieldmapper._getAttributeNS(field,this.NS_REPORTS,'selector'),
array_position : position++,
type : 'field',
- virtual : (fieldmapper._getAttributeNS(fields[i],this.NS_PERSIST, 'virtual') == 'true')
+ virtual : (fieldmapper._getAttributeNS(fields[i],this.NS_PERSIST, 'virtual') == 'true'),
+ required : (fieldmapper._getAttributeNS(fields[i],this.NS_OBJ, 'required') == 'true'),
+ i18n : (fieldmapper._getAttributeNS(fields[i],this.NS_PERSIST, 'i18n') == 'true')
};
obj.label = obj.label || obj.name;
More information about the open-ils-commits
mailing list