Ignore:
Timestamp:
2022-12-23T10:29:40+13:00 (14 months ago)
Author:
davidb
Message:

Changed to use the new add_dummpy_text_if_empty routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/ImagePlugin.pm

    r36271 r37050  
    150150    # A plugin inheriting from this might be able to derive text from the image
    151151    # (e.g., through GoogleVisionAPI), and so don't just assume there is no
    152     # text for the image -- check it's text length, and only set the dummy
     152    # text for the image -- check its text length, and only set the dummy
    153153    # text if it is zero
    154     if ($doc_obj->get_total_text_length() == 0) {
    155     #we have no text - adds dummy text and NoText metadata
    156         $self->add_dummy_text($doc_obj, $doc_obj->get_top_section());
    157     }
     154    $self->add_dummy_text_if_empty($doc_obj, $doc_obj->get_top_section());
    158155   
    159156    return 1;
Note: See TracChangeset for help on using the changeset viewer.