Changeset 8603
- Timestamp:
- 2004-11-19T12:06:43+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/import.pl
r8153 r8603 169 169 'deft' => "2", 170 170 'reqd' => "no", 171 'modegli' => "4" } 171 'modegli' => "4" }]; 172 172 173 173 my $options = { 'name' => "import.pl", … … 193 193 my $xml = 0; 194 194 # ************************************ 195 my $service = "import"; 195 196 196 197 # note that no defaults are passed for most options as they're set … … 219 220 die "\n"; 220 221 } 221 222 222 # If $language has been specified, load the appropriate resource bundle 223 223 # (Otherwise, the default resource bundle will be loaded automatically) … … 235 235 &gsprintf::output_strings_in_UTF8; 236 236 } 237 237 238 my $close_out = 0; 238 239 if ($out !~ /^(STDERR|STDOUT)$/i) { … … 258 259 open (FAILLOG, ">$faillog") || 259 260 (&gsprintf(STDERR, "{import.cannot_open_fail_log}\n", $faillog) && die); 261 260 262 my $faillogname = $faillog; 261 263 $faillog = 'import::FAILLOG'; … … 274 276 unshift (@INC, "$ENV{'GSDLCOLLECTDIR'}/perllib"); 275 277 require docsave; 276 277 278 278 279 # get the list of plugins for this collection and set any options that … … 343 344 $sortmeta = $collectcfg->{'sortmeta'}; 344 345 } 346 345 347 if (defined $collectcfg->{'debug'} && $collectcfg->{'debug'} =~ /^true$/i) { 346 348 $debug = 1; … … 354 356 push @global_opts, "-separate_cjk"; 355 357 } 356 357 358 358 359 } else { … … 393 394 394 395 # create a docsave object to process the documents 395 $processor = new docsave ($collection, $archive_info, $verbosity, $gzip, $groupsize, $out );396 $processor = new docsave ($collection, $archive_info, $verbosity, $gzip, $groupsize, $out, $service, $saveas); 396 397 $processor->setarchivedir ($archivedir); 397 398 $processor->set_sortmeta ($sortmeta) if defined $sortmeta;
Note:
See TracChangeset
for help on using the changeset viewer.