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/PagedImgPlug.pm

    r13544 r14117  
    849849    $doc_obj->add_metadata ($topsection, "Source", $file);
    850850
     851    # add NoText metadata which can be used to suppress the dummy text
     852    $doc_obj->add_metadata ($topsection, "NoText", "1");
     853
    851854    open (ITEMFILE, $filename) || die "couldn't open $filename\n";
    852855    my $line = "";
     
    870873        # the page number becomes the Title
    871874        $doc_obj->set_utf8_metadata_element($cursection, 'Title', $pagenum);
     875        # add NoText metadata which can be used to suppress the dummy text
     876        $doc_obj->add_utf3_metadata_element ($cursection, "NoText", "1");
     877
    872878        # process the image for this page if there is one
    873879        if (defined $imgname && $imgname ne "") {
Note: See TracChangeset for help on using the changeset viewer.