Back-port of 18712 and related changes: Server-generated IDL JS
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 12 Nov 2010 19:51:26 +0000 (19:51 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 12 Nov 2010 19:51:26 +0000 (19:51 +0000)
commitebbf468e494d886ceb916f370fa1f6ebbcfef33c
tree35b0792cc1460d2d3b49c94635328bb0f5214f42
parentd1c0541e4c8ddb1b76335c6559c0903d0e3a35f6
Back-port of 18712 and related changes: 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.

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/branches/rel_2_0@18717 dcc99617-32d9-48b4-a31d-7c20da2025e4
22 files changed:
Open-ILS/examples/apache/eg_vhost.conf
Open-ILS/examples/apache/startup.pl
Open-ILS/examples/opensrf.xml.example
Open-ILS/src/perlmods/OpenILS/WWW/IDL2js.pm [new file with mode: 0644]
Open-ILS/web/conify/global/actor/org_unit.html
Open-ILS/web/conify/global/actor/org_unit_type.html
Open-ILS/web/conify/global/config/copy_status.html
Open-ILS/web/conify/global/config/marc_code_maps.html
Open-ILS/web/conify/global/permission/grp_tree.html
Open-ILS/web/conify/global/permission/perm_list.html
Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
Open-ILS/web/js/dojo/fieldmapper/IDL.js
Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js
Open-ILS/web/js/dojo/fieldmapper/dojoData.js
Open-ILS/web/js/dojo/fieldmapper/hash.js
Open-ILS/web/js/ui/base.js
Open-ILS/web/opac/skin/default/xml/common/js_common.xml
Open-ILS/web/templates/base.tt2
Open-ILS/xsl/fm_IDL2js.xsl [new file with mode: 0644]
Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml
Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml