From d12d03bd241d93ffc624747f9f60fdf7fbe18f14 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 May 2020 17:07:06 -0700 Subject: UI mobile/tablet scaling; search error improvements --- fatcat_scholar/templates/search.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'fatcat_scholar/templates/search.html') diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index 10eda61..8d9fb7d 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -2,7 +2,7 @@ {% extends "base.html" %} {% block fullmain %} -
+
Filters @@ -19,12 +19,14 @@ {{ "{:,}".format(hits.count_found) }} Hits in {{ "{:0.2}".format(hits.query_time_ms/1000.0) }}sec + {% else %} +   {% endif %}
-
+
{% if hits %}
{#

{{ "{:,}".format(hits.count_found) }}

#} @@ -48,9 +50,20 @@
{% if search_error %} -
-
Query Error
-

{{ search_error }}

+
+ +
+
+ {% if search_error.type == "backend" %} + Backend Search Engine Error + {% elif search_error.type == "query" %} + Query Error + {% endif %} +
+

Computer said: {{ search_error.message }} +

Query parsing is currently very naive. Sometimes you can fix this + problem by adding quotes around terms or entire phrases. +

{% elif hits and hits.results %} {% if hits.results %} -- cgit v1.2.3