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');
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(
}
} catch(E) {
- alert(E);
g.error.standard_unexpected_error_alert(document.getElementById('circStrings').getString('staff.circ.circ_brief.failure'), E);
}
}
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);
}
}