From 9d303c41281acf33daee0e03976d354ccc5a1866 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 5 Feb 2009 04:55:54 +0000 Subject: [PATCH] put font_helper in the marc editor, to honor font size changes. Need to test this in Vandelay; and I'm not sure if it'll work with a standalone marc editor (do we support that still?) 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 | 7 +++++++ Open-ILS/xul/staff_client/server/cat/marcedit.xul | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 32953b5eb7..f2b594aa1b 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -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); diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.xul b/Open-ILS/xul/staff_client/server/cat/marcedit.xul index 126da262f2..37990514f5 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.xul +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.xul @@ -9,15 +9,17 @@ ]> + + + +