diff --git a/app/templates/annotations.html b/app/templates/annotations.html
index 231208d..f76fbc3 100644
--- a/app/templates/annotations.html
+++ b/app/templates/annotations.html
@@ -8,12 +8,10 @@
{% for row in annot.rows %}
{% if 'selector' in row.target[0] %}
-
Book
- {{row.uri|replace('.pdf','')|replace('http://localhost:8080/uploads/','')|replace('.','')}}
-
{%for book in books%}
- {%if book.file == row.uri%}
- =d=
+ {%if book.file == row.uri|replace('http://localhost:8080/uploads/','')%}
+ Book
+ {{book.title}}
{% endif %}
{% endfor %}
diff --git a/app/templates/results_annot.html b/app/templates/results_annot.html
index c6ef032..96f959f 100644
--- a/app/templates/results_annot.html
+++ b/app/templates/results_annot.html
@@ -17,16 +17,15 @@
{% for row in res %}
-Book
- {{row.url|replace('.pdf','')|replace('http://localhost:8080/uploads/','')|replace('.','')}}
+
{%for book in books%}
- {%if book.file == row.url%}
- =d=
+ {%if book.file == row.url|replace('http://localhost:8080/uploads/','')%}
+ Book
+ {{book.title}}
{% endif %}
{% endfor %}
-
Extract
"{{ row.extract }}"