@ -2,32 +2,32 @@
{% block main %}
{% block main %}
< h1 class = "header" > Annotations of XPPL< / h1 >
< h1 class = "header" > Annotations of XPPL< / h1 >
< nav > < a href = "{{ url_for('annotations_pdf') }}" > Get as PDF< / a > < / nav > < nav > < a href = "/search_annot" > search< / a > < / nav > < br > < br > < br > < br > < br > < br > < br > < br >
< a href = "{{ url_for('annotations_pdf') }}" style = "color:#ff3300;" > Get as PDF< / a > < a href = "/search_annot" style = "color:#ff3300;" > Search< / a > < br > < br > < br > < br > < br > < br > < br > < br >
{% for row in annot.rows %}
{% for row in annot.rows %}
{% if 'selector' in row.target[0] %}
{% if 'selector' in row.target[0] %}
< p align = "right" style = "font-family:archivo narrow;font-size:10px;" > Book< / p >
< p align = "right" style = "font-family:archivo narrow;font-size:14px;" > {{row.uri|replace('.pdf','')|replace('http://localhost:8080/uploads/','')|replace('.','')}}< / p > < br >
{%for book in books%}
{%for book in books%}
{%if book.file == row.uri%}
{%if book.file == row.uri%}
< a href = "books/{{book.id}}" > < p align = "right" style = "font-family:archivo narrow;font-size:12px;" > {{book.title}} < / p > < / a > < br >
< a href = "books/{{book.id}}" > < p align = "right" style = "font-family:archivo narrow;font-size:12px;" > =d= < / p > < / a > < br >
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% if row.target[0].selector|length > 2%}
{% if row.target[0].selector|length > 2%}
< p style = "font-family:archivo narrow;font-size: 8px;"> Extracts: < / p >
< p style = "font-family:archivo narrow;font-size: 10px;"> Extract < / p >
< div style = "font-family:archivo narrow;font-size:18px;" > < i > "{{row.target[0].selector[2].exact}}"< / i > < / div > < br >
< div style = "font-family:archivo narrow;font-size:18px;" > < i > "{{row.target[0].selector[2].exact}}"< / i > < / div > < br >
< p style = "font-family:archivo narrow;font-size: 8 px;color:#ff3300;"> Annotations: < / p >
< p style = "font-family:archivo narrow;font-size: 10 px;color:#ff3300;"> Annotation< / p >
{%if 'https://www.youtube.com' in row.text %}
{%if 'https://www.youtube.com' in row.text %}
<!-- <embed src="{{row.text}}" width="50%"></embed> -->
< a style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" href = "{{row.text}}" > {{row.text}}< / a > < br >
< a style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" href = "{{row.text}}" > {{row.text}}< / a > < br >
{%elif '.jpg' in row.text%}
{%elif '.jpg' in row.text%}
< img src = "{{row.text}}" alt = "{{row.document.title}}" width = "400" >
< img src = "{{row.text}}" alt = "{{row.document.title}}" width = "400" >
{%elif '.mp3' in row.text %}
{%elif '.mp3' in row.text %}
<!-- <embed src="{{row.text}}" width="50%"></embed> -->
< a style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" href = "{{row.text}}" > {{row.text}}< / a > < br >
< a style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" href = "{{row.text}}" > {{row.text}}< / a > < br >
{%else%}
{%else%}
< div style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" > {{row.text}}< / div > < br >
< div style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" > {{row.text}}< / div > < br >
@ -35,14 +35,16 @@
< hr >
< hr >
{%else%}
{%else%}
< p style = "font-family:archivo narrow;font-size:10px;" > Extracts:< / p >
< div style = "font-family:archivo narrow;font-size:18px;" >
< div style = "font-family:archivo narrow;font-size:18px;" >
< i > "{{row.target[0].selector[1].exact}}"< / i > < / div > < br >
< i > "{{row.target[0].selector[1].exact}}"< / i > < / div > < br >
< p style = "font-family:archivo narrow;font-size:10px;color:#ff3300;" > Annotations:< / p >
{%if 'https://www.youtube.com'in row.text %}
{%if 'https://www.youtube.com'in row.text %}
<!-- <embed src="{{row.text}}" width="50%"></embed> -->
< a style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" href = "{{row.text}}" > {{row.text}}< / a > < br >
< a style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" href = "{{row.text}}" > {{row.text}}< / a > < br >
{%elif '.jpg' in row.text%}
{%elif '.jpg' in row.text%}
< img src = "{{row.text}}" alt = "{{row.document.title}}" width = "400" >
< img src = "{{row.text}}" alt = "{{row.document.title}}" width = "400" >
{%elif '.mp3' in row.text %}
< a style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" href = "{{row.text}}" > {{row.text}}< / a > < br >
{%else%}
{%else%}
< div style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" > {{row.text}}< / div > < br >
< div style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" > {{row.text}}< / div > < br >
{% endif %}
{% endif %}