Changeset 18440 for gsdl/trunk/bin/script/export.pl
- Timestamp:
- 2009-02-01T14:35:22+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/bin/script/export.pl
r17142 r18440 288 288 # other vars 289 289 my ($configfilename, $collection, $collectcfg, 290 $exp ort_info_filename, $export_info,290 $expinfo_doc_filename, $export_info, 291 291 $gs_mode, 292 292 $processor, $pluginfo); … … 498 498 # the plugouts should be doing this!! 499 499 if ($saveas eq "DSpace"){ 500 $exp ort_info_filename = &util::filename_cat ($exportdir, "contents");500 $expinfo_doc_filename = &util::filename_cat ($exportdir, "contents"); 501 501 } elsif ($saveas =~ m/^.*METS$/ || $saveas eq "MARC" ) { 502 $export_info_filename = &util::filename_cat ($exportdir, "export.inf"); 502 ## $expinfo_doc_filename = &util::filename_cat ($exportdir, "export.inf"); 503 my $db_ext = &util::is_little_endian() ? ".ldb" : ".bdb"; 504 my $doc_db = "archiveinf-doc$db_ext"; 505 $expinfo_doc_filename = &util::filename_cat ($exportdir, $doc_db); 503 506 } 504 507 505 508 $export_info = new arcinfo(); 506 $export_info -> load_info ($exp ort_info_filename);509 $export_info -> load_info ($expinfo_doc_filename); 507 510 508 511 my ($plugout); … … 550 553 else { 551 554 # process any files marked for exporting 552 foreach my $file (keys %{$manifest_lookup->{' export'}}) {555 foreach my $file (keys %{$manifest_lookup->{'index'}}) { 553 556 &plugin::read ($pluginfo, $importdir, $file, {}, {}, $processor, $maxdocs, 0, $gli); 554 557 } … … 581 584 #$processor->close_file_output() if $groupsize > 1; 582 585 $processor->close_group_output() if $processor->is_group(); 583 # why do we need this?? 584 if ($saveas =~ m/^.*METS$/) { 585 $export_info->save_info($export_info_filename); 586 587 if (($saveas =~ m/^.*METS$/) || ($saveas eq "MARC")) { 588 # Not all export types need this (e.g. DSpace) 589 $export_info->save_info($expinfo_doc_filename); 586 590 } 587 591
Note:
See TracChangeset
for help on using the changeset viewer.