LP1182519 Per-Hold Behind Desk UI
authorBill Erickson <berick@esilibrary.com>
Tue, 28 May 2013 18:07:47 +0000 (14:07 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 28 May 2013 18:07:47 +0000 (14:07 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/xul/staff_client/server/patron/summary.js
Open-ILS/xul/staff_client/server/patron/summary_overlay.xul

index 35473e2..f115c38 100644 (file)
@@ -447,7 +447,7 @@ patron.summary.prototype = {
                                 }
                                 obj.network.simple_request(
                                     'FM_AHR_COUNT_RETRIEVE.authoritative',
-                                    [ ses(), obj.patron.id() ],
+                                    [ ses(), obj.patron.id(), ses('ws_ou') ],
                                     function(req) {
                                         var robj = req.getResultObject();
                                         util.widgets.set_text(e,
@@ -455,10 +455,12 @@ patron.summary.prototype = {
                                         );
                                         if (e2) {
                                             util.widgets.set_text(e2, robj.ready);
-                                            if (true /* behind-shelf supported */) { // TODO
-                                                // TODO: un-hide e3
+                                            if (robj.behind_desk) {
+                                                removeCSSClass(e3.parentNode, 'hideme');
                                                 util.widgets.set_text(e3, robj.behind_desk);
-                                            } 
+                                            } else {
+                                                addCSSClass(e3.parentNode, 'hideme');
+                                            }
                                         }
                                         if (under_btn) util.widgets.set_text(under_btn, req.getResultObject().ready + '/' + req.getResultObject().total );
                                         obj.holds_summary = robj;
index 5ca8bfb..4496594 100644 (file)
@@ -77,7 +77,8 @@
             <label id="PatronSummaryStatus_holds_available_label" class="copyable text_right holds_ready label subgroup"
                 value="&staff.patron_display.holds_available.label;"  />
             <description id="patron_holds_available" class="copyable holds_ready value subgroup" />
-        </row><row>
+        </row>
+        <row class='hideme'>
             <label id="PatronSummaryStatus_holds_available_behind_desk_label" class="copyable text_right holds_ready label subgroup"
                 value="&staff.patron_display.holds_available_behind_desk.label;"  />
             <description id="patron_holds_available_behind_desk" class="copyable holds_ready value subgroup" />