From 4d2de360632c7744752a907a3af5f09ddc25376c Mon Sep 17 00:00:00 2001 From: Joseph Lewis Date: Thu, 28 Jul 2011 12:58:07 -0600 Subject: [PATCH] Removed all of the old cgi.js usages that I could find and replaced them with the new openils.CGI widget instances. It appears that most of the actual imports are never used, but they were replaced anyway in hopes of not breaking anything :) Signed-off-by: Joseph Lewis --- Open-ILS/web/conify/global/actor/org_unit.html | 1 - Open-ILS/web/conify/global/actor/org_unit.js | 3 ++- Open-ILS/web/conify/global/actor/org_unit_type.html | 1 - Open-ILS/web/conify/global/actor/org_unit_type.js | 3 ++- Open-ILS/web/conify/global/config/copy_status.html | 1 - Open-ILS/web/conify/global/config/copy_status.js | 3 ++- Open-ILS/web/conify/global/config/marc_code_maps.html | 1 - Open-ILS/web/conify/global/config/marc_code_maps.js | 3 ++- Open-ILS/web/conify/global/permission/grp_tree.html | 1 - Open-ILS/web/conify/global/permission/grp_tree.js | 3 ++- Open-ILS/web/conify/global/permission/perm_list.html | 1 - Open-ILS/web/conify/global/permission/perm_list.js | 3 ++- Open-ILS/web/opac/extras/bbags.js | 3 ++- Open-ILS/web/opac/extras/bbags.xml | 3 ++- Open-ILS/web/opac/extras/circ/alt_holds_print.html | 3 +-- Open-ILS/web/opac/extras/circ/alt_holds_print.js | 1 + Open-ILS/web/opac/extras/selfcheck/selfcheck.xml | 8 ++++++-- Open-ILS/web/opac/skin/default/xml/common/js_common.xml | 10 +++++++++- Open-ILS/web/reports/oils_rpt.js | 4 +++- Open-ILS/web/reports/oils_rpt_builder.js | 5 +++-- Open-ILS/web/reports/oils_rpt_common.xhtml | 5 +++-- Open-ILS/web/reports/xul/source-setup.js | 5 +++-- Open-ILS/web/reports/xul/template-config.js | 3 ++- Open-ILS/web/reports/xul/template_builder.xul | 3 ++- .../chrome/content/OpenILS/util_overlay_chrome.xul | 8 +++++++- .../chrome/content/OpenILS/util_overlay_offline.xul | 8 +++++++- Open-ILS/xul/staff_client/chrome/content/main/main.xul | 8 +++++++- Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul | 8 +++++++- Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml | 10 ++++++++-- Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml | 10 +++++++++- Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml | 4 +++- Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml | 11 ++++++++--- .../staff_client/server/admin/hold_pull_list_classic.xhtml | 10 ++++++++-- Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml | 11 +++++++++-- .../xul/staff_client/server/admin/printer_settings.html | 8 +++++++- .../xul/staff_client/server/admin/stat_cat_editor.xhtml | 8 +++++++- Open-ILS/xul/staff_client/server/admin/upload_xacts.xhtml | 8 +++++++- Open-ILS/xul/staff_client/server/index.xhtml | 7 ++++++- Open-ILS/xul/staff_client/server/patron/ue.xhtml | 11 +++++++++-- Open-ILS/xul/staff_client/server/patron/user_edit.xhtml | 13 ++++++++++--- 40 files changed, 168 insertions(+), 52 deletions(-) diff --git a/Open-ILS/web/conify/global/actor/org_unit.html b/Open-ILS/web/conify/global/actor/org_unit.html index 726898b446..9d04df51b4 100644 --- a/Open-ILS/web/conify/global/actor/org_unit.html +++ b/Open-ILS/web/conify/global/actor/org_unit.html @@ -49,7 +49,6 @@ - diff --git a/Open-ILS/web/conify/global/actor/org_unit.js b/Open-ILS/web/conify/global/actor/org_unit.js index 12f9139113..98ed86c3f5 100644 --- a/Open-ILS/web/conify/global/actor/org_unit.js +++ b/Open-ILS/web/conify/global/actor/org_unit.js @@ -36,9 +36,10 @@ dojo.require('dijit.layout.SplitContainer'); dojo.require('dojox.widget.Toaster'); dojo.require('dojox.fx'); dojo.requireLocalization("openils.conify", "conify"); +dojo.require('openils.CGI'); // some handy globals -var cgi = new CGI(); +var cgi = new openils.CGI(); var ses = dojo.cookie('ses') || cgi.param('ses'); var pcrud = new openils.PermaCrud({ authtoken : ses }); diff --git a/Open-ILS/web/conify/global/actor/org_unit_type.html b/Open-ILS/web/conify/global/actor/org_unit_type.html index 4b1e843807..ca4b484a39 100644 --- a/Open-ILS/web/conify/global/actor/org_unit_type.html +++ b/Open-ILS/web/conify/global/actor/org_unit_type.html @@ -51,7 +51,6 @@ - diff --git a/Open-ILS/web/conify/global/actor/org_unit_type.js b/Open-ILS/web/conify/global/actor/org_unit_type.js index 26cb07d10e..a02a2fb821 100644 --- a/Open-ILS/web/conify/global/actor/org_unit_type.js +++ b/Open-ILS/web/conify/global/actor/org_unit_type.js @@ -36,10 +36,11 @@ dojo.require('dijit.layout.LayoutContainer'); dojo.require('dijit.layout.SplitContainer'); dojo.require('dojox.widget.Toaster'); dojo.require('dojox.fx'); +dojo.require('openils.CGI'); dojo.requireLocalization("openils.conify", "conify"); // some handy globals -var cgi = new CGI(); +var cgi = new openils.CGI(); var ses = dojo.cookie('ses') || cgi.param('ses'); var pCRUD = new openils.PermaCrud({authtoken:ses}); diff --git a/Open-ILS/web/conify/global/config/copy_status.html b/Open-ILS/web/conify/global/config/copy_status.html index 262eaf21c9..c0e840d88d 100644 --- a/Open-ILS/web/conify/global/config/copy_status.html +++ b/Open-ILS/web/conify/global/config/copy_status.html @@ -52,7 +52,6 @@ - diff --git a/Open-ILS/web/conify/global/config/copy_status.js b/Open-ILS/web/conify/global/config/copy_status.js index 1613ae8eb7..8e33cfcce5 100644 --- a/Open-ILS/web/conify/global/config/copy_status.js +++ b/Open-ILS/web/conify/global/config/copy_status.js @@ -32,10 +32,11 @@ dojo.require('dijit.layout.BorderContainer'); dojo.require('dojox.widget.Toaster'); dojo.require('dojox.fx'); dojo.require('dojox.grid.Grid'); +dojo.require('openils.CGI'); dojo.requireLocalization("openils.conify", "conify"); // some handy globals -var cgi = new CGI(); +var cgi = new openils.CGI(); var ses = dojo.cookie('ses') || cgi.param('ses'); var pCRUD = new openils.PermaCrud({authtoken:ses}); diff --git a/Open-ILS/web/conify/global/config/marc_code_maps.html b/Open-ILS/web/conify/global/config/marc_code_maps.html index 9a8bbb0ad8..4ebde697ab 100644 --- a/Open-ILS/web/conify/global/config/marc_code_maps.html +++ b/Open-ILS/web/conify/global/config/marc_code_maps.html @@ -52,7 +52,6 @@ - diff --git a/Open-ILS/web/conify/global/config/marc_code_maps.js b/Open-ILS/web/conify/global/config/marc_code_maps.js index 4589a9870b..422662e490 100644 --- a/Open-ILS/web/conify/global/config/marc_code_maps.js +++ b/Open-ILS/web/conify/global/config/marc_code_maps.js @@ -34,12 +34,13 @@ dojo.require('dijit.layout.BorderContainer'); dojo.require('dojox.widget.Toaster'); dojo.require('dojox.fx'); dojo.require('dojox.grid.Grid'); +dojo.require('openils.CGI'); dojo.requireLocalization("openils.conify", "conify"); console.log('loading marc_code_maps.js'); // some handy globals -var cgi = new CGI(); +var cgi = new openils.CGI(); var ses = dojo.cookie('ses') || cgi.param('ses'); var pCRUD = new openils.PermaCrud({authtoken:ses}); diff --git a/Open-ILS/web/conify/global/permission/grp_tree.html b/Open-ILS/web/conify/global/permission/grp_tree.html index ac2026f36c..1574da60c9 100644 --- a/Open-ILS/web/conify/global/permission/grp_tree.html +++ b/Open-ILS/web/conify/global/permission/grp_tree.html @@ -62,7 +62,6 @@ - diff --git a/Open-ILS/web/conify/global/permission/grp_tree.js b/Open-ILS/web/conify/global/permission/grp_tree.js index 1ee39d3656..9d790a4d77 100644 --- a/Open-ILS/web/conify/global/permission/grp_tree.js +++ b/Open-ILS/web/conify/global/permission/grp_tree.js @@ -40,10 +40,11 @@ dojo.require('dijit.layout.SplitContainer'); dojo.require('dojox.widget.Toaster'); dojo.require('dojox.fx'); dojo.require('dojox.grid.Grid'); +dojo.require('openils.CGI'); dojo.requireLocalization("openils.conify", "conify"); // some handy globals -var cgi = new CGI(); +var cgi = new openils.CGI(); var ses = dojo.cookie('ses') || cgi.param('ses'); var server = {}; server.pcrud = new openils.PermaCrud({ authtoken : ses }); diff --git a/Open-ILS/web/conify/global/permission/perm_list.html b/Open-ILS/web/conify/global/permission/perm_list.html index 680cf6104f..ec88121abb 100644 --- a/Open-ILS/web/conify/global/permission/perm_list.html +++ b/Open-ILS/web/conify/global/permission/perm_list.html @@ -52,7 +52,6 @@ - diff --git a/Open-ILS/web/conify/global/permission/perm_list.js b/Open-ILS/web/conify/global/permission/perm_list.js index ff303f965c..162124d831 100644 --- a/Open-ILS/web/conify/global/permission/perm_list.js +++ b/Open-ILS/web/conify/global/permission/perm_list.js @@ -32,10 +32,11 @@ dojo.require('dijit.layout.BorderContainer'); dojo.require('dojox.widget.Toaster'); dojo.require('dojox.fx'); dojo.require('dojox.grid.Grid'); +dojo.require('openils.CGI'); dojo.requireLocalization("openils.conify", "conify"); // some handy globals -var cgi = new CGI(); +var cgi = new openils.CGI(); var ses = dojo.cookie('ses') || cgi.param('ses'); var pCRUD = new openils.PermaCrud({authtoken : ses}); diff --git a/Open-ILS/web/opac/extras/bbags.js b/Open-ILS/web/opac/extras/bbags.js index be5fdc1a39..6f4ba0b607 100644 --- a/Open-ILS/web/opac/extras/bbags.js +++ b/Open-ILS/web/opac/extras/bbags.js @@ -1,9 +1,10 @@ /* XXX allow to pass in a 'local' var so the links back into the opac can be localized */ /* maybe also a 'skin' var */ +dojo.require('openils.CGI'); function bbInit() { - var cgi = new CGI(); + var cgi = new openils.CGI(); var bb = cgi.param('bb'); if(!bb) { unHideMe($('not_found')); return; } var req = new Request(FLESH_PUBLIC_CONTAINER, 'biblio', bb); diff --git a/Open-ILS/web/opac/extras/bbags.xml b/Open-ILS/web/opac/extras/bbags.xml index 2b6ecf7537..372d5693e8 100644 --- a/Open-ILS/web/opac/extras/bbags.xml +++ b/Open-ILS/web/opac/extras/bbags.xml @@ -8,9 +8,10 @@ Evergreen: Bookbag Viewer + + - diff --git a/Open-ILS/web/opac/extras/circ/alt_holds_print.html b/Open-ILS/web/opac/extras/circ/alt_holds_print.html index a7a1619aad..7f01694688 100644 --- a/Open-ILS/web/opac/extras/circ/alt_holds_print.html +++ b/Open-ILS/web/opac/extras/circ/alt_holds_print.html @@ -26,7 +26,6 @@ - + + + - diff --git a/Open-ILS/web/opac/skin/default/xml/common/js_common.xml b/Open-ILS/web/opac/skin/default/xml/common/js_common.xml index 4fc46053a2..011416114a 100644 --- a/Open-ILS/web/opac/skin/default/xml/common/js_common.xml +++ b/Open-ILS/web/opac/skin/default/xml/common/js_common.xml @@ -40,7 +40,6 @@ - @@ -52,6 +51,15 @@ + + + + + + + + - - + diff --git a/Open-ILS/web/reports/xul/source-setup.js b/Open-ILS/web/reports/xul/source-setup.js index 7a9ca848e2..0694f9fb20 100644 --- a/Open-ILS/web/reports/xul/source-setup.js +++ b/Open-ILS/web/reports/xul/source-setup.js @@ -1,4 +1,5 @@ dojo.requireLocalization("openils.reports", "reports"); +dojo.require('openils.CGI'); var rpt_strings = dojo.i18n.getLocalization("openils.reports", "reports"); var idlNS = "http://opensrf.org/spec/IDL/base/v1"; @@ -37,7 +38,7 @@ function sortLabels (a,b) { function loadTemplate(id) { - var cgi = new CGI(); + var cgi = new openils.CGI(); var session = cgi.param('ses'); var r = new Request('open-ils.reporter:open-ils.reporter.template.retrieve', session, id); @@ -71,7 +72,7 @@ function loadIDL() { filterByAttributeNS( oilsIDL.getElementsByTagName('class'), rptNS, 'core', 'true' ) ); - var cgi = new CGI(); + var cgi = new openils.CGI(); var template_id = cgi.param('ct'); if (template_id) loadTemplate(template_id); } diff --git a/Open-ILS/web/reports/xul/template-config.js b/Open-ILS/web/reports/xul/template-config.js index 46c66ac70a..4859308be7 100644 --- a/Open-ILS/web/reports/xul/template-config.js +++ b/Open-ILS/web/reports/xul/template-config.js @@ -1,6 +1,7 @@ dojo.requireLocalization("openils.reports", "reports"); var rpt_strings = dojo.i18n.getLocalization("openils.reports", "reports"); +dojo.require('openils.CGI'); function removeReportAtom (args) { if (!args) args = {}; @@ -789,7 +790,7 @@ function save_template () { //prompt( 'template', js2JSON( template ) ); // and the saving throw ... - var cgi = new CGI(); + var cgi = new openils.CGI(); var session = cgi.param('ses'); fetchUser( session ); diff --git a/Open-ILS/web/reports/xul/template_builder.xul b/Open-ILS/web/reports/xul/template_builder.xul index 40ffface0d..73438c9411 100644 --- a/Open-ILS/web/reports/xul/template_builder.xul +++ b/Open-ILS/web/reports/xul/template_builder.xul @@ -23,16 +23,17 @@ ]]> + + + + + + + + + + + - - + diff --git a/Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml b/Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml index a3af761c2e..401c995501 100644 --- a/Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml @@ -12,7 +12,15 @@ &staff.server.admin.closed_dates.title; - + + + + + + diff --git a/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml b/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml index 189df60ab6..d42eaf9579 100644 --- a/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml @@ -16,10 +16,12 @@ - diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml index e0fad8aa15..944884c7a1 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml @@ -13,9 +13,14 @@ &staff.server.admin.hold_pull.title; - - - + + + + + diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml index c689400e48..0d34dc8d88 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml @@ -11,9 +11,15 @@ Evergreen Holds Pull List + + + + - - + diff --git a/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml b/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml index 803b8caad7..680133a56f 100644 --- a/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml @@ -12,8 +12,15 @@ &staff.server.admin.non_cat_types.title; - - + + + + + + diff --git a/Open-ILS/xul/staff_client/server/admin/printer_settings.html b/Open-ILS/xul/staff_client/server/admin/printer_settings.html index fdd0db3ffd..c0eb3fc07b 100644 --- a/Open-ILS/xul/staff_client/server/admin/printer_settings.html +++ b/Open-ILS/xul/staff_client/server/admin/printer_settings.html @@ -11,8 +11,14 @@ + + + + - diff --git a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml index c1341ebe75..8d466b1fab 100644 --- a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml @@ -10,9 +10,15 @@ &staff.server.admin.stat_cat.title; + + + + - diff --git a/Open-ILS/xul/staff_client/server/admin/upload_xacts.xhtml b/Open-ILS/xul/staff_client/server/admin/upload_xacts.xhtml index eae0bbeb90..b5d62ea663 100644 --- a/Open-ILS/xul/staff_client/server/admin/upload_xacts.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/upload_xacts.xhtml @@ -16,8 +16,14 @@ + + - + + diff --git a/Open-ILS/xul/staff_client/server/patron/ue.xhtml b/Open-ILS/xul/staff_client/server/patron/ue.xhtml index 37b807db2f..af4809d2a8 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.xhtml +++ b/Open-ILS/xul/staff_client/server/patron/ue.xhtml @@ -12,8 +12,15 @@ &ev.staff.patron.ue_xhtml.ev_user_editor.label; - - + + + + + + diff --git a/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml b/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml index 8bdf628b73..2442587d6b 100644 --- a/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml +++ b/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml @@ -11,9 +11,16 @@ &staff.patron.user_edit.title; - - - + + + + + + + -- 2.11.0