aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/base.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-04-30 15:04:54 -0700
committerBryan Newbold <bnewbold@archive.org>2021-04-30 15:04:56 -0700
commitc6305dea8a37583d79c33388244bc5209fdd598b (patch)
tree5ec68d8945ca97347b26f4202d850d945f4f51d5 /fatcat_scholar/templates/base.html
parentd7f4e8c41462f2d44974fd66e2d8b0507b740084 (diff)
downloadfatcat-scholar-c6305dea8a37583d79c33388244bc5209fdd598b.tar.gz
fatcat-scholar-c6305dea8a37583d79c33388244bc5209fdd598b.zip
web: don't clobber user input query when parsing
This is intended to be a UX improvement, to avoid adding double quotes around the query a user has pasted in. This does make the "parsing" behavior less transparent.
Diffstat (limited to 'fatcat_scholar/templates/base.html')
-rw-r--r--fatcat_scholar/templates/base.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index acdf15c..51af546 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -125,6 +125,9 @@
<div class="ui action input large fluid">
<input type="search" placeholder="{{ _("by title, authors, keywords...") }}" name="q" aria-label="{{ _('search for papers') }}" required itemprop="query-input" style="border-radius: 0; border: 1px #999 solid;" {% if query and query.q %}value="{{ query.q }}"{% endif %}>
<button id="search_submit_button" class="ui green button" style="border-radius: 0; background-color: #44a25a; font-size: 1.2rem;">{{ _("Search") }}</button>
+ {% if query and query.parsed_q %}
+ <!-- parsed query: {{ query.parsed_q }} -->
+ {% endif %}
</div>
</div>
</form>