From: Bill Erickson Date: Wed, 23 Mar 2016 18:42:34 +0000 (-0400) Subject: LP#1497335 Aged circs display / API / WIP X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b401124fc538380dc63016b73f64d40d6d5d8b3e;p=working%2FEvergreen.git LP#1497335 Aged circs display / API / WIP Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm index 1f9d9e2706..d3aa9db432 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm @@ -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'); diff --git a/Open-ILS/xul/staff_client/server/circ/circ_brief.xul b/Open-ILS/xul/staff_client/server/circ/circ_brief.xul index 92d7428f1a..7027f26bae 100644 --- a/Open-ILS/xul/staff_client/server/circ/circ_brief.xul +++ b/Open-ILS/xul/staff_client/server/circ/circ_brief.xul @@ -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); } }