Bug 33698: Add fields to the verbose output that show the barcode and title of items that cannot be deleted
Signed-off-by: Sam Lau <samalau@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
2c7142fe94
commit
edd65cbfaf
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ DELITEM: while ( my $item = $GLOBAL->{sth}->{target_items}->fetchrow_hashref() )
|
|||
if $OPTIONS->{flags}->{commit};
|
||||
verbose "Deleting '$item->{itemnumber}'";
|
||||
} else {
|
||||
verbose sprintf "Item '%s' not deleted: %s", $item->{itemnumber}, @{$safe_to_delete->messages}[0]->message
|
||||
verbose sprintf "Item '%s' (Barcode: '%s', Title: '%s') not deleted: %s",
|
||||
$item->{itemnumber},
|
||||
$item_object->barcode,
|
||||
$item_object->biblio->title,
|
||||
@{$safe_to_delete->messages}[0]->message;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue