Ignore:
Timestamp:
2010-07-21T12:16:18+12:00 (14 years ago)
Author:
davidb
Message:

main() functiion should not try to build collection if not run with a collection name (e.g. run with -xml for GLI to get command line options). If statement added to do this

File:
1 edited

Legend:

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

    r22421 r22459  
    277277   
    278278    my $collection = $inexport->get_collection();
    279     my ($config_filename,$collect_cfg) = $inexport->read_collection_cfg($collection,$options);   
    280     $inexport->set_collection_options($collect_cfg);
     279
     280    if (defined $collection) {
     281    my ($config_filename,$collect_cfg)
     282        = $inexport->read_collection_cfg($collection,$options);   
     283
     284    $inexport->set_collection_options($collect_cfg);
    281285   
    282     my $pluginfo = $inexport->process_files($config_filename,$collect_cfg);
    283 
    284     $inexport->generate_statistics($pluginfo);
     286    my $pluginfo = $inexport->process_files($config_filename,$collect_cfg);
     287   
     288    $inexport->generate_statistics($pluginfo);
     289    }
    285290}
    286291
Note: See TracChangeset for help on using the changeset viewer.