Bug 2505 - Add commented use warnings where missing in the misc/ directory
authorDonovan Jones <donovan@catalyst.net.nz>
Fri, 16 Apr 2010 04:18:23 +0000 (16:18 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 21 Apr 2010 08:26:44 +0000 (20:26 +1200)
43 files changed:
misc/batchCompareMARCvsFrameworks.pl
misc/batchDeleteUnusedSubfields.pl
misc/batchImportMARCWithBiblionumbers.pl
misc/batchRebuildBiblioTables.pl
misc/batchupdateISBNs.pl
misc/bin/zebraqueue_daemon.pl
misc/check_sysprefs.pl
misc/commit_biblios_file.pl
misc/cronjobs/build_browser_and_cloud.pl
misc/cronjobs/fines.pl
misc/cronjobs/holds/cancel_expired_holds.pl
misc/cronjobs/j2a.pl
misc/cronjobs/notifyMailsOp.pl
misc/cronjobs/smsoverdues.pl
misc/cronjobs/zebraqueue_start.pl
misc/exportauth.pl
misc/kohalib.pl
misc/link_bibs_to_authorities.pl
misc/maintenance/sync_items_in_marc_bib.pl
misc/migration_tools/22_to_30/export_Authorities.pl
misc/migration_tools/22_to_30/export_Authorities_xml.pl
misc/migration_tools/22_to_30/missing090field.pl
misc/migration_tools/22_to_30/move_marc_to_authheader.pl
misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl
misc/migration_tools/22_to_30/rebuild_leader.pl
misc/migration_tools/22_to_30/rebuild_unimarc_100.pl
misc/migration_tools/build6xx.pl
misc/migration_tools/buildCOUNTRY.pl
misc/migration_tools/buildEDITORS.pl
misc/migration_tools/buildLANG.pl
misc/migration_tools/bulkauthimport.pl
misc/migration_tools/fix_onloan.pl
misc/migration_tools/merge_authority.pl
misc/migration_tools/rebuild_nozebra.pl
misc/migration_tools/rebuild_zebra.pl
misc/migration_tools/upgradeitems.pl
misc/perlmodule_ls.pl
misc/sax_parser_test.pl
misc/stage_biblios_file.pl
misc/translator/stats.pl
misc/translator/text-extract.pl
misc/translator/text-extract2.pl
misc/translator/tmpl_process3.pl

index b0ed797..9bbcde4 100755 (executable)
@@ -3,6 +3,7 @@
 
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index eca83dd..a0ecb5c 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
index a1bf26e..4acc02b 100755 (executable)
@@ -2,6 +2,7 @@
 # load records that already have biblionumber set into a koha system
 # Written by TG on 10/04/2006
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 8e1c3ac..b15a91a 100755 (executable)
@@ -3,7 +3,7 @@
 # Formerly named rebuildnonmarc.pl
 
 use strict;
-# use warnings; FIXME someday
+#use warnings; FIXME - Bug 2505
 
 BEGIN {
     # find Koha's Perl modules
index 03d5bba..8cc8c6a 100755 (executable)
@@ -24,6 +24,7 @@
 =cut
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 7e62c94..6181a94 100755 (executable)
@@ -3,6 +3,7 @@
 # daemon to watch the zebraqueue and update zebra as needed
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 06ed806..6823808 100755 (executable)
@@ -5,6 +5,9 @@
 # export PERL5LIB
 # then ./check_sysprefs.pl path  (if path is blank it will use .)
 
+#use strict;
+#use warnings; FIXME - Bug 2505
+
 use File::Find;
 use C4::Context;
 
index 2f9851f..5e3010e 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index e1873c8..d3ead43 100755 (executable)
@@ -2,6 +2,7 @@
 # small script that builds the tag cloud
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 1d0cdc0..73cdf9f 100755 (executable)
@@ -28,6 +28,7 @@
 
 # FIXME: use FinesMode as described or change syspref description
 use strict;
+#use warnings; FIXME - Bug 2505
 
 BEGIN {
     # find Koha's Perl modules
index c14c261..70a2f59 100755 (executable)
@@ -17,6 +17,9 @@
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+#use strict;
+#use warnings; FIXME - Bug 2505
+
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index de648ca..ec5d207 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl 
 #run nightly -- changes J to A on someone's 18th birthday
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index e44ab78..630b159 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/perl
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index c2a6913..f4dda39 100755 (executable)
@@ -27,6 +27,9 @@
 
 # $Id: sendoverdues.pl,v 1.1.2.1 2007/03/26 22:38:09 tgarip1957 Exp $
 
+#use strict;
+#use warnings; FIXME - Bug 2505
+
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 52c8fe0..ea84156 100755 (executable)
@@ -2,6 +2,7 @@
 # script that starts the zebraquee
 #  Written by TG on 01/08/2006
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 52a0ec8..4ac916c 100755 (executable)
@@ -4,6 +4,7 @@
 #
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index b5e1f19..e0add49 100755 (executable)
@@ -39,6 +39,7 @@
 #
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 my $module_dir;
 BEGIN {
index 9954fd6..e3f9bdc 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index af89769..d3eb2ef 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 8327cf7..aeed3f2 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/perl
+#use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 635a414..70647ee 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/perl
+#use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 648788b..aae8032 100755 (executable)
@@ -3,6 +3,7 @@
 #  Written by TG on 01/10/2005
 #  Revised by Joshua Ferraro on 03/31/2006
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index deffc70..2546da8 100755 (executable)
@@ -2,6 +2,8 @@
 
 # script to shift marc to biblioitems
 # scraped from updatedatabase for dev week by chris@katipo.co.nz
+use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
@@ -13,7 +15,6 @@ use C4::AuthoritiesMarc;
 use MARC::Record;
 use MARC::File::XML ( BinaryEncoding => 'utf8' );
 
-use strict;
 print "moving MARC record to marc_header table\n";
 
 my $dbh = C4::Context->dbh();
index 883af15..3635dbc 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/perl
-
+#use strict;
+#use warnings; FIXME - Bug 2505
 # script to shift marc to biblioitems
 # scraped from updatedatabase for dev week by chris@katipo.co.nz
 BEGIN {
index 0ab0f07..ded81b3 100755 (executable)
@@ -3,6 +3,7 @@
 #  Written by TG on 01/10/2005
 #  Revised by Joshua Ferraro on 03/31/2006
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 1ef4049..320ced2 100755 (executable)
@@ -3,6 +3,7 @@
 #  Written by TG on 01/10/2005
 #  Revised by Joshua Ferraro on 03/31/2006
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 1c038ee..5c02f12 100755 (executable)
@@ -3,6 +3,7 @@
 
 # delete  FROM  `marc_subfield_table`  WHERE tag =  "606" AND subfieldcode = 9;
 use strict;
+#use warnings; FIXME - Bug 2505
 
 # Koha modules used
 use MARC::File::USMARC;
index 850ea17..9fb6570 100755 (executable)
@@ -3,6 +3,7 @@
 
 # delete  FROM  `marc_subfield_table`  WHERE tag =  "606" AND subfieldcode = 9;
 use strict;
+#use warnings; FIXME - Bug 2505
 
 # Koha modules used
 use C4::Context;
index e6d6fd3..0126ae6 100755 (executable)
@@ -2,6 +2,7 @@
 # script that rebuild EDITORS
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 # Koha modules used
 use MARC::File::USMARC;
index fe9e6d5..bd33212 100755 (executable)
@@ -3,6 +3,7 @@
 
 # delete  FROM  `marc_subfield_table`  WHERE tag =  "606" AND subfieldcode = 9;
 use strict;
+#use warnings; FIXME - Bug 2505
 
 # Koha modules used
 use C4::Context;
index d3dcadc..2709db9 100755 (executable)
@@ -2,6 +2,7 @@
 # small script that import an iso2709 file into koha 2.0
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 1dc5246..d6e63af 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use  C4::Context;
 use C4::Items;
 use C4::Biblio;
@@ -24,4 +25,4 @@ $|=1;
 while (my ($biblionumber,$itemnumber,$onloan)= $rqbiblios->fetchrow){
     ModItem({onloan => "$onloan"}, $biblionumber, $itemnumber);
     print "Onloan : $onloan for $biblionumber / $itemnumber\n";
-}
\ No newline at end of file
+}
index 8bf4e7c..0987827 100755 (executable)
@@ -2,6 +2,7 @@
 # script that rebuild thesaurus from biblio table.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 7432c5e..b6b82c5 100755 (executable)
@@ -6,6 +6,7 @@ use C4::Biblio;
 use C4::AuthoritiesMarc;
 
 use strict;
+#use warnings; FIXME - Bug 2505
 # 
 # script that fills the nozebra table
 #
index 0f4b4a0..37dcaf5 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 use C4::Context;
 use Getopt::Long;
index 864c91b..10c7544 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use  C4::Context;
 use C4::Items;
 use C4::Biblio;
@@ -27,4 +28,4 @@ while (my ($biblionumber)= $rqbiblios->fetchrow_array){
             warn $record->as_formatted;
        }    
     }  
-}
\ No newline at end of file
+}
index 818f855..6ffcc52 100755 (executable)
@@ -1,5 +1,8 @@
 #!/usr/bin/perl
 
+#use strict;
+#use warnings; FIXME - Bug 2505
+
 use ExtUtils::Installed;
 my $instmod = ExtUtils::Installed->new();
 foreach my $module ($instmod->modules()) {
index 07d672c..c99f07b 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/perl
+#use strict;
+#use warnings; FIXME - Bug 2505
 use XML::SAX;
 my $parser = XML::SAX::ParserFactory->parser(
 Handler => MySAXHandler->new
index 5518359..3f18082 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 8ba923b..1f1c631 100755 (executable)
@@ -18,6 +18,8 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
 
+#use strict;
+#use warnings; FIXME - Bug 2505
 
 my $PACKAGE="koha";
 
index f876e78..4e2fbdc 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/perl
+#use strict;
+#use warnings; FIXME - Bug 2505
 use HTML::Tree;
 use Getopt::Std;
 getopt("f:");
index ec838c8..452fd89 100755 (executable)
 # --> This will be relatively major rework, and requires corresponding
 # rework in tmpl_process.pl
 
+use strict;
+#use warnings; FIXME - Bug 2505
 use Getopt::Long;
 use TmplTokenizer;
 use VerboseWarnings;
-use strict;
 
 use vars qw( $input );
 use vars qw( $debug_dump_only_p );
index 80325d0..dbbe18e 100755 (executable)
@@ -12,6 +12,7 @@ using gettext-compatible translation files
 =cut
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use Getopt::Long;
 use Locale::PO;
 use File::Temp qw( :POSIX );