From 986ce7a38029f7fb20a51271f67d943678e17386 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 1 Apr 2020 21:29:56 -0700 Subject: first iteration of web interface Copied and tweaked from fatcat:python/fatcat_web LICENSE file for this repo is a TODO and will need to match that of fatcat. --- fatcat_covid19/templates/fulltext_search.html | 72 +++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 fatcat_covid19/templates/fulltext_search.html (limited to 'fatcat_covid19/templates/fulltext_search.html') diff --git a/fatcat_covid19/templates/fulltext_search.html b/fatcat_covid19/templates/fulltext_search.html new file mode 100644 index 0000000..dd42f9b --- /dev/null +++ b/fatcat_covid19/templates/fulltext_search.html @@ -0,0 +1,72 @@ +{% import "entity_macros.html" as entity_macros %} +{% extends "base.html" %} + +{% block title %} +{% if query %} + Search: {{ query }} +{% else %} + Fulltext Search +{% endif %} +{% endblock %} + + +{% block fullmain %} + +
+
+

Search all COVID-19 Resources

+
+
+
+ + +
+
+ + +
+
Can also lookup by identifier or search for containers (eg, journals). +
+
+
+
+ +
+
+ +{% if found %} +{% if found.results %} + {{ entity_macros.top_results(found) }} + + {% for paper in found.results %} + {{ entity_macros.fulltext_search_result_row(paper) }} +{% endfor %} +{% if found.results|length > 8 %} +
+
+ {{ entity_macros.bottom_results(found)}} +
+{% endif %} +{% else %} + +Raw query was: {{ found.query.q }} + +
+
+
+ confused paper man +
+
+

No results found!

+

You could try elsewhere:

+ +
+{% endif %} +{% endif %} + +
+{% endblock %} -- cgit v1.2.3