dif nav bars for patron display/search
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Dec 2005 23:13:07 +0000 (23:13 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Dec 2005 23:13:07 +0000 (23:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2351 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js
Open-ILS/xul/staff_client/server/patron/display_overlay.xul

index a0e28ca..61bd7f4 100644 (file)
@@ -127,6 +127,8 @@ patron.display.prototype = {
                );
 
                if (obj.barcode) {
+                       obj.controller.view.PatronNavBar.selectedIndex = 1;
+                       obj.controller.view.patron_name.setAttribute('value','Retrieving...');
                        var frame = obj.left_deck.set_iframe(
                                urls.remote_patron_summary
                                +'?session=' + window.escape(obj.session)
@@ -140,7 +142,7 @@ patron.display.prototype = {
                        );
                        obj.summary_window = frame.contentWindow;
                } else {
-                       obj.controller.view.PatronNavBar.hidden = true;
+                       obj.controller.view.PatronNavBar.selectedIndex = 0;
                        var frame = obj.left_deck.set_iframe(
                                urls.remote_patron_search_form
                                +'?session=' + window.escape(obj.session),
index 229fa60..44c8f5e 100644 (file)
@@ -9,7 +9,11 @@
 
 <box id="patron_display_main" flex="1" orient="vertical">
 <vbox id="pdm2" flex="1">
-       <hbox id="PatronNavBar" flex="0" class="my_overflow"/>
+       <hbox id="pdm2hb1">
+               <label id="patron_name" class="patronNameLarge" tooltiptext="&staff.patron_display.name.label;" 
+                       value="No Patron" flex="1"/>
+               <deck id="PatronNavBar" flex="0" class="my_overflow"/>
+       </hbox>
        <hbox id="PatronNotNavBar" flex="1">
                <vbox id="pdm3" flex="1">
                        <deck id="patron_left_deck"/>
 <deck id="patron_left_deck" flex="1">
 </deck>
 
-<hbox id="PatronNavBar">
-       <label id="patron_name" class="patronNameLarge" tooltiptext="&staff.patron_display.name.label;" 
-               value="Retrieving..." flex="1"/>
+<deck id="PatronNavBar">
+       <hbox id="PatronNavBar0"/>
+       <hbox id="PatronNavBar1"/>
+</deck>
+
+<hbox id="PatronNavBar1">
        <button id="PatronNavBar_refresh" command="cmd_patron_refresh"
                label="&staff.patron_navbar.refresh;" accesskey="&staff.patron_navbar.refresh.accesskey;"/>
        <button id="PatronNavBar_checkout" command="cmd_patron_checkout"
@@ -46,4 +53,8 @@
                label="&staff.patron_navbar.info;" accesskey="&staff.patron_navbar.info.accesskey;"/>
 </hbox>
 
+<hbox id="PatronNavBar0">
+       <button id="pnb1b1" label="Retrieve Patron" accesskey="R"/>
+</hbox>
+
 </overlay>