marc creation stub
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Jul 2006 18:26:50 +0000 (18:26 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Jul 2006 18:26:50 +0000 (18:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5044 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
Open-ILS/xul/staff_client/server/cat/marc_new.xul [new file with mode: 0644]

index 80f8d3b..1050dd9 100644 (file)
@@ -168,6 +168,7 @@ const urls = {
        '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',
index 3ec3578..3a6b935 100644 (file)
@@ -354,6 +354,13 @@ main.menu.prototype = {
                                        obj.set_tab(obj.url_prefix(urls.XUL_Z3950_IMPORT),{},{});
                                }
                        ],
+                       'cmd_create_marc' : [
+                               ['oncommand'],
+                               function() {
+                                       obj.data.stash_retrieve();
+                                       obj.set_tab(obj.url_prefix(urls.XUL_MARC_NEW),{},{});
+                               }
+                       ],
 
                        /* Admin menu */
                        'cmd_change_session' : [
index f8a61f3..f06ac7d 100644 (file)
@@ -19,6 +19,7 @@
        <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"/>
diff --git a/Open-ILS/xul/staff_client/server/cat/marc_new.xul b/Open-ILS/xul/staff_client/server/cat/marc_new.xul
new file mode 100644 (file)
index 0000000..2cbb28f
--- /dev/null
@@ -0,0 +1,64 @@
+<?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>
+