my $copies = $vol->copies;
$vol->clear_copies;
+ $vol->editor($editor->requestor->id);
+ $vol->edit_date('now');
+
if( $vol->isdeleted ) {
$logger->info("vol-update: deleting volume");
my $orig_copy = $editor->retrieve_asset_copy($copy->id);
my $orig_vol = $editor->retrieve_asset_call_number($copy->call_number);
+ $copy->editor($editor->requestor->id);
+ $copy->edit_date('now');
return $editor->event unless
$editor->update_asset_copy(
$copy, {checkperm=>1, permorg=>$vol->owning_lib});
# delete this volume if it's not already marked as deleted
unless( $U->is_true($vol->deleted) || $vol->isdeleted ) {
$vol->deleted('t');
+ $vol->editor($editor->requestor->id);
+ $vol->edit_date('now');
$editor->update_asset_call_number($vol, {checkperm=>0})
or return $editor->event;
}
$logger->info("vol-update: deleting copy ".$copy->id);
$copy->deleted('t');
+ $copy->editor($editor->requestor->id);
+ $copy->edit_date('now');
$editor->update_asset_copy(
$copy, {checkperm=>1, permorg=>$vol->owning_lib})
or return $editor->event;
$vol->creator($editor->requestor->id);
$vol->create_date('now');
+ $vol->editor($editor->requestor->id);
+ $vol->edit_date('now');
$vol->clear_id;
$editor->create_asset_call_number($vol) or return $editor->event;
$copy->status($stat->id) if $stat;
$copy->location($loc->id) if $loc;
$copy->circ_lib($circ_lib->id) if $circ_lib;
+ $copy->editor($self->editor->requestor->id);
+ $copy->edit_date('now');
return $self->bail_on_events($self->editor->event)
unless $self->editor->update_asset_copy($self->copy);