Changeset 20651 for gsdl/trunk/perllib/plugouts/BasePlugout.pm
- Timestamp:
- 2009-09-21T13:35:55+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugouts/BasePlugout.pm
r20320 r20651 722 722 my $working_info = $self->{'output_info'}; 723 723 my $doc_info = $working_info->get_info($oid); 724 724 725 my ($doc_file,$index_status) = @$doc_info; 725 726 … … 736 737 $collect_dir,$oid_files,$reverse_lookups); 737 738 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 path744 # $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 # }763 739 764 740 $self->archiveinf_files_to_field($doc_obj->get_meta_files(),"meta-file", … … 773 749 my $doc_db = &util::filename_cat($output_dir,"archiveinf-doc.gdb"); 774 750 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 \n790 751 791 752 ##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.