[open-ils-commits] r12236 - in branches/staff-client-experiment/Open-ILS: web/opac/locale/en-US xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 19 13:24:01 EST 2009


Author: phasefx
Date: 2009-02-19 13:23:57 -0500 (Thu, 19 Feb 2009)
New Revision: 12236

Modified:
   branches/staff-client-experiment/Open-ILS/web/opac/locale/en-US/lang.dtd
   branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.js
   branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds.js
   branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds.xul
   branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul
Log:
embed catalog in patron display for Place Hold action

Modified: branches/staff-client-experiment/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- branches/staff-client-experiment/Open-ILS/web/opac/locale/en-US/lang.dtd	2009-02-19 17:51:49 UTC (rev 12235)
+++ branches/staff-client-experiment/Open-ILS/web/opac/locale/en-US/lang.dtd	2009-02-19 18:23:57 UTC (rev 12236)
@@ -2344,6 +2344,8 @@
 <!ENTITY staff.patron.holds_overlay.holds_export.label "Export">
 <!ENTITY staff.patron.holds_overlay.print.label "Print">
 <!ENTITY staff.patron.holds_overlay.print.accesskey "P">
+<!ENTITY staff.patron.holds_overlay.place_hold.label "Place Hold">
+<!ENTITY staff.patron.holds_overlay.place_hold.accesskey "H">
 <!ENTITY staff.patron.info_group.clone.label "Register a New Group Member by Cloning Selected Patrons">
 <!ENTITY staff.patron.info_group.clone.accesskey "N">
 <!ENTITY staff.patron.info_group.remove.accesskey "R">

Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.js	2009-02-19 17:51:49 UTC (rev 12235)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/display.js	2009-02-19 18:23:57 UTC (rev 12236)
@@ -316,6 +316,7 @@
 								//+ '?patron_id=' + window.escape( obj.patron.id() ),
 								{},
 								{
+                                    'display_window' : window,
 									'patron_id' : obj.patron.id(),
 									'on_list_change' : function(h) {
 										netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");

Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds.js	2009-02-19 17:51:49 UTC (rev 12235)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds.js	2009-02-19 18:23:57 UTC (rev 12236)
@@ -901,6 +901,20 @@
                             obj.clear_and_retrieve();
                             ev.target.setAttribute('checked',ev.target.checked);
                         }
+                    ],
+                    'cmd_search_opac' : [
+                        ['command'],
+                        function(ev) {
+                            var content_params = { 'session' : ses(), 'authtime' : ses('authtime'), 'patron_id' : obj.patron_id };
+                            content_params.new_tab = xulG.new_tab;
+                            content_params.set_tab = xulG.set_tab;
+                            content_params.set_tab_name = xulG.set_tab_name;
+                            content_params.open_chrome_window = xulG.open_chrome_window;
+                            content_params.url_prefix = xulG.url_prefix;
+                            content_params.network_meter = xulG.network_meter;
+                            content_params.chrome_xulG = xulG.chrome_xulG;
+                            xulG.display_window.g.patron.right_deck.set_iframe( urls.XUL_OPAC_WRAPPER, {}, content_params);
+                        }
                     ]
 				}
 			}
@@ -929,6 +943,7 @@
                 if (x_lib_menu_placeholder) x_lib_menu_placeholder.hidden = false;
             break;
             default:
+                if (obj.controller.view.cmd_search_opac) obj.controller.view.cmd_search_opac.setAttribute('hidden', false);
                 if (x_fetch_more) x_fetch_more.hidden = true;
                 if (x_lib_type_menu) x_lib_type_menu.hidden = true;
                 if (x_lib_menu_placeholder) x_lib_menu_placeholder.hidden = true;

Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds.xul
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds.xul	2009-02-19 17:51:49 UTC (rev 12235)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds.xul	2009-02-19 18:23:57 UTC (rev 12236)
@@ -99,6 +99,7 @@
 		<command id="cmd_broken" disabled="true" hidden="true"/>
 		<command id="cmd_holds_retarget"/>
 		<command id="cmd_holds_cancel" />
+		<command id="cmd_search_opac" />
 		<command id="save_columns" />
 	</commandset>
 

Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul	2009-02-19 17:51:49 UTC (rev 12235)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul	2009-02-19 18:23:57 UTC (rev 12236)
@@ -57,6 +57,7 @@
 </vbox>
 
 <hbox id="holds_top_ui" flex="1">
+    <button id="place_hold_btn" hidden="true" label="&staff.patron.holds_overlay.place_hold.label;" accesskey="&staff.patron.holds_overlay.place_hold.accesskey;" command="cmd_search_opac" />
     <checkbox id="lib_filter_checkbox" persist="checked" checked="true" hidden="true" label="&staff.patron.holds_overlay.lib_filter_checkbox.label;"/>
     <menulist id="lib_type_menu" hidden="true" persist="value">
         <menupopup>



More information about the open-ils-commits mailing list