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/cgiactions/metadataaction.pm

    r28160 r28211  
    318318        # This now stores the full pathname
    319319        my $import_filename = $doc_rec->{'src-file'}->[0];
     320        $import_filename = &util::placeholders_to_abspath($import_filename);
    320321
    321322        # figure out correct metadata.xml file [?]
     
    424425        my $doc_rec = &dbutil::read_infodb_entry($infodbtype, $arcinfo_doc_filename, $docid);
    425426        # This now stores the full pathname
    426         my $doc_filename = $doc_rec->{'doc-file'}->[0]; 
     427        my $doc_filename = $doc_rec->{'doc-file'}->[0];
    427428        $doc_filename = &util::filename_cat($archive_dir, $doc_filename);
    428429
     
    793794    # This now stores the full pathname
    794795    $import_filename = $doc_rec->{'src-file'}->[0];
     796    $import_filename = &util::placeholders_to_abspath($import_filename);
    795797
    796798    # figure out correct metadata.xml file [?]
     
    28742876    # This now stores the full pathname
    28752877    $import_filename = $doc_rec->{'src-file'}->[0];
     2878    $import_filename = &util::placeholders_to_abspath($import_filename);
     2879
    28762880    } else { # only for set_import_meta, not the case when calling method is set_import_metadata_array
    28772881         # as the array version of the method doesn't support the -f parameter yet
     
    29622966        # This now stores the full pathname
    29632967        $import_filename = $doc_rec->{'src-file'}->[0];
     2968        $import_filename = &util::placeholders_to_abspath($import_filename);
    29642969    }
    29652970
     
    33933398    # This now stores the full pathname
    33943399    my $import_filename = $archive_doc_rec->{'src-file'}->[0];
     3400    $import_filename = &util::placeholders_to_abspath($import_filename);
    33953401   
    33963402    # figure out correct metadata.xml file [?]
Note: See TracChangeset for help on using the changeset viewer.