From 660ae5878ab235b3631e293e0f216846e2986c02 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 8 Apr 2020 16:16:32 -0700 Subject: small search tweaks and fixes --- fatcat_covid19/search.py | 2 +- fatcat_covid19/templates/fulltext_search.html | 35 ++++++--------------------- fatcat_covid19/transform.py | 2 +- 3 files changed, 10 insertions(+), 29 deletions(-) (limited to 'fatcat_covid19') diff --git a/fatcat_covid19/search.py b/fatcat_covid19/search.py index 7d4596d..d39e665 100644 --- a/fatcat_covid19/search.py +++ b/fatcat_covid19/search.py @@ -81,7 +81,7 @@ def do_fulltext_search(q, limit=25, offset=0, filter_time=None, filter_type=None # type filters if filter_type == "papers": - search = search.filter("terms", release_type=[ "article-journal", "paper-conference", ]) + search = search.filter("terms", release_type=[ "article-journal", "paper-conference", "chapter", ]) elif filter_type == "reports": search = search.filter("terms", release_type=[ "report", "standard", ]) elif filter_type == "datasets": diff --git a/fatcat_covid19/templates/fulltext_search.html b/fatcat_covid19/templates/fulltext_search.html index 174acd9..55b25cc 100644 --- a/fatcat_covid19/templates/fulltext_search.html +++ b/fatcat_covid19/templates/fulltext_search.html @@ -14,7 +14,7 @@
-

{{ _("Search COVID-19 documents") }}

+

{{ _("Search COVID-19 Research") }}

@@ -23,34 +23,15 @@
- Include:   - -{# - -#} - + {{ _("Include") }}   - from + {{ _("from") }}