diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-04-30 15:04:54 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-04-30 15:04:56 -0700 |
commit | c6305dea8a37583d79c33388244bc5209fdd598b (patch) | |
tree | 5ec68d8945ca97347b26f4202d850d945f4f51d5 /fatcat_scholar/templates | |
parent | d7f4e8c41462f2d44974fd66e2d8b0507b740084 (diff) | |
download | fatcat-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')
-rw-r--r-- | fatcat_scholar/templates/base.html | 3 |
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> |