Bug 12093: Add CSS classes to item statuses in detail view
[koha-ffzg.git] / misc / batchDeleteUnusedSubfields.pl
index 04c071a..a80d4fd 100755 (executable)
@@ -2,6 +2,7 @@
 # small script that rebuilds the non-MARC DB
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
@@ -10,9 +11,8 @@ BEGIN {
 }
 
 # Koha modules used
-# use MARC::File::USMARC;
+use Koha::Script;
 use MARC::Record;
-use MARC::Batch;
 use C4::Context;
 use C4::Biblio;
 use Time::HiRes qw(gettimeofday);
@@ -31,7 +31,7 @@ if ($version || (!$confirm)) {
 This script cleans unused subfields in the MARC DB.
 If you alter the MARC parameters and remove a subfield (ie : move it to ignore (10) tab), existing subfields are NOT removed.
 It's not a bug, it prevents deleting useful values in case of erroneous move.
-This script definetly remove unused subfields in the MARC DB.
+This script definitely remove unused subfields in the MARC DB.
 syntax :
 \t./cleanmarcdb.pl -h (or without arguments => shows this screen)
 \t./cleanmarcdb.pl -c (c like confirm => cleans the marc DB (may be long)