Ignore:
Timestamp:
2013-09-04T21:46:07+12:00 (11 years ago)
Author:
ak19
Message:

No more absolute paths in archiveinf-doc.gdb and archiveinf-src.gdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugouts/BasePlugout.pm

    r28022 r28211  
    878878        $reverse_lookups->{$real_filename} = 1;
    879879        }
    880 ###     push(@{$oid_files->{$field}},$full_file);
     880
     881        if($field =~ m@assoc-file|src-file|meta-file@) {
     882        $raw_filename = &util::abspath_to_placeholders($raw_filename);
     883        }
     884
     885###     push(@{$oid_files->{$field}},$full_file);       
    881886        push(@{$oid_files->{$field}},$raw_filename);
    882887    }
     
    935940
    936941    my $doc_db = &dbutil::get_infodb_file_path($infodbtype, "archiveinf-doc", $output_dir);
    937     my $src_db = &dbutil::get_infodb_file_path($infodbtype, "archiveinf-src", $output_dir);
     942    #my $src_db = &dbutil::get_infodb_file_path($infodbtype, "archiveinf-src", $output_dir); # var unused in this function or file
    938943
    939944    ##print STDERR "*** To set in db: \n\t$doc_db\n\t$oid\n\t$doc_db_text\n";
     
    982987    $oid_files->{'doc-file'} = [ $oid_files->{'doc-file'} ];
    983988    $oid_files->{'index-status'} = [ $oid_files->{'index-status'} ];
     989    $oid_files->{'src-file'} = &util::abspath_to_placeholders($oid_files->{'src-file'});
    984990    $oid_files->{'src-file'} = [ $oid_files->{'src-file'} ];
    985991    $oid_files->{'sort-meta'} = [ $oid_files->{'sort-meta'} ];
Note: See TracChangeset for help on using the changeset viewer.