making trackers sync
authorShawn Boyette <sboyette@esilibrary.com>
Mon, 22 Sep 2008 21:33:51 +0000 (21:33 +0000)
committerShawn Boyette <sboyette@esilibrary.com>
Mon, 22 Sep 2008 21:33:51 +0000 (21:33 +0000)
yaz-cleanup

index d44e4cf..1dbb089 100755 (executable)
@@ -173,11 +173,12 @@ sub kill_line {
 }
 
 sub dump_record {
-    my $line = <MARC>;
+    my $line = <MARC>; $count++;
+    update_context();
     until ($line =~ m|</record>|) {
         push @record, $line;
-        $line = <MARC>;
-        update_context;
+        $line = <MARC>; $count++;
+        update_context();
     }
     push @record, $line;
     write_record($EXMARC);