From 4d224cbffd31be5019ee8d50a05b624762d73592 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 5 Aug 2010 20:19:46 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@17104 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/fieldmapper/IDL.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/fieldmapper/IDL.js b/Open-ILS/web/js/dojo/fieldmapper/IDL.js index 95f2687d6..ac446f93c 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/IDL.js +++ b/Open-ILS/web/js/dojo/fieldmapper/IDL.js @@ -76,7 +76,6 @@ if(!dojo._hasResource["fieldmapper.IDL"]) { 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 @@ if(!dojo._hasResource["fieldmapper.IDL"]) { 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; -- 2.11.0