diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-05-21 14:23:31 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-05-21 14:23:41 -0700 |
commit | 01ae25c1bf24c8d9f7721f49122a15bf522bdbb4 (patch) | |
tree | 36add4d6c2c7050f646a14c2a0ffc5f03436ad03 /fatcat_scholar/templates/base.html | |
parent | 6c4f539463074bcb563675b6e4f19464339e5641 (diff) | |
download | fatcat-scholar-01ae25c1bf24c8d9f7721f49122a15bf522bdbb4.tar.gz fatcat-scholar-01ae25c1bf24c8d9f7721f49122a15bf522bdbb4.zip |
search query improvements
- wire up most of the filters and sort order
- query sticks around in search box
- crude error message (needs work)
Diffstat (limited to 'fatcat_scholar/templates/base.html')
-rw-r--r-- | fatcat_scholar/templates/base.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index fffdadd..a9eedd4 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -58,6 +58,15 @@ .ui.card a:hover { opacity: 0.75; } + + .text-button { + border: none; + background-color: inherit; + padding: 0; + font-family: inherit; + cursor: pointer; + display: inline-block; + } </style> <title>{%- block title -%}scholar.archive.org{%- endblock %}</title> <link rel="stylesheet" @@ -116,11 +125,11 @@ </div> </div> <div class="ui twelve wide column"> - <form class="" id="fulltext_query" action="{{ lang_prefix }}/search") }}" method="get" role="search" aria-label="papers" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction"> + <form class="" id="search_form" action="{{ lang_prefix }}/search") }}" method="get" role="search" aria-label="papers" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction"> <meta itemprop="target" content="https://{{ settings.FATCAT_DOMAIN }}/fulltext/search?q={q}"/> <div class="ui form"> <div class="ui action input large fluid"> - <input type="text" placeholder="{{ _("by title, authors, identifiers...") }}" name="q" aria-label="search metadata" required itemprop="query-input" style="border-radius: 0; border: 1px #999 solid;"> + <input type="search" placeholder="{{ _("by title, authors, identifiers...") }}" name="q" aria-label="search metadata" required itemprop="query-input" style="border-radius: 0; border: 1px #999 solid;" {% if query and query.q %}value="{{ query.q }}"{% endif %}> <button class="ui green button" style="border-radius: 0; background-color: #44a25a; font-size: 1.2rem;">{{ _("Search") }}</button> </div> </div> |