LP#1497335 Aged circs display / API / WIP
authorBill Erickson <berickxx@gmail.com>
Wed, 23 Mar 2016 18:42:34 +0000 (14:42 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 28 Jul 2016 20:06:41 +0000 (16:06 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm
Open-ILS/xul/staff_client/server/circ/circ_brief.xul

index 1f9d9e2..d3aa9db 100644 (file)
@@ -64,8 +64,9 @@ sub retrieve_circ {
     my $e = new_editor(authtoken => $a);
     return $e->event unless $e->checkauth;
     my $method = $all_circ ?
-        'retrieve_all_action_circulation' :
+        'retrieve_action_all_circulation' :
         'retrieve_action_circulation';
+    $logger->info("ALL CIRC $method");
     my $circ = $e->$method($i) or return $e->event;
     if( $e->requestor->id ne ($circ->usr || '') ) {
         return $e->event unless $e->allowed('VIEW_CIRCULATIONS');
index 92d7428..7027f26 100644 (file)
@@ -69,7 +69,6 @@
                         if (get_bool(r_circ.phone_renewal() ) ) r += 'PHONE ';
                         $('renewal').value = r || document.getElementById('circStrings').getString('staff.circ.checkout.no.btn');
                         g.patron_id = r_circ.usr(); 
-                        alert(g.patron_id);
                         if (g.patron_id) {
                             $('add_billing').disabled = false;
                             g.network.simple_request(
@@ -82,7 +81,6 @@
                         }
 
                     } catch(E) {
-                        alert(E);
                         g.error.standard_unexpected_error_alert(document.getElementById('circStrings').getString('staff.circ.circ_brief.failure'), E);
                     }
                 }
@@ -96,7 +94,7 @@
                     if (g.circ) {
                         circ_callback( { 'getResultObject' : function() { return g.circ; } } );
                     } else {
-                        g.network.simple_request( 'FM_CIRC_RETRIEVE_VIA_ID', [ ses(), g.circ_id ], circ_callback);
+                        g.network.simple_request( 'FM_CIRC_RETRIEVE_VIA_ID', [ ses(), g.circ_id, true ], circ_callback);
                     }
                 }