110 |
$opt{id} ||= 'parse-errors'; |
$opt{id} ||= 'parse-errors'; |
111 |
$opt{title} ||= 'Parse Errors Section'; |
$opt{title} ||= 'Parse Errors Section'; |
112 |
$opt{short_title} ||= 'Parse Errors'; |
$opt{short_title} ||= 'Parse Errors'; |
113 |
|
$class .= ' errors'; |
114 |
delete $opt{role}; |
delete $opt{role}; |
115 |
} elsif ($opt{role} eq 'structure-errors') { |
} elsif ($opt{role} eq 'structure-errors') { |
116 |
$opt{id} ||= 'document-errors'; |
$opt{id} ||= 'document-errors'; |
117 |
$opt{title} ||= 'Structural Errors'; |
$opt{title} ||= 'Structural Errors'; |
118 |
$opt{short_title} ||= 'Struct. Errors'; |
$opt{short_title} ||= 'Struct. Errors'; |
119 |
|
$class .= ' errors'; |
120 |
|
delete $opt{role}; |
121 |
|
} elsif ($opt{role} eq 'transfer-errors') { |
122 |
|
$opt{id} ||= 'transfer-errors'; |
123 |
|
$opt{title} ||= 'Transfer Errors'; |
124 |
|
$opt{short_title} ||= 'Trans. Errors'; |
125 |
|
$class .= ' errors'; |
126 |
delete $opt{role}; |
delete $opt{role}; |
127 |
} elsif ($opt{role} eq 'reformatted') { |
} elsif ($opt{role} eq 'reformatted') { |
128 |
$opt{id} ||= 'document-tree'; |
$opt{id} ||= 'document-tree'; |
129 |
$opt{title} ||= 'Reformatted Document Source'; |
$opt{title} ||= 'Reformatted Document Source'; |
130 |
$opt{short_title} ||= 'Reformatted'; |
$opt{short_title} ||= 'Reformatted'; |
131 |
|
$class .= ' dump'; |
132 |
delete $opt{role} |
delete $opt{role} |
133 |
} elsif ($opt{role} eq 'tree') { |
} elsif ($opt{role} eq 'tree') { |
134 |
$opt{id} ||= 'document-tree'; |
$opt{id} ||= 'document-tree'; |
135 |
$opt{title} ||= 'Document Tree'; |
$opt{title} ||= 'Document Tree'; |
136 |
$opt{short_title} ||= 'Tree'; |
$opt{short_title} ||= 'Tree'; |
137 |
|
$class .= ' dump'; |
138 |
delete $opt{role}; |
delete $opt{role}; |
139 |
} elsif ($opt{role} eq 'structure') { |
} elsif ($opt{role} eq 'structure') { |
140 |
$opt{id} ||= 'document-structure'; |
$opt{id} ||= 'document-structure'; |
141 |
$opt{title} ||= 'Document Structure'; |
$opt{title} ||= 'Document Structure'; |
142 |
$opt{short_title} ||= 'Structure'; |
$opt{short_title} ||= 'Structure'; |
143 |
|
$class .= ' dump'; |
144 |
delete $opt{role}; |
delete $opt{role}; |
145 |
} elsif ($opt{role} eq 'subdoc') { |
} elsif ($opt{role} eq 'subdoc') { |
146 |
$class .= ' subdoc'; |
$class .= ' subdoc'; |
147 |
delete $opt{role}; |
delete $opt{role}; |
148 |
|
} elsif ($opt{role} eq 'source') { |
149 |
|
$opt{id} ||= 'source-string'; |
150 |
|
$opt{title} ||= 'Document Source'; |
151 |
|
$opt{short_title} ||= 'Source'; |
152 |
|
$class .= ' source'; |
153 |
|
delete $opt{role}; |
154 |
|
} elsif ($opt{role} eq 'result') { |
155 |
|
$opt{id} ||= 'result-summary'; |
156 |
|
$opt{title} ||= 'Result'; |
157 |
|
$class .= ' result'; |
158 |
|
delete $opt{role}; |
159 |
} |
} |
160 |
} |
} |
161 |
|
|