my $fifo = $U->ou_ancestor_setting_value($user->ws_ou, 'circ.holds_fifo');
# search for what should be the best holds for this copy to fulfill
- my $best_holds = $U->storagereq_xact(
+ my $best_holds = $U->storagereq(
"open-ils.storage.action.hold_request.nearest_hold.atomic",
$user->ws_ou, $copy->id, 10, $hold_stall_interval, $fifo );
my $age = shift() || '0 seconds';
my $fifo = shift();
+ local $OpenILS::Application::Storage::WRITE = 1;
+
my $holdsort = isTrue($fifo) ?
"pgt.hold_priority, CASE WHEN h.cut_in_line IS TRUE THEN 0 ELSE 1 END, h.request_time, h.selection_depth DESC, p.prox " :
"p.prox, pgt.hold_priority, CASE WHEN h.cut_in_line IS TRUE THEN 0 ELSE 1 END, h.selection_depth DESC, h.request_time ";