From ae27a5c9996f34487ee0f2669104b30dee263189 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 24 Aug 2020 16:02:32 +0530 Subject: added pubmed search --- app/templates/search.html | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 app/templates/search.html (limited to 'app/templates/search.html') diff --git a/app/templates/search.html b/app/templates/search.html new file mode 100644 index 0000000..1faf151 --- /dev/null +++ b/app/templates/search.html @@ -0,0 +1,50 @@ +{% extends 'base.html' %} + +{% block main %} +

Curie Search

+

Search PubMed articles.

+
+ {% include 'flash_messages.html' %} + {{ form.csrf_token }} +
+ {{ form.query.label }} + {{ form.query(class="form-control")}} +
+ +
+
+ +
+
+ + {% if result %} +

Search Results

+ {% for x in range(result|length) %} + + +
+
+
+
+

DOI: {{result[x]['doi']}}

+

PubMed ID: {{result[x]['pubmed_id']}}

+

Download: Sci-Hub

+

Journal: {{result[x]['journal']}}

+
+
+
+
+
{{result[x]["title"]}}
+

Abstract: {{result[x]["abstract"]}}

+

Published on {{result[x]['publication_date']}}

+
+
+
+
+ {% endfor %} + {% endif %} + +{% endblock %} \ No newline at end of file -- cgit v1.2.3