Bug 10455 (QA Followup)
authorNick Clemens <nick@bywatersolutions.com>
Tue, 27 Sep 2016 17:37:45 +0000 (17:37 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 14:35:02 +0000 (14:35 +0000)
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>
misc/cronjobs/delete_records_via_leader.pl

index d6ff257..6a2218d 100755 (executable)
@@ -71,7 +71,7 @@ This script has the following parameters :
 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;