Fix record matching in misc/cronjobs/delete_records_via_leader.pl
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
my $schema = Koha::Database->new()->schema();
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 => '<leader>_____d%' } } );
+ $schema->resultset('Biblioitem')->search( { marcxml => { LIKE => '%<leader>_____d%' } } );
my $total_records_count = @biblioitems;
my $deleted_records_count = 0;