Revert "LP1182519 Per-Hold Behind Desk ML"
authorBill Erickson <berick@esilibrary.com>
Tue, 28 May 2013 17:42:48 +0000 (13:42 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 28 May 2013 17:42:48 +0000 (13:42 -0400)
This reverts commit 18dbf96b1ccf4f2600b45d485511391ec7714121.

Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm

index e943fbd..d818454 100644 (file)
@@ -1933,7 +1933,7 @@ sub hold_request_count {
     }
 
     my $holds = $e->json_query({
-        select => {ahr => ['pickup_lib', 'current_shelf_lib', 'behind_desk']},
+        select => {ahr => ['pickup_lib', 'current_shelf_lib']},
         from => 'ahr',
         where => {
             usr => $user_id,
@@ -1942,15 +1942,14 @@ sub hold_request_count {
         }
     });
 
-    my @ready = grep { 
-        $_->{current_shelf_lib} and # avoid undef warnings
-        $_->{pickup_lib} eq $_->{current_shelf_lib} 
-    } @$holds;
-
        return { 
         total => scalar(@$holds), 
-        ready => scalar(@ready),
-        behind_desk => scalar(grep { $_->{behind_desk} eq 't' } @ready)
+        ready => scalar(
+            grep { 
+                $_->{current_shelf_lib} and # avoid undef warnings
+                $_->{pickup_lib} eq $_->{current_shelf_lib} 
+            } @$holds
+        ) 
     };
 }