Changeset 11302


Ignore:
Timestamp:
2006-03-03T13:31:05+13:00 (18 years ago)
Author:
mdewsnip
Message:

When obtaining documents using the "document_field" option, a file called "<Document>.nul" is now created instead of "XXXX.nul" if the file couldn't be obtained.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/explode_metadata_database.pl

    r11238 r11302  
    246246        $document_file = sprintf("%4.4d", $record_number) . ".nul";
    247247        }
     248
    248249        open(DUMMY_FILE, ">$documents_directory/$document_file");
    249250        close(DUMMY_FILE);
    250 
    251251    }
    252    
    253252
    254253    &write_metadata_xml_file_entry(METADATA_XML_FILE, $document_file, $record_metadata, $metadata_set);
     
    356355    if (!-e $local_document_file) {
    357356    print STDERR "WARNING: Could not obtain document file $document_file_full\n";
    358     return undef;
     357
     358    $document_file_name .= ".nul";
     359    open(NULL_FILE, ">$local_document_file.nul");
     360    close(NULL_FILE);
    359361    }
    360362
Note: See TracChangeset for help on using the changeset viewer.