From f75bd69d3782fc50f023e9fee30f056df7e065cc Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 13 Jun 2018 12:27:31 +0200 Subject: [PATCH] changes in annotations --- app/templates/annotations.html | 8 +++----- app/templates/results_annot.html | 9 ++++----- 2 files changed, 7 insertions(+), 10 deletions(-) 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 }}"