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> Signed-off-by: Ben Shum <bshum@biblio.org>
LP 1155611 - prevent unnecessary load of fm_IDL.xml Ensure fm_IDL.xml is loaded only when IDL2js has not been loaded. Signed-off-by: Bill Erickson <berick@esilibrary.com> Signed-off-by: Mike Rylander <mrylander@gmail.com>
Dojo IDL: Set the "Accept-Language" header The internationalization support for /reports/fm_IDL.xml keys off of the Accept-Language header - which, if not set to ^[a-z]{2}-[A-Z]{2}$, falls back to en-US. Setting the header in the dojo.xhrGet() request makes Apache able to serve up the right flavour of /reports/fm_IDL.xml Signed-off-by: Dan Scott <dscott@laurentian.ca> Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
LP#1078596: Cannot translate strings handled by fieldmapper Strings that should be translatable only show up in English, for example in the Patron Registration screen. There's a bug in the fieldmapper where it sets a variable to an empty array, but later in the code only checks whether that particular variable exists, not if it's an empty array. Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi> Signed-off-by: Dan Scott <dscott@laurentian.ca>
Pure whitespace (tabs to spaces) for dojo.fieldmapper git-svn-id: svn://svn.open-ils.org/ILS/trunk@19732 dcc99617-32d9-48b4-a31d-7c20da2025e4
Apply jshint suggestions for cleanup to dojo.fieldmapper Mostly consisting of missing semicolons and avoiding the redeclaration of variables (generally for iterators) within the same function scope. Some tightening of null and '' checks to avoid implicit type-casting. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19730 dcc99617-32d9-48b4-a31d-7c20da2025e4
return AutoIDL to its original state of loading the while IDL if no classes are selected. This will ease the process of moving to /IDL2js; other minor cleanup git-svn-id: svn://svn.open-ils.org/ILS/trunk@18747 dcc99617-32d9-48b4-a31d-7c20da2025e4
Server-generated IDL JS The goal is to reduce use of pre-onload XHR, which is known to cause problems (dreaded white-screen-of-death) in firefox/xulrunner. Change allows opac, staff client, and embedded browser interfaces to load a pre-formatted JS object instead of IDL XML via XHR. In addition to dropping the XHR, clients no longer parse the XML, which should reduce page render time. Finally, in the staff interfaces, the full IDL is once again loaded, so there is no need to specifiy per-page classes. Per-page classes are still supported and used in the OPAC to reduce the up-front load time. Change requires an update to the Evergreen Apache config. See -r18700. Part of this change included condensing fieldmapper.hash and fielmapper.dojoData content into fieldmapper.Fieldmapper to avoid circular dependencies, which was causing problems with IE. Will eventually want to deprecate .hash and .dojoData, but for now they still function as before. git-svn-id: svn://svn.open-ils.org/ILS/trunk@18712 dcc99617-32d9-48b4-a31d-7c20da2025e4
Allow forced loading of the whole IDL with: fieldmapper.IDL.load(["*"]); git-svn-id: svn://svn.open-ils.org/ILS/trunk@18668 dcc99617-32d9-48b4-a31d-7c20da2025e4
make sure classes are /always/ loaded from the server git-svn-id: svn://svn.open-ils.org/ILS/trunk@18664 dcc99617-32d9-48b4-a31d-7c20da2025e4
cut down on reloading of IDL classes git-svn-id: svn://svn.open-ils.org/ILS/trunk@18603 dcc99617-32d9-48b4-a31d-7c20da2025e4
Allow the OPAC to autoload IDL classes instead of either pulling in a long class list and evaluating them all, or loading a .5MB+ xml file and parsing the whole thing. 40% speedup in simple tests where cache is bypassed. git-svn-id: svn://svn.open-ils.org/ILS/trunk@17396 dcc99617-32d9-48b4-a31d-7c20da2025e4
register the autoloader earlier, and log about the use it gets git-svn-id: svn://svn.open-ils.org/ILS/trunk@17179 dcc99617-32d9-48b4-a31d-7c20da2025e4
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
use dojo.query instead of getElementsByTagName ... IE-- git-svn-id: svn://svn.open-ils.org/ILS/trunk@16559 dcc99617-32d9-48b4-a31d-7c20da2025e4
add class/instance methods for checking required-ness and validity of an object field in JS FM implementation git-svn-id: svn://svn.open-ils.org/ILS/trunk@16557 dcc99617-32d9-48b4-a31d-7c20da2025e4
add required IDL flag and validation regexp support git-svn-id: svn://svn.open-ils.org/ILS/trunk@16553 dcc99617-32d9-48b4-a31d-7c20da2025e4
IE just asked my why it would want to go and support the XML spec ... uh ... git-svn-id: svn://svn.open-ils.org/ILS/trunk@16273 dcc99617-32d9-48b4-a31d-7c20da2025e4
fixed bug in load() arguments in IDL class auto-vivicate process git-svn-id: svn://svn.open-ils.org/ILS/trunk@15020 dcc99617-32d9-48b4-a31d-7c20da2025e4
teach the IDL how to teach JSON_v1 how to load classes when they are not yet loaded ... heh git-svn-id: svn://svn.open-ils.org/ILS/trunk@14683 dcc99617-32d9-48b4-a31d-7c20da2025e4