Lines 104-110
eval {
Link Here
|
104 |
$action eq 'return' && do { |
104 |
$action eq 'return' && do { |
105 |
my $id = $cgi->param('id') |
105 |
my $id = $cgi->param('id') |
106 |
or response_bad_request("No 'id' specified"); |
106 |
or response_bad_request("No 'id' specified"); |
107 |
$data{action} = $od->return($id); |
107 |
# OverDrive API for returns is very unreliable |
|
|
108 |
local $@; |
109 |
$data{action} = eval { $od->return($id) }; |
110 |
$data{action} = $@ if $@; |
108 |
$data{checkouts} = $od->checkouts; |
111 |
$data{checkouts} = $od->checkouts; |
109 |
$data{holds} = $od->holds; |
112 |
$data{holds} = $od->holds; |
110 |
last; |
113 |
last; |
111 |
- |
|
|