From edd65cbfaf1311b3c1ee51074319741c3f8bf63c Mon Sep 17 00:00:00 2001 From: Laura Escamilla Date: Tue, 30 May 2023 18:26:21 +0000 Subject: [PATCH] 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- misc/cronjobs/delete_items.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/cronjobs/delete_items.pl b/misc/cronjobs/delete_items.pl index 4473ca51ab..ac86b07648 100755 --- a/misc/cronjobs/delete_items.pl +++ b/misc/cronjobs/delete_items.pl @@ -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; } } -- 2.39.5