optional button bar between top-level menu and tabbed interfaces
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Mar 2009 22:39:53 +0000 (22:39 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Mar 2009 22:39:53 +0000 (22:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12409 dcc99617-32d9-48b4-a31d-7c20da2025e4

12 files changed:
Open-ILS/web/opac/locale/en-US/lang.dtd
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/chrome/content/main/menu_frame_overlay.xul
Open-ILS/xul/staff_client/chrome/skin/media/images/Arrow-rightup-small.png [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_famiglia_32x32.png [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_indici_32x32.png [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_lente_32x32.png [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_libro_32x32.png [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/skin/media/images/center.png [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/skin/media/images/licenses.txt [new file with mode: 0644]
Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml

index 96262d8..53f8888 100644 (file)
 <!ENTITY staff.main.auth.status "Status">
 <!ENTITY staff.main.auth.version "Version">
 <!ENTITY staff.main.auth.workstation "Workstation">
+<!ENTITY staff.main.button_bar.check_out.label "Check Out">
+<!ENTITY staff.main.button_bar.check_out.accesskey "">
+<!ENTITY staff.main.button_bar.check_in.label "Check In">
+<!ENTITY staff.main.button_bar.check_in.accesskey "">
+<!ENTITY staff.main.button_bar.item_status.label "Item Status">
+<!ENTITY staff.main.button_bar.item_status.accesskey "">
+<!ENTITY staff.main.button_bar.patron_search.label "Patron Search">
+<!ENTITY staff.main.button_bar.patron_search.accesskey "">
+<!ENTITY staff.main.button_bar.patron_registration.label "Patron Registration">
+<!ENTITY staff.main.button_bar.patron_registration.accesskey "">
 <!ENTITY staff.main.menu.acquisitions.accesskey "q">
 <!ENTITY staff.main.menu.acquisitions.label "Acquisitions">
 <!ENTITY staff.main.menu.admin.accesskey "-">
 <!ENTITY staff.main.menu.admin.xuleditor.label "XUL Test">
 <!ENTITY staff.main.menu.admin.venkman.label "Venkman">
 <!ENTITY staff.main.menu.admin.ping "Ping Server">
+<!ENTITY staff.main.menu.admin.toggle_buttonbar.accesskey "B">
+<!ENTITY staff.main.menu.admin.toggle_buttonbar.label "Toggle Button Bar">
 <!ENTITY staff.main.menu.cat.accesskey "g">
 <!ENTITY staff.main.menu.cat.add_bib.key "B">
 <!ENTITY staff.main.menu.cat.add_bib.label "Add Bib Record">
 <!ENTITY ev.staff.patron.ue_xhtml.alias.label "Alias">
 <!ENTITY staff.portal.title "Evergreen Staff Client Portal Page">
 <!ENTITY staff.portal.default.welcome "This is the Evergreen staff client portal page. You can customize this with the information or functionality your organization needs to support its operations. For example, you could add links to process and procedure documents.">
-<!ENTITY ui.circ.patron_summary.horizontal "Alternative Horizontal Patron Summary Panel">
+<!ENTITY ui.circ.patron_summary.horizontal "GUI: Alternative Horizontal Patron Summary Panel">
 <!ENTITY ui.circ.patron_summary.horizontal.desc "This replaces the vertical Patron Summary Sidebar.">
+<!ENTITY ui.general.button_bar "GUI: Above-Tab Button Bar">
+<!ENTITY ui.general.button_bar.desc "This enables a row of buttons and/or icons between the top-level menu system and the tabbed interfaces.">
index 996058f..f24e3d6 100644 (file)
@@ -54,6 +54,12 @@ main.menu.prototype = {
 
                JSAN.use('OpenILS.data'); obj.data = new OpenILS.data(); obj.data.init({'via':'stash'});
 
+        var button_bar = String( obj.data.hash.aous['ui.general.button_bar'] ) == 'true';
+        if (button_bar) {
+            var x = document.getElementById('main_toolbar');
+            if (x) x.setAttribute('hidden','false');
+        }
+
                var cmd_map = {
                        'cmd_broken' : [
                                ['oncommand'],
@@ -401,6 +407,14 @@ main.menu.prototype = {
                                }
                        ],
 
+            'cmd_toggle_buttonbar' : [
+                ['oncommand'],
+                function() {
+                    var x = document.getElementById('main_toolbar');
+                    if (x) x.hidden = ! x.hidden;
+                }
+            ],
+
                        'cmd_open_vandelay' : [
                                ['oncommand'],
                                function() { 
index b12c99d..4bd6fe5 100644 (file)
@@ -54,6 +54,7 @@
        <command id="cmd_manage_offline_xacts" />
        <command id="cmd_download_patrons" />
        <command id="cmd_local_admin" />
+       <command id="cmd_toggle_buttonbar" />
 
        <command id="cmd_extension_manager"/>
        <command id="cmd_theme_manager"/>
        <key id="retrieve_last_record_key" keycode="VK_F8" modifiers="shift" command="cmd_retrieve_last_record"/>
 </keyset>
 
-
 <!-- The File menu on the main menu -->
 <menu id="main.menu.file" label="&staff.main.menu.file.label;" accesskey="&staff.main.menu.file.accesskey;" >
        <menupopup id="main.menu.file.popup">
                <menuitem label="&staff.main.menu.admin.user_edit.label;" accesskey="&staff.main.menu.admin.user_edit.accesskey;" command="cmd_adv_user_edit"/>
                <menuitem label="&staff.main.menu.admin.template_edit.label;" accesskey="&staff.main.menu.admin.template_edit.accesskey;" command="cmd_print_list_template_edit"/>
                <menuitem label="&staff.main.menu.admin.survey_wizard.label;" accesskey="&staff.main.menu.admin.survey_wizard.accesskey;" command="cmd_survey_wizard"/>
+               <menuitem label="&staff.main.menu.admin.toggle_buttonbar.label;" accesskey="&staff.main.menu.admin.toggle_buttonbar.accesskey;" command="cmd_toggle_buttonbar"/>
                <menuseparator />
                <menu id="main.menu.admin.sub" accesskey="&staff.main.menu.admin.developer.accesskey;" label="&staff.main.menu.admin.developer.label;">
                        <menupopup id="main.menu.admin.sub.popup">
index ccf591e..7f76a97 100644 (file)
                <menu id="main.menu.admin" />
                <menu id="main.menu.help" />
        </menubar>
+    <toolbar id="main_toolbar" hidden="true">
+        <toolbarbutton id="tb_checkout" 
+            command="cmd_circ_checkout" 
+            image="chrome://open_ils_staff_client/skin/media/images/Arrow-rightup-small.png" 
+            label="&staff.main.button_bar.check_out.label;" 
+            accesskey="&staff.main.button_bar.check_out.accesskey;" />
+        <toolbarbutton id="tb_checkin" 
+            command="cmd_circ_checkin" 
+            image="chrome://open_ils_staff_client/skin/media/images/center.png" 
+            label="&staff.main.button_bar.check_in.label;" 
+            accesskey="&staff.main.button_bar.check_in.accesskey;" />
+        <toolbarbutton id="tb_item_status" 
+            command="cmd_copy_status" 
+            image="chrome://open_ils_staff_client/skin/media/images/HILLBLU_libro_32x32.png" 
+            label="&staff.main.button_bar.item_status.label;" 
+            accesskey="&staff.main.button_bar.item_status.accesskey;" />
+        <toolbarseparator />
+        <toolbarbutton id="tb_patron_search" 
+            command="cmd_patron_search" 
+            image="chrome://open_ils_staff_client/skin/media/images/HILLBLU_lente_32x32.png" 
+            label="&staff.main.button_bar.patron_search.label;" 
+            accesskey="&staff.main.button_bar.patron_search.accesskey;" />
+        <toolbarbutton id="tb_patron_registration" 
+            command="cmd_patron_register" 
+            image="chrome://open_ils_staff_client/skin/media/images/HILLBLU_famiglia_32x32.png" 
+            label="&staff.main.button_bar.patron_registration.label;" 
+            accesskey="&staff.main.button_bar.patron_registration.accesskey;" />
+    </toolbar>
 </toolbox>
 
 </overlay>
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/Arrow-rightup-small.png b/Open-ILS/xul/staff_client/chrome/skin/media/images/Arrow-rightup-small.png
new file mode 100644 (file)
index 0000000..d09eebc
Binary files /dev/null and b/Open-ILS/xul/staff_client/chrome/skin/media/images/Arrow-rightup-small.png differ
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_famiglia_32x32.png b/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_famiglia_32x32.png
new file mode 100644 (file)
index 0000000..a48e54c
Binary files /dev/null and b/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_famiglia_32x32.png differ
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_indici_32x32.png b/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_indici_32x32.png
new file mode 100644 (file)
index 0000000..c3009d7
Binary files /dev/null and b/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_indici_32x32.png differ
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_lente_32x32.png b/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_lente_32x32.png
new file mode 100644 (file)
index 0000000..3452dee
Binary files /dev/null and b/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_lente_32x32.png differ
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_libro_32x32.png b/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_libro_32x32.png
new file mode 100644 (file)
index 0000000..90a82b8
Binary files /dev/null and b/Open-ILS/xul/staff_client/chrome/skin/media/images/HILLBLU_libro_32x32.png differ
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/center.png b/Open-ILS/xul/staff_client/chrome/skin/media/images/center.png
new file mode 100644 (file)
index 0000000..230a35c
Binary files /dev/null and b/Open-ILS/xul/staff_client/chrome/skin/media/images/center.png differ
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/licenses.txt b/Open-ILS/xul/staff_client/chrome/skin/media/images/licenses.txt
new file mode 100644 (file)
index 0000000..ba77bf8
--- /dev/null
@@ -0,0 +1,28 @@
+HILLBLU_lente_32x32 derived from:
+http://commons.wikimedia.org/wiki/File:HILLBLU_lente.png
+Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
+
+HILLBLU_indici_32x32 derived from:
+http://commons.wikimedia.org/wiki/File:HILLBLU_indici.png
+Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
+
+HILLBLU_libro_32x32 derived from:
+http://commons.wikimedia.org/wiki/File:HILLBLU_libro.png
+Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
+
+HILLBLU_famiglia_32x32 derived from:
+http://commons.wikimedia.org/wiki/File:HILLBLU_famiglia.png
+Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
+
+Arrow-right-up-small.png derived from:
+http://commons.wikimedia.org/wiki/File:Arrow-rightup-small.svg
+Copyright © Vadim Plessky, all rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+Redistributions of source code must retain the above copyright notice, and this list of conditions;
+Redistributions in binary form must reproduce the above copyright notice, and this list of conditions in the documentation and/or other materials provided with the distribution;
+Neither the name of Vadim Plessky nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+Center.png derived from:
+http://commons.wikimedia.org/wiki/File:Center.svg
+Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
+
+
index 2ac8677..99da18e 100644 (file)
                     desc : '&ui.circ.patron_summary.horizontal.desc;',
                     type : 'bool'
                 },
+                'ui.general.button_bar' : {
+                    label : '&ui.general.button_bar;',
+                    desc : '&ui.general.button_bar.desc;',
+                    type : 'bool'
+                },
+                'circ.mark_lost_overdue_interval' : {
+                    label : '&staff.server.admin.org_settings.circ.mark_lost_overdue_interval;',
+                    desc : '&staff.server.admin.org_settings.circ.mark_lost_overdue_interval.desc;',
+                },
                 'circ.void_item_billing_on_lost_return' : {
                     label : '&staff.server.admin.org_settings.circ.void_item_billing_on_lost_return;',
                     desc : '&staff.server.admin.org_settings.circ.void_item_billing_on_lost_return.desc;',