Changeset 1554 for trunk/niupepa/perllib/plugins/NPPlug.pm
- Timestamp:
- 2000-09-20T14:54:05+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/niupepa/perllib/plugins/NPPlug.pm
r1043 r1554 198 198 my $doc_obj = new doc ($file, "indexed_doc"); 199 199 my $topsection = $doc_obj->get_top_section(); 200 my $cursection = $topsection;201 200 $self->associate_cover_images ($doc_obj, $dir, $issuekey); 202 201 $doc_obj->set_metadata_element ($topsection, 'Title', $self->get_title_string($file)); … … 216 215 $line =~ s/^\s+//; 217 216 $line =~ s/\s+$//; 218 $cursection = $doc_obj->insert_section($doc_obj->get_end_child($topsection));219 217 my ($pagenum) = $line =~ /(\d+)$/; 220 $doc_obj->set_metadata_element($cursection, 'Title', $pagenum); 221 $self->process_text ($dir, $line, $doc_obj, $cursection); 222 $self->process_images ($dir, $line, $doc_obj, $cursection); 218 $doc_obj->create_named_section($pagenum); 219 $doc_obj->set_metadata_element($pagenum, 'Title', $pagenum); 220 $self->process_text ($dir, $line, $doc_obj, $pagenum); 221 $self->process_images ($dir, $line, $doc_obj, $pagenum); 223 222 } 224 223 } … … 289 288 my $cursection = $doc_obj->get_top_section(); 290 289 $self->associate_cover_images ($doc_obj, $dir, $issuekey); 291 $doc_obj->set_metadata_element ($cursection, 'Title', "_abstract_ " . 292 $self->get_title_string($file)); 290 $doc_obj->set_metadata_element ($cursection, 'Title', $self->get_title_string($file)); 293 291 $self->set_main_metadata ($doc_obj, $dir); 294 292 map { $doc_obj->set_metadata_element ($cursection, $_, $meta->{$_}); } keys %$meta; … … 416 414 $title .= "_vol_ $vol" if defined $vol && $vol =~ /\w/; 417 415 if (defined $num && $num =~ /\w/) { 418 $title .= " :" if defined $vol && $vol =~ /\w/;416 $title .= ", " if defined $vol && $vol =~ /\w/; 419 417 $title .= "_num_ $num"; 420 418 }
Note:
See TracChangeset
for help on using the changeset viewer.