Ignore:
Timestamp:
2000-09-20T14:54:05+12:00 (24 years ago)
Author:
sjboddie
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/niupepa/perllib/plugins/NPPlug.pm

    r1043 r1554  
    198198    my $doc_obj = new doc ($file, "indexed_doc");
    199199    my $topsection = $doc_obj->get_top_section();
    200     my $cursection = $topsection;
    201200    $self->associate_cover_images ($doc_obj, $dir, $issuekey);
    202201    $doc_obj->set_metadata_element ($topsection, 'Title', $self->get_title_string($file));
     
    216215        $line =~ s/^\s+//;
    217216        $line =~ s/\s+$//;
    218         $cursection = $doc_obj->insert_section($doc_obj->get_end_child($topsection));
    219217        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);
    223222    }
    224223    }
     
    289288    my $cursection = $doc_obj->get_top_section();
    290289    $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));
    293291    $self->set_main_metadata ($doc_obj, $dir);
    294292    map { $doc_obj->set_metadata_element ($cursection, $_, $meta->{$_}); } keys %$meta;
     
    416414    $title .= "_vol_ $vol" if defined $vol && $vol =~ /\w/;
    417415    if (defined $num && $num =~ /\w/) {
    418     $title .= ": " if defined $vol && $vol =~ /\w/;
     416    $title .= ", " if defined $vol && $vol =~ /\w/;
    419417    $title .= "_num_ $num";
    420418    }
Note: See TracChangeset for help on using the changeset viewer.