Ignore:
Timestamp:
2010-07-18T16:36:56+12:00 (14 years ago)
Author:
davidb
Message:

Continued work on refactoring code to have better shared support for import.pl and export.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/import.pl

    r22413 r22421  
    241241    'range' => "0,",
    242242    # parsearg left "" as default
    243     'deft' => "2",
     243    # 'deft' => "2",
    244244    'reqd' => "no",
    245245    'modegli' => "3" },
     
    263263sub main
    264264{
    265     my $inexport = new inexport(\@ARGV,$options);
     265    my $inexport = new inexport("import",\@ARGV,$options);
    266266   
    267267    my $collection = $inexport->get_collection();
    268     my $collect_cfg = $inexport->read_collection_cfg($collection,$options);   
    269     $inexport->set_collection_options("import",$collect_cfg);
     268    my ($config_filename,$collect_cfg) = $inexport->read_collection_cfg($collection,$options);   
     269    $inexport->set_collection_options($collect_cfg);
    270270   
    271     my $pluginfo = $inexport->process_files("import",$collect_cfg);
    272 
    273     $inexport->generate_statistics("import",$pluginfo);
     271    my $pluginfo = $inexport->process_files($config_filename,$collect_cfg);
     272
     273    $inexport->generate_statistics($pluginfo);
    274274}
    275275
Note: See TracChangeset for help on using the changeset viewer.