From 3b5c4e0fb9eb597017760198f4fdb8af75ce344f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 3 Jan 2008 18:43:36 -0600 Subject: [PATCH] misc/cronjobs/update_items.pl: fixed syntax errors Fixed syntax errors preventing compilation; however, unsure whether this is a dead utility that should be removed outright. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- misc/cronjobs/update_items.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misc/cronjobs/update_items.pl b/misc/cronjobs/update_items.pl index 15b8249a23..2e43bdf373 100755 --- a/misc/cronjobs/update_items.pl +++ b/misc/cronjobs/update_items.pl @@ -37,7 +37,7 @@ GetOptions( 'h' => \$help, ); -if ($h) { +if ($help) { print $USAGE."\n"; exit; } @@ -71,7 +71,6 @@ my $biblioserverdir = C4::Context->zebraconfig('biblioserver')->{directory}; unless (-d "$biblioserverdir/specialUpdate") { system("mkdir -p $biblioserverdir/specialUpdate"); print "Info: created $biblioserverdir/specialUpdate\n"; - $created_dir_or_file++; } my $outfile = "$biblioserverdir/specialUpdate/$filename"; @@ -111,7 +110,6 @@ print "fetching marc and items data, updating\n"; # my ($itemnumberTag,$itemnumberSubfield) = GetMarcFromKohaField("items.itemnumber",""); my ($date_dueTag,$date_dueSubfield) = GetMarcFromKohaField("items.issues",""); -my ( while (my $biblionumber=$biblionumber_sth->fetchrow) { $count++; -- 2.39.5