Changeset 13343
- Timestamp:
- 2006-11-27T10:49:42+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/OpenDocumentPlug.pm
r13222 r13343 51 51 'deft' => &get_default_process_exp() } 52 52 ]; 53 53 54 my $options = { 'name' => "OpenDocumentPlug", 54 55 'desc' => "{OpenDocumentPlug.desc}", 55 56 'abstract' => "no", 56 'inherits' => "yes" }; 57 'inherits' => "yes", 58 'args' => $arguments}; 57 59 58 60 sub get_default_process_exp { return q^(?i)\.o(?:d|t)(?:t|s|p|g)$^; } … … 127 129 }elsif($element eq 'office:body'){ 128 130 #some documents have text in other places that should probably be indexed if we can't find any doc text 129 if( $self->{'collectedText'} ne "" && $self->{'doc_obj'}->get_text("") eq "") { 131 132 if( defined $self->{'collectedText'} && $self->{'collectedText'} ne "" && $self->{'doc_obj'}->get_text("") eq "") { 130 133 $self->{'doc_obj'}->add_utf8_text("",$self->{'collectedText'}); 131 134 } … … 136 139 my $self = shift(@_); 137 140 my ($expat) = @_; 138 139 141 if($_ =~ m/\w/i) { 140 142 $self->{'collectedText'} .= "<br/>" if $self->{'collectedText'} ne ""; … … 176 178 177 179 $self->unzip ("\"$file_only\""); 178 179 180 foreach my $xmlFile (@OpenDocumentPlug::filesProcess) { 180 print getcwd(); 181 print $xmlFile; 182 $self->parse_file($xmlFile); 183 } 184 181 if (-e $xmlFile) { 182 $self->parse_file($xmlFile); 183 } 184 } 185 185 $self->close_document($filename,$file_only); 186 186
Note:
See TracChangeset
for help on using the changeset viewer.