[open-ils-commits] r7735 - in
branches/rel_1_2/Open-ILS/xul/staff_client:
chrome/content/main server/cat server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 29 11:07:59 EDT 2007
Author: phasefx
Date: 2007-08-29 11:02:06 -0400 (Wed, 29 Aug 2007)
New Revision: 7735
Added:
branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul
branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_buckets.xul
Modified:
branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/constants.js
branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/menu.js
branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
Log:
Since we intend to push out a 1.2 staff client, I want to stub out Volume and User buckets in the chrome so we can add them later with a server-side xul upgrade, in case those get added in a 1.2.x release
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/constants.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2007-08-29 14:52:52 UTC (rev 7734)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2007-08-29 15:02:06 UTC (rev 7735)
@@ -268,6 +268,8 @@
'XUL_STANDALONE' : 'chrome://open_ils_staff_client/content/circ/offline.xul',
'XUL_STAT_CAT_EDIT' : '/xul/server/admin/stat_cat_editor.xhtml',
'XUL_SURVEY_WIZARD' : 'chrome://open_ils_staff_client/content/admin/survey_wizard.xul',
+ 'XUL_USER_BUCKETS' : '/xul/server/patron/user_buckets.xul',
+ 'XUL_VOLUME_BUCKETS' : '/xul/server/cat/volume_buckets.xul',
'XUL_VOLUME_COPY_CREATOR' : '/xul/server/cat/volume_copy_creator.xul',
'XUL_VOLUME_EDITOR' : '/xul/server/cat/volume_editor.xul',
'XUL_Z3950_IMPORT' : '/xul/server/cat/z3950.xul',
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2007-08-29 14:52:52 UTC (rev 7734)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2007-08-29 15:02:06 UTC (rev 7735)
@@ -71,6 +71,13 @@
obj.set_tab(obj.url_prefix(urls.XUL_COPY_BUCKETS),{'tab_name':'Copy Buckets'},{});
}
],
+ 'cmd_edit_volume_buckets' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_VOLUME_BUCKETS),{'tab_name':'Volume Buckets'},{});
+ }
+ ],
'cmd_edit_record_buckets' : [
['oncommand'],
function() {
@@ -78,7 +85,15 @@
obj.set_tab(obj.url_prefix(urls.XUL_RECORD_BUCKETS),{'tab_name':'Record Buckets'},{});
}
],
+ 'cmd_edit_user_buckets' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_USER_BUCKETS),{'tab_name':'User Buckets'},{});
+ }
+ ],
+
'cmd_replace_barcode' : [
['oncommand'],
function() {
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2007-08-29 14:52:52 UTC (rev 7734)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2007-08-29 15:02:06 UTC (rev 7735)
@@ -16,7 +16,9 @@
<command id="cmd_shutdown" />
<command id="cmd_edit_copy_buckets" />
+ <command id="cmd_edit_volume_buckets" />
<command id="cmd_edit_record_buckets" />
+ <command id="cmd_edit_user_buckets" />
<command id="cmd_cat_main" key="cat-main-key" />
<command id="cmd_create_marc" />
@@ -108,8 +110,9 @@
<menu id="main.menu.edit" label="&staff.main.menu.edit.label;" accesskey="&staff.main.menu.edit.key;">
<menupopup id="main.menu.edit.popup">
<menuitem label="Copy Buckets" command="cmd_edit_copy_buckets" accesskey="B"/>
- <menuitem label="Volume Buckets" command="cmd_broken" accesskey="V"/>
+ <menuitem label="Volume Buckets" command="cmd_edit_volume_buckets" accesskey="V"/>
<menuitem label="Record Buckets" command="cmd_edit_record_buckets" accesskey="R"/>
+ <menuitem label="User Buckets" command="cmd_edit_user_buckets" accesskey="U"/>
<menuseparator />
<menuitem label="Replace Barcode" command="cmd_replace_barcode"/>
</menupopup>
@@ -149,7 +152,7 @@
<menuitem disabled="true" label="&staff.main.menu.cat.dedup.label;" accesskey="&staff.main.menu.cat.dedup.key;" command="cmd_broken"/>
-->
<menuitem label="Manage Copy Buckets" command="cmd_edit_copy_buckets" accesskey="B"/>
- <menuitem label="Manage Volume Buckets" command="cmd_broken" accesskey="V"/>
+ <menuitem label="Manage Volume Buckets" command="cmd_edit_volume_buckets" 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_create_marc"/>
Added: branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul (rev 0)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul 2007-08-29 15:02:06 UTC (rev 7735)
@@ -0,0 +1,59 @@
+<?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 cat/volume_buckets.xul');
+
+ if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
+ try { window.xulG.set_tab_name('Volume Buckets'); } catch(E) { alert(E); }
+ }
+
+ } catch(E) {
+ try { g.error.standard_unexpected_error_alert('cat/volume_buckets.xul',E); } catch(F) { alert(E); }
+ }
+ }
+
+ ]]>
+ </script>
+
+ <label value="Just a stub, Not Yet Implemented"/>
+
+</window>
+
Property changes on: branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_buckets.xul
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_buckets.xul (rev 0)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_buckets.xul 2007-08-29 15:02:06 UTC (rev 7735)
@@ -0,0 +1,59 @@
+<?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 patron/user_buckets.xul');
+
+ if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
+ try { window.xulG.set_tab_name('User Buckets'); } catch(E) { alert(E); }
+ }
+
+ } catch(E) {
+ try { g.error.standard_unexpected_error_alert('patron/user_buckets.xul',E); } catch(F) { alert(E); }
+ }
+ }
+
+ ]]>
+ </script>
+
+ <label value="Just a stub, Not Yet Implemented"/>
+
+</window>
+
Property changes on: branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_buckets.xul
___________________________________________________________________
Name: svn:executable
+ *
More information about the open-ils-commits
mailing list