[open-ils-commits] r9360 - in trunk/Open-ILS: web/opac/locale/en-US xul/staff_client/server/cat

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Apr 15 08:56:57 EDT 2008


Author: dbs
Date: 2008-04-15 08:18:51 -0400 (Tue, 15 Apr 2008)
New Revision: 9360

Modified:
   trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
   trunk/Open-ILS/xul/staff_client/server/cat/marc_view.html
   trunk/Open-ILS/xul/staff_client/server/cat/marc_view.xul
Log:
marc_view i18n


Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2008-04-15 11:59:51 UTC (rev 9359)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2008-04-15 12:18:51 UTC (rev 9360)
@@ -1893,3 +1893,6 @@
 <!ENTITY staff.cat.marcedit.help.accesskey "H">
 <!ENTITY staff.cat.marcedit.caption.label "MARC Record">
 <!ENTITY staff.cat.marcedit.toggleFFE.label "Fixed Fields -- Record type: ">
+<!ENTITY staff.cat.marc_new.load.label "Load">
+<!ENTITY staff.cat.marc_new.load.accesskey "L">
+<!ENTITY staff.cat.marc_view.title "MARC View">

Modified: trunk/Open-ILS/xul/staff_client/server/cat/marc_view.html
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marc_view.html	2008-04-15 11:59:51 UTC (rev 9359)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marc_view.html	2008-04-15 12:18:51 UTC (rev 9360)
@@ -39,7 +39,7 @@
             var fragment = xsltProcessor.transformToFragment(node, document);
             document.body.appendChild(fragment);
         } catch(E) {
-            alert('An error occured and we are unable to display the MARC here.\nError in apply_xsl_marc2html: ' + E);
+            alert('An error occurred and we are unable to display the MARC here.\nError in apply_xsl_marc2html: ' + E);
         }
 	}
 

Modified: trunk/Open-ILS/xul/staff_client/server/cat/marc_view.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marc_view.xul	2008-04-15 11:59:51 UTC (rev 9359)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marc_view.xul	2008-04-15 12:18:51 UTC (rev 9360)
@@ -1,6 +1,9 @@
 <?xml version="1.0"?>
 <!-- Application: Evergreen Staff Client -->
 <!-- Screen: MARC View -->
+<!--
+vim:noet:sw=4:ts=4:
+-->
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- STYLESHEETS -->
@@ -11,7 +14,7 @@
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- LOCALIZATION -->
 <!DOCTYPE window PUBLIC "" ""[
-	<!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+	<!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
 ]>
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -35,7 +38,9 @@
 		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();
@@ -68,8 +73,7 @@
 				);
 
 			} catch(E) {
-				var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
-					"system administrator or software developer the following:\ncat/marc_view.xul\n" + E + '\n';
+				var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['cat/marc_view.xul', E]);
 				try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
 				alert(err_msg);
 			}
@@ -79,7 +83,7 @@
 	</script>
 
 	<groupbox flex="1">
-		<caption label="MARC View"/>
+		<caption label="&staff.cat.marc_view.title;"/>
 		<iframe id="marc_frame" flex="1"/>
 	</groupbox>
 



More information about the open-ils-commits mailing list