72 |
|
|
73 |
my $out = $self->output; |
my $out = $self->output; |
74 |
|
|
75 |
$out->start_section (id => 'document-errors', title => 'Document Errors'); |
$out->start_section (role => 'structure-errors'); |
76 |
$out->html ('<p>Not supported for this kind of contents.'); |
$out->start_error_list (role => 'structure-errors'); |
77 |
## TODO: class="???" |
|
78 |
|
$self->result->add_error (input => $self->input, |
79 |
|
level => 'u', |
80 |
|
layer => 'structure', |
81 |
|
type => 'media type not supported:structure', |
82 |
|
text => $self->input->{media_type}); |
83 |
|
|
84 |
|
$out->end_error_list (role => 'structure-errors'); |
85 |
$out->end_section; |
$out->end_section; |
86 |
} # generate_structure_error_section |
} # generate_structure_error_section |
87 |
|
|
142 |
$out->start_tag ('li', id => 'line-1'); |
$out->start_tag ('li', id => 'line-1'); |
143 |
} |
} |
144 |
$out->end_tag ('ol'); |
$out->end_tag ('ol'); |
145 |
$out->html (qq[<script> |
$out->add_source_to_parse_error_list ('parse-errors-list'); |
|
addSourceToParseErrorList ('@{[$input->id_prefix]}', 'parse-errors-list'); |
|
|
</script>]); |
|
146 |
$out->end_section |
$out->end_section |
147 |
} # generate_source_string_section |
} # generate_source_string_section |
148 |
|
|