--- trunk/run.pl 2006/12/13 10:08:27 790 +++ trunk/run.pl 2007/03/02 00:32:21 803 @@ -68,6 +68,11 @@ turn on extra validation of imput records, see L +=item --marc-generate + +Generate MARC file. This will automatically be on if file contains C directives. +You can use this option as C<--no-marc-generate> to disable MARC generation. + =item --marc-lint By default turned on if normalisation file has C directives. You can disable lint @@ -103,6 +108,7 @@ my $only_filter; my $stats = 0; my $validate_path; +my $marc_generate = 1; my $marc_lint = 1; my $marc_dump = 0; my $parallel = 0; @@ -122,6 +128,7 @@ "debug+" => \$debug, "stats" => \$stats, "validate=s" => \$validate_path, + "marc-generate!" => \$marc_generate, "marc-lint!" => \$marc_lint, "marc-dump!" => \$marc_dump, "parallel=i" => \$parallel, @@ -431,7 +438,7 @@ } my $marc; - if ($parser->have_rules( 'marc', $database, $input_name )) { + if ($marc_generate && $parser->have_rules( 'marc', $database, $input_name )) { $marc = new WebPAC::Output::MARC( path => "out/marc/${database}-${input_name}.marc", lint => $marc_lint,