Lines 173-181
sub cancel {
Link Here
|
173 |
->store; |
173 |
->store; |
174 |
|
174 |
|
175 |
# Set up return transfer if transfer was force cancelled whilst in transit |
175 |
# Set up return transfer if transfer was force cancelled whilst in transit |
|
|
176 |
# and we were not notified that the transfer is being replaced. |
176 |
# NOTE: We don't catch here, as we're happy to fail if there are already |
177 |
# NOTE: We don't catch here, as we're happy to fail if there are already |
177 |
# other transfers in the queue. |
178 |
# other transfers in the queue. |
178 |
if ($in_transit) { |
179 |
if ($in_transit && !$params->{replace}) { |
179 |
try { |
180 |
try { |
180 |
$self->item->request_transfer( |
181 |
$self->item->request_transfer( |
181 |
{ to => $self->from_library, reason => 'TransferCancellation' } ); |
182 |
{ to => $self->from_library, reason => 'TransferCancellation' } ); |
182 |
- |
|
|