use OpenSRF::Utils::JSON;
use Unicode::Normalize;
use OpenILS::Const qw/:const/;
+use OpenSRF::AppSession;
my $U = 'OpenILS::Application::AppUtils';
},
{ order_by => { circ => 'usr, circ_lib' } }
];
- my $circs = $e->search_action_circulation($query, {idlist=>1});
+ #my $circs = $e->search_action_circulation($query, {idlist=>1});
+
+ my $ses = OpenSRF::AppSession->create('open-ils.cstore');
+ my $req = $ses->request('open-ils.cstore.direct.action.circulation.id_list', @$query);
+ my $circs = [];
+ my $resp;
+ push(@$circs, $resp->content) while ($resp = $req->recv(timeout=>600));
process_circs( $circs, "${day}day" );
}
$tmpl =~ s/\${EMAIL_RECIPIENT}/$pemail/;
- $tmpl =~ s/\${EMAIL_SENDER}/$mail_sender/o;
- $tmpl =~ s/\${EMAIL_REPLY_TO}/$mail_sender/;
+ $tmpl =~ s/\${EMAIL_SENDER}/$errors_to/o;
+ $tmpl =~ s/\${EMAIL_REPLY_TO}/$errors_to/;
$tmpl =~ s/\${EMAIL_ERRORS_TO}/$errors_to/;
$tmpl =~ s/\${EMAIL_HEADERS}//; # - we have no additional headers to add