From 5820df80fc6e9572f8899801d4792a336221a097 Mon Sep 17 00:00:00 2001 From: dbs Date: Sun, 20 Jan 2008 11:28:18 +0000 Subject: [PATCH] Start using locale SSI env to pull in DTD for XUL/XHTML Add include and XML entity parsing to XHTML files in /xul/ Localize a few more admin files git-svn-id: svn://svn.open-ils.org/ILS/trunk@8436 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/apache/eg_vhost.conf | 6 +- Open-ILS/web/opac/locale/en-US/lang.dtd | 41 +++++++++++ .../staff_client/server/admin/cash_reports.xhtml | 31 ++++---- .../staff_client/server/admin/font_settings.xul | 2 +- .../staff_client/server/admin/hold_pull_list.xul | 9 +-- .../server/admin/offline_manage_xacts.xul | 2 +- .../xul/staff_client/server/admin/transit_list.xul | 82 +++++++++++----------- 7 files changed, 112 insertions(+), 61 deletions(-) diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index d5460b173a..6128cfa477 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -99,12 +99,12 @@ OSRFGatewayConfig /openils/conf/opensrf_core.xml # ---------------------------------------------------------------------------------- -# Run server-side XUL through xmlent to load the correct XML entities +# Run server-side XUL and XHTML through xmlent to load the correct XML entities # ---------------------------------------------------------------------------------- - + Options +Includes XMLEntContentType "application/vnd.mozilla.xul+xml" - AddOutputFilter INCLUDES;XMLENT .xul + AddOutputFilter INCLUDES;XMLENT .xhtml .xul allow from all # We only support one locale (en-US) for the time being diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index ca7edeaf7f..4ab4dc5549 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1256,3 +1256,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml b/Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml index 8fbb556933..95345ba7bc 100644 --- a/Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml @@ -1,8 +1,15 @@ - + + + +]> + - Evergreen: Cash Reports + &staff.server.admin.cash.title; @@ -39,46 +46,46 @@
- Welcome + &staff.server.admin.cash.welcome;
- Start Date: + &staff.server.admin.cash.start_date; - End Date: + &staff.server.admin.cash.end_date; -
(YYYY-MM-DD)
+
&staff.server.admin.cash.date_format;
-
View reports for :
+
-

Desk Payments

+

&staff.server.admin.cash.desk;




-

User Payments

+

&staff.server.admin.cash.user;

diff --git a/Open-ILS/xul/staff_client/server/admin/font_settings.xul b/Open-ILS/xul/staff_client/server/admin/font_settings.xul index b3acac93f0..19e23ede62 100644 --- a/Open-ILS/xul/staff_client/server/admin/font_settings.xul +++ b/Open-ILS/xul/staff_client/server/admin/font_settings.xul @@ -11,7 +11,7 @@ + ]> diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xul b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xul index 900408e99e..5c7a470e97 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xul +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xul @@ -12,7 +12,7 @@ + ]> @@ -35,7 +35,7 @@ function my_init() { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); - if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); } + if (typeof JSAN == 'undefined') { throw( document.getElementById("commonStrings").getString('common.jsan.missing') ); } JSAN.errorLevel = "die"; // none, warn, or die JSAN.addRepository('/xul/server/'); JSAN.use('util.error'); g.error = new util.error(); @@ -56,8 +56,7 @@ default_focus(); } catch(E) { - var err_msg = "!! This software has encountered an error. Please tell your friendly " + - "system administrator or software developer the following:\npatron/holds.xul\n" + E + '\n'; + var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['patron/holds.xul', E]); try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); } alert(err_msg); } @@ -68,6 +67,8 @@ ]]> + + diff --git a/Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul b/Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul index 6e76ad363b..759cdb72cf 100644 --- a/Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul +++ b/Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul @@ -12,7 +12,7 @@ + ]> diff --git a/Open-ILS/xul/staff_client/server/admin/transit_list.xul b/Open-ILS/xul/staff_client/server/admin/transit_list.xul index 253c76e66e..116fd967c0 100644 --- a/Open-ILS/xul/staff_client/server/admin/transit_list.xul +++ b/Open-ILS/xul/staff_client/server/admin/transit_list.xul @@ -11,7 +11,7 @@ + ]> @@ -35,7 +35,7 @@ function my_init() { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); - if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); } + if (typeof JSAN == 'undefined') { throw( document.getElementById("commonStrings").getString('common.jsan.missing') ); } JSAN.errorLevel = "die"; // none, warn, or die JSAN.addRepository('/xul/server/'); JSAN.use('util.error'); g.error = new util.error(); @@ -53,66 +53,68 @@ ]]> + + - + - -