Changeset 22421 for main/trunk/greenstone2/bin/script/import.pl
- Timestamp:
- 2010-07-18T16:36:56+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/import.pl
r22413 r22421 241 241 'range' => "0,", 242 242 # parsearg left "" as default 243 'deft' => "2",243 # 'deft' => "2", 244 244 'reqd' => "no", 245 245 'modegli' => "3" }, … … 263 263 sub main 264 264 { 265 my $inexport = new inexport( \@ARGV,$options);265 my $inexport = new inexport("import",\@ARGV,$options); 266 266 267 267 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); 270 270 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); 274 274 } 275 275
Note:
See TracChangeset
for help on using the changeset viewer.