Ignore:
Timestamp:
2007-06-05T14:03:48+12:00 (17 years ago)
Author:
xiao
Message:

add a metadata NoText which can be used to suppress the dummy text 'This document has no text.'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/NULPlug.pm

    r13727 r14117  
    125125    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "FileSize", (-s $filename));
    126126
     127    # the metadata NoText is used to suppress the dummy text 'This document has no text.'
     128    $doc_obj->add_metadata ($doc_obj->get_top_section(), "NoText",    "1");
     129
    127130    my $assoc_field = $self->{'assoc_field'} || "null_file";
    128131    $doc_obj->add_metadata ($doc_obj->get_top_section(), $assoc_field, $file);
Note: See TracChangeset for help on using the changeset viewer.