Changeset 6330 for trunk/gsdl/bin/script


Ignore:
Timestamp:
2003-12-19T15:09:04+13:00 (20 years ago)
Author:
jmt12
Message:

Import.pl now takes the undocumented argument -gli which causes script output to include special 'tags' for gli to process. Such takes are language and verbosity level independant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/import.pl

    r6109 r6330  
    242242    $maxdocs, $collection, $configfilename, $collectcfg,
    243243    $pluginfo, $sortmeta, $archive_info_filename, $statsfile,
    244     $archive_info, $processor, $out, $faillog, $collectdir);
     244    $archive_info, $processor, $out, $faillog, $collectdir, $gli);
    245245
    246246    # ***** 11-04-03 - John Thompson *****
     
    267267             'statsfile/.*/STDERR', \$statsfile,
    268268             'faillog/.*/', \$faillog,
     269             'gli', \$gli,
    269270             q^xml^, \$xml)) {
    270271    &print_txt_usage($language);
     
    386387        $debug = 1;
    387388    }
     389    if (defined $collectcfg->{'gli'} && $collectcfg->{'gli'} =~ /^true$/i) {
     390        $gli = 1;
     391    }
    388392
    389393    } else {
    390394    die &lookup_string("{import.cannot_find_cfg_file}") . " $configfilename\n";
    391395    }
     396
     397    $gli = 0 unless defined $gli;
     398
     399    print STDERR "<Import>\n" if $gli;
    392400   
    393401    # fill in the default import and archives directories if none
     
    432440
    433441    # process the import directory
    434     &plugin::read ($pluginfo, $importdir, "", {}, $processor, $maxdocs);
     442    &plugin::read ($pluginfo, $importdir, "", {}, $processor, $maxdocs, $gli);
    435443   
    436444    &plugin::end($pluginfo, $processor);
     
    460468    print $out "*********************************************\n";
    461469
    462     &plugin::write_stats($pluginfo, $statsfile, $faillogname);
     470    &plugin::write_stats($pluginfo, $statsfile, $faillogname, $gli);
    463471    if ($close_stats) {
    464472    close STATS;
Note: See TracChangeset for help on using the changeset viewer.