# find the chapter's title
name_elem = deepcopy(element)
- for tag in 'extra', 'motyw', 'pa', 'pe', 'pr', 'pt', 'uwaga':
+ for tag in 'extra', 'motyw', 'pa', 'pe', 'pr', 'pt', 'ptrad', 'uwaga':
for a in name_elem.findall('.//' + tag):
a.text=''
del a[:]
}
/* Convert HTML fragment to plaintext */
- var ANNOT_FORBIDDEN = ['pt', 'pa', 'pr', 'pe', 'begin', 'end', 'motyw'];
+ var ANNOT_FORBIDDEN = ['pt', 'pa', 'pr', 'pe', 'ptrad', 'begin', 'end', 'motyw'];
function html2plainText(fragment){
var text = "";
$.xmlns["rdf"] = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
$('rdf|RDF', doc).remove();
if (params.noFootnotes) {
- $('pa, pe, pr, pt', doc).remove();
+ $('pa, pe, pr, pt, ptrad', doc).remove();
}
if (params.noThemes) {
$('motyw', doc).remove();
<a href='#' class="nav-link refresh" title="Przypisy tłumacza" data-tag="pt">pt</a>
</li>
<li class="nav-item">
- <a href='#' class="nav-link refresh" title="Wszystkie przypisy" data-tag="pa,pe,pr,pt">{% trans "all" %}</a>
+ <a href='#' class="nav-link refresh" title="Przypisy tradycyjne" data-tag="ptrad">ptrad</a>
+ </li>
+ <li class="nav-item">
+ <a href='#' class="nav-link refresh" title="Wszystkie przypisy" data-tag="pa,pe,pr,pt,ptrad">{% trans "all" %}</a>
</li>
</ul>
<div id="annotations-container">