put font_helper in the marc editor, to honor font size changes. Need to test this...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Feb 2009 04:55:54 +0000 (04:55 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Feb 2009 04:55:54 +0000 (04:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12075 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/marcedit.js
Open-ILS/xul/staff_client/server/cat/marcedit.xul

index 32953b5..f2b594a 100644 (file)
@@ -79,6 +79,12 @@ function xml_escape_unicode ( str ) {
 
 function my_init() {
        try {
+
+        netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+        if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
+        JSAN.errorLevel = "die"; // none, warn, or die
+        JSAN.addRepository('/xul/server/');
+
                // Fake xulG for standalone...
                try {
                        window.xulG.record;
@@ -227,6 +233,7 @@ function my_init() {
 
                loadRecord(xml_record);
 
+        font_helper();
 
        } catch(E) {
                alert('FIXME, MARC Editor, my_init: ' + E);
index 126da26..3799051 100644 (file)
@@ -9,15 +9,17 @@
 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
 ]>
 
+<?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
+
 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload="my_init()">
 
+<scripts id="openils_util_scripts"/>
+<script type="text/javascript" src="/xul/server/main/JSAN.js"/>
+
 <script src="marcedit.js" type="application/x-javascript; e4x=1"/>
-<script src="/opac/common/js/CGI.js" type="application/x-javascript; e4x=1"/>
-<script src="/opac/common/js/JSON_v1.js" type="application/x-javascript; e4x=1"/>
 
 <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
 <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
-<messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
 
 <groupbox flex="0">
        <caption label="&staff.cat.marcedit.options.label;"/>