Changeset 14556
- Timestamp:
- 2007-09-22T16:13:26+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/bin/script/import.pl
r14111 r14556 395 395 } 396 396 } 397 398 if ($saveas !~ /^(GA|METS)$/) { 399 if (defined $collectcfg->{'plugout'} && $collectcfg->{'plugout'}[0] =~ /^(GAPlugout|METSPlugout)$/) { 400 $saveas = $collectcfg->{'plugout'}[0]; 401 } else { 402 $saveas ="GAPlugout"; 397 398 my ($plugout); 399 if (defined $collectcfg->{'plugout'}) { 400 $plugout = $collectcfg->{'plugout'}; 401 } 402 else{ 403 if ($saveas !~ /^(GA|METS)$/) { 404 push @$plugout,"GAPlugout"; 405 } 406 else{ 407 push @$plugout,$saveas."Plugout"; 403 408 } 404 409 } … … 487 492 488 493 ####Use Plugout#### 489 my ($plugout_name); 490 if ($saveas !~ /^(GA|METS)Plugout$/ ){ 491 $plugout_name = $saveas."Plugout"; 492 } 493 else { 494 $plugout_name = $saveas; 495 } 496 497 my $opts=[]; 498 push @$opts,("-output_info",$archive_info) if (defined $archive_info); 499 500 push @$opts,("-verbosity",$verbosity) if (defined $verbosity); 501 push @$opts,("-gzip_output") if ($gzip); 502 push @$opts,("-group_size",$groupsize) if (defined $groupsize); 503 push @$opts,("-output_handle",$out) if (defined $out); 504 505 push @$opts,("-debug") if ($debug); 506 507 $processor = &plugout::load_plugout($plugout_name,$opts); 494 push @$plugout,("-output_info",$archive_info) if (defined $archive_info); 495 push @$plugout,("-verbosity",$verbosity) if (defined $verbosity); 496 push @$plugout,("-gzip_output") if ($gzip); 497 push @$plugout,("-group_size",$groupsize) if (defined $groupsize); 498 push @$plugout,("-output_handle",$out) if (defined $out); 499 push @$plugout,("-debug") if ($debug); 500 501 $processor = &plugout::load_plugout($plugout); 508 502 $processor->setoutputdir ($archivedir); 509 503 $processor->set_sortmeta ($sortmeta, $removeprefix, $removesuffix) if defined $sortmeta;
Note:
See TracChangeset
for help on using the changeset viewer.