Changeset 37048
- Timestamp:
- 2022-12-23T10:28:25+13:00 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/BaseImporter.pm
r36910 r37048 488 488 } 489 489 490 # print STDERR "**** BaseImport::can_process_this_file(): ", ref($self), " checking $filename =~ /$self->{'process_exp'}/\n"; 491 490 492 if ($self->{'process_exp'} ne "" && $filename =~ /$self->{'process_exp'}/) { 491 493 return 1; … … 703 705 $doc_obj->add_utf8_text($section, &gsprintf::lookup_string("{BaseImporter.dummy_text}",1)); 704 706 #$doc_obj->add_text($section, &gsprintf::lookup_string("{BaseImporter.dummy_text}",1)); 705 706 707 } 708 709 sub add_dummy_text_if_empty { 710 my $self = shift(@_); 711 my ($doc_obj, $section) = @_; 712 713 my $section_text_len = $doc_obj->get_text_length($section); 714 715 if ($section_text_len == 0) { 716 $self->add_dummy_text($doc_obj,$section); 717 } 707 718 } 708 719
Note:
See TracChangeset
for help on using the changeset viewer.