diff --git a/misc/cronjobs/delete_records_via_leader.pl b/misc/cronjobs/delete_records_via_leader.pl index e9a8546e29..d6ff25784b 100755 --- a/misc/cronjobs/delete_records_via_leader.pl +++ b/misc/cronjobs/delete_records_via_leader.pl @@ -69,8 +69,9 @@ This script has the following parameters : } my $schema = Koha::Database->new()->schema(); -my @biblioitems = - $schema->resultset('Biblioitem')->search( { marc => { LIKE => '_____d%' } } ); +my @biblioitems = # Should be replaced by a call to C4::Search on zebra index + # Record-status when bug 15537 will be pushed + $schema->resultset('Biblioitem')->search( { marcxml => { LIKE => '_____d%' } } ); my $total_records_count = @biblioitems; my $deleted_records_count = 0;