my $is_object = blessed($original) && $original->isa('Koha::Object');
if ( $actionname =~ /^(ADD|CREATE)$/ ) {
# Log diff against empty hashref for newly created objects
$updated = $is_object ? $original->unblessed : $original;
$original = {};
} elsif ( $actionname eq 'DELETE' ) {
# Log diff for deleted objects against empty hashref
$original = $is_object ? $original->unblessed : $original;
$updated = {};
} else {
# Log diff against hashref of pre-modified object if passed in
}
$self->_after_item_action_hooks({ action => 'delete' });
logaction( "CATALOGUING", "DELETE", $self->itemnumber, "item" )
logaction( "CATALOGUING", "DELETE", $self->itemnumber, "item", undef, $self )
if C4::Context->preference("CataloguingLog");
Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue(
-