LP#1292705 trim unneeded fields from IDL2js
authorBill Erickson <berick@esilibrary.com>
Fri, 14 Mar 2014 20:42:11 +0000 (16:42 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 17 Mar 2014 14:30:00 +0000 (10:30 -0400)
commit50cf4028a405b58c3e127ea0f380bf7c5238de4c
treecaee624c6dea217ddc416903bf059c58df5dc2e6
parenta46be32f5c54bb58f048fbc333250175d96362b6
LP#1292705 trim unneeded fields from IDL2js

Avoid sending fields in the web-published IDL (IDL2js) that have no
value, as the keys in the JSON take up a lot of space.  Also avoid
repeating fields (selector) and default values (e.g. label defaults
to name) where the client can reasonably apply the defaults locally.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
Open-ILS/web/js/dojo/fieldmapper/IDL.js
Open-ILS/xsl/fm_IDL2js.xsl