'XUL_HOLD_NOTICES' : '/xul/server/patron/hold_notices.xul',
'XUL_IN_HOUSE_USE' : '/xul/server/circ/in_house_use.xul',
'XUL_LOCAL_ADMIN' : '/xul/server/admin/index.xhtml',
+ 'XUL_MARC_NEW' : '/xul/server/cat/marc_new.xul',
'XUL_MARC_EDIT_LEGACY' : 'chrome://open_ils_staff_client/content/legacy/_marc.xul',
'XUL_MARC_EDIT' : '/xul/server/cat/marcedit.xul',
'XUL_MARC_VIEW' : '/xul/server/cat/marc_view.xul',
<command id="cmd_edit_record_buckets" />
<command id="cmd_cat_main" key="cat-main-key" />
+ <command id="cmd_create_marc" />
<command id="cmd_circ_checkout" key="circ-checkout-key" />
<command id="cmd_patron_search" key="patron-search-key" />
<command id="cmd_circ_checkin" key="circ-checkin-key" />
<menuitem label="Manage Volume Buckets" command="cmd_broken" accesskey="V"/>
<menuitem label="Manage Record Buckets" command="cmd_edit_record_buckets" accesskey="R"/>
<menuseparator />
- <menuitem label="Create New Marc Record" accesskey="N" command="cmd_broken"/>
+ <menuitem label="Create New Marc Record" accesskey="N" command="cmd_create_marc"/>
<menuitem label="Import Record from Z39.50" accesskey="Z" command="cmd_z39_50_import"/>
<menuseparator />
<menuitem label="Replace Barcode" command="cmd_replace_barcode"/>
--- /dev/null
+<?xml version="1.0"?>
+<!-- Application: Evergreen Staff Client -->
+<!-- Screen: Example Template for remote xul -->
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- STYLESHEETS -->
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
+<?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- LOCALIZATION -->
+<!DOCTYPE window PUBLIC "" ""[
+ <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+]>
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- OVERLAYS -->
+<?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
+
+<window id="example_template_win"
+ onload="try { my_init(); } catch(E) { alert(E); }"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+ <!-- BEHAVIOR -->
+ <script type="text/javascript">
+ var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
+ </script>
+ <scripts id="openils_util_scripts"/>
+
+ <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
+ <script>
+ <![CDATA[
+ function my_init() {
+ try {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+ if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
+ JSAN.errorLevel = "die"; // none, warn, or die
+ JSAN.addRepository('/xul/server/');
+ JSAN.use('util.error'); g.error = new util.error();
+ g.error.sdump('D_TRACE','my_init() for example_template.xul');
+
+ g.cgi = new CGI();
+ var session = g.cgi.param('session');
+
+ if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
+ try { window.xulG.set_tab_name('Template'); } catch(E) { alert(E); }
+ }
+
+ } catch(E) {
+ g.error.standard_unexpect_error_alert('cat/marc_new.xul',E);
+ }
+ }
+
+ ]]>
+ </script>
+
+ <vbox>
+
+ </vbox>
+
+</window>
+