182 |
my $st = $opt{short_title} || $opt{title}; |
my $st = $opt{short_title} || $opt{title}; |
183 |
push @{$self->{nav}}, |
push @{$self->{nav}}, |
184 |
[$id => $st => $opt{text}] if $self->{section_rank} == 2; |
[$id => $st => $opt{text}] if $self->{section_rank} == 2; |
185 |
|
|
186 |
$self->start_tag ('script'); |
unless ($opt{notab}) { |
187 |
$self->html (qq[ addSectionLink ('$id', ']); |
$self->start_tag ('script'); |
188 |
$self->nl_text ($st, text => $opt{text}); |
$self->html (qq[ addSectionLink ('$id', ']); |
189 |
if (defined $opt{parent_id}) { |
$self->nl_text ($st, text => $opt{text}); |
190 |
$self->html (q[', '] . $opt{parent_id}); |
if (defined $opt{parent_id}) { |
191 |
|
$self->html (q[', '] . $opt{parent_id}); |
192 |
|
} |
193 |
|
$self->html (q[') ]); |
194 |
|
$self->end_tag ('script'); |
195 |
} |
} |
|
$self->html (q[') ]); |
|
|
$self->end_tag ('script'); |
|
196 |
} |
} |
197 |
} else { |
} else { |
198 |
$self->html ('>'); |
$self->html ('>'); |