aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_covid19/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-08 16:16:32 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-08 16:16:32 -0700
commit660ae5878ab235b3631e293e0f216846e2986c02 (patch)
tree18a0de8169e13457709a7921f8ef20115c191ead /fatcat_covid19/templates
parent858147b071103c505bff643e35b503c623f20284 (diff)
downloadfatcat-covid19-660ae5878ab235b3631e293e0f216846e2986c02.tar.gz
fatcat-covid19-660ae5878ab235b3631e293e0f216846e2986c02.zip
small search tweaks and fixes
Diffstat (limited to 'fatcat_covid19/templates')
-rw-r--r--fatcat_covid19/templates/fulltext_search.html35
1 files changed, 8 insertions, 27 deletions
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 @@
<div class="ui vertical stripe segment" style="background-color: #EEE; padding-top: 2.5em; padding-bottom: 0.5em;">
<div class="ui container text">
- <h1>{{ _("Search COVID-19 documents") }}</h1>
+ <h1>{{ _("Search COVID-19 Research") }}</h1>
<form class="" role="search" action="/fulltext/search" method="get">
<div class="ui form">
<div class="ui action input huge fluid">
@@ -23,34 +23,15 @@
</div>
<div style="padding-top: 0.85em; padding-left: 1em;">
- Include: &nbsp;
-
-{#
- <div class="ui inline dropdown">
- <input type="hidden" name="filter_time">
- <div class="text">{{ filter_time or 'any' }}</div>
- <i class="dropdown icon"></i>
- <div class="menu">
- <div class="header">
- <i class="filter icon"></i>
- Publication Stage
- </div>
- <div class="divider"></div>
- <div class="{% if filter_type == 'any' %}active{% endif %} item" data-value="any" >{{ _("any stage") }}</div>
- <div class="{% if filter_type == 'published' %}active{% endif %} item" data-value="published" >{{ _("only published") }}</div>
- <div class="{% if filter_type == 'pre_print' %}active{% endif %} item" data-value="pre_print" >{{ _("only pre-print") }}</div>
- </div>
- </div>
-#}
-
+ {{ _("Include") }} &nbsp;
<div class="ui inline dropdown">
- <input type="hidden" name="filter_type" value="{{ filter_type }}">
+ <input type="hidden" name="filter_type" value="{{ filter_type or 'papers' }}">
<div class="text">{{ filter_type or "papers" }}</div>
<i class="dropdown icon"></i>
<div class="menu">
<div class="header">
<i class="filter icon"></i>
- Resource Type
+ {{ _("Resource Type") }}
</div>
<div class="divider"></div>
<div class="{% if filter_type == 'papers' %}active{% endif %} item" data-value="papers" >{{ _("papers") }}</div>
@@ -60,15 +41,15 @@
</div>
</div>
- from
+ {{ _("from") }}
<div class="ui inline dropdown">
- <input type="hidden" name="filter_time" vale="{{ filter_time }}">
- <div class="text">{{ filter_time or "all time" }}</div>
+ <input type="hidden" name="filter_time" value="{{ filter_time or 'all' }}">
+ <div class="text">{{ (filter_time and filter_time.replace("_", " ")) or "all time" }}</div>
<i class="dropdown icon"></i>
<div class="menu">
<div class="header">
<i class="filter icon"></i>
- Time Period
+ {{ _("Time Period") }}
</div>
<div class="divider"></div>
<div class="{% if filter_type == 'all' %}active{% endif %} item" data-value="all" >{{ _("all time") }}</div>