Changeset 33389 for main/trunk
- Timestamp:
- 2019-08-06T13:19:16+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/CSVPlugin.pm
r31492 r33389 130 130 } 131 131 } 132 $self->{'csv_file_fields'} = \@csv_file_fields; 132 133 $self->{'csv_file_fields'}->{$filename} = \@csv_file_fields; 134 ###print STDERR "**** CSV file fields joined ($filename) = ", join(" ||| ", @{$self->{'csv_file_fields'}->{$filename}}), "\n"; 133 135 } 134 136 … … 142 144 my $section = $doc_obj->get_top_section(); 143 145 my $csv_line = $$textref; 144 my @csv_file_fields = @{$self->{'csv_file_fields'}};145 146 146 # Add the raw line as the document text 147 my $filename_full_path = &FileUtils::filenameConcatenate($base_dir,$file); 148 my @csv_file_fields = @{$self->{'csv_file_fields'}->{$filename_full_path}}; 149 150 ###print STDERR "**** CSV file fields joined = ", join(" ||| ", @csv_file_fields), "\n"; 151 152 # Add the raw line as the document text 147 153 $doc_obj->add_utf8_text($section, $csv_line); 148 154
Note:
See TracChangeset
for help on using the changeset viewer.