summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-29 20:02:03 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-29 20:02:03 -0700
commit14dcadd540fa4dff1db8aff80bda410c025edbdd (patch)
treeeacc0bebf3535953684cf95619b2b83f63ea9537 /fatcat_scholar/templates
parentac2b01c565226cf140023e5fe4646a99b0b57418 (diff)
downloadfatcat-scholar-14dcadd540fa4dff1db8aff80bda410c025edbdd.tar.gz
fatcat-scholar-14dcadd540fa4dff1db8aff80bda410c025edbdd.zip
recommend search filter changes on no hits page
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/search.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html
index 13d1aec..ee95af3 100644
--- a/fatcat_scholar/templates/search.html
+++ b/fatcat_scholar/templates/search.html
@@ -95,6 +95,24 @@
{% trans %}We didn't find any documents matching your query{% endtrans %}
</div>
<div class="inline">
+ {% if query.filter_type != "everything" %}
+ <button class="ui primary button" form="search_form" type="submit" name="filter_type" value="everything">
+ {% trans %}Try All Resource Types{% endtrans %}
+ </button>
+ {% endif %}
+ {% if query.filter_time and query.filter_time != "all_time" %}
+ <button class="ui primary button" form="search_form" type="submit" name="filter_time" value="all_time">
+ {% trans %}Try All Time{% endtrans %}
+ </button>
+ {% endif %}
+ {% if query.filter_availability != "everything" %}
+ <button class="ui primary button" form="search_form" type="submit" name="filter_availability" value="everything">
+ {% trans %}Try Metadata Records{% endtrans %}
+ </button>
+ {% endif %}
+ <a href="{{ lang_prefix }}/search" class="ui primary button" style="margin: 0.5em;">{{ _("Start Over") }}</a>
+ </div>
+ <div class="inline">
<a href="https://archive.org/search.php?sin=TXT&query={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try archive.org</a>
<a href="https://fatcat.wiki/search&q={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try fatcat.wiki</a>
<a href="https://www.semanticscholar.org/search?q={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try Semantic Scholar</a>