Ignore:
Timestamp:
2009-09-21T13:35:55+12:00 (15 years ago)
Author:
davidb
Message:

Updated to support incremental exporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugouts/BasePlugout.pm

    r20320 r20651  
    722722    my $working_info = $self->{'output_info'};
    723723    my $doc_info = $working_info->get_info($oid);
     724
    724725    my ($doc_file,$index_status) = @$doc_info;
    725726
     
    736737                     $collect_dir,$oid_files,$reverse_lookups);
    737738
    738 # *******
    739 #    foreach my $assoc_file_rec (@{$doc_obj->get_assoc_files()}) {
    740 #   my $real_filename = $assoc_file_rec->[0];
    741 #   my $full_afile = $assoc_file_rec->[1];
    742 #
    743 #   # for some reasons the image associate file has / before the full path
    744 #   $real_filename =~ s/^\\(.*)/$1/i;
    745 #   if (-e $real_filename) {
    746 #
    747 #       if (defined $collect_dir) {
    748 #       my $collect_dir_re_safe = $collect_dir;
    749 #       $collect_dir_re_safe =~ s/\\/\\\\/g;
    750 #       $collect_dir_re_safe =~ s/\./\\./g;
    751 #
    752 #       $real_filename =~ s/^$collect_dir_re_safe//;
    753 #       }
    754 #
    755 #       $reverse_lookups->{$real_filename} = 1;
    756 #
    757 #       push(@{$oid_files->{'assoc-file'}},$full_afile);
    758 #   }
    759 #   else {
    760 #       print STDERR "Warning: archiveinf_gdbm()\n  $real_filename does not appear to be on the file system\n";
    761 #   }
    762 #    }
    763739
    764740    $self->archiveinf_files_to_field($doc_obj->get_meta_files(),"meta-file",
     
    773749    my $doc_db = &util::filename_cat($output_dir,"archiveinf-doc.gdb");
    774750    my $src_db = &util::filename_cat($output_dir,"archiveinf-src.gdb");
    775 
    776 #    my $doc_db_text = "";
    777 #    $doc_db_text .= "<doc-file>$oid_files->{'doc-file'}\n";
    778 #    $doc_db_text .= "<index-status>$oid_files->{'index-status'}\n";
    779 #    $doc_db_text .= "<src-file>$oid_files->{'src-file'}\n";
    780 
    781 #    foreach my $af (@{$oid_files->{'assoc-file'}}) {
    782 #   $doc_db_text .= "<assoc-file>$af\n";
    783 #    }
    784 
    785 #    foreach my $mf (@{$oid_files->{'meta-file'}}) {
    786 #   $doc_db_text .= "<meta-file>$mf\n";
    787 #    }
    788 
    789 #    chomp($doc_db_text); # remove trailing \n
    790751
    791752    ##print STDERR "*** To set in db: \n\t$doc_db\n\t$oid\n\t$doc_db_text\n";
Note: See TracChangeset for help on using the changeset viewer.