Bug 10455: Remove biblioitems.marc - update delete_records_via_leader.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 25 Aug 2016 09:21:37 +0000 (10:21 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 14:34:58 +0000 (14:34 +0000)
commitbee79b014b1e9feb8fdada0772165089dcca6a71
treeae68c1da1898898b8ef8146e67eb29a7d32e8560
parent236a8c3ebbcb290c93305364306538c859ef41c7
Bug 10455: Remove biblioitems.marc - update delete_records_via_leader.pl

Recently added, delete_records_via_leader.pl reads biblioitems.marc as a
text field and search for record to delete regarding the leader 5.
This can be acchieve doing the same thing on biblioitems.marcxml (will
certainly be slower) waiting for a patch on bug 15537.

Test plan:
Confirm that this script works as before, to do so the easiest way would
be to dump your DB before executing the update DB entry, execute the
script to delete records, reinsert the DB, execute the udpate DB entry
(remove biblioitems.marc), execute the script to delete records.
You should get the same number of records deleted.

Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/cronjobs/delete_records_via_leader.pl