diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-05-13 16:02:41 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-05-13 16:02:41 -0700 |
commit | aef7b788326313a44e47549af98fc93690b34661 (patch) | |
tree | 6909d1a9c2ae5c8abe7145b77cb883d83af12a1e /fatcat_scholar/templates/search.html | |
parent | 70efe84e5c413dfb8b752faf3b4a5ce31e3d6bf2 (diff) | |
download | fatcat-scholar-aef7b788326313a44e47549af98fc93690b34661.tar.gz fatcat-scholar-aef7b788326313a44e47549af98fc93690b34661.zip |
skeleton of basic search, using covid19 index
Diffstat (limited to 'fatcat_scholar/templates/search.html')
-rw-r--r-- | fatcat_scholar/templates/search.html | 74 |
1 files changed, 73 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index 783cb47..fcb19c3 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -1 +1,73 @@ -<h1>Search template will go here</h2> +{% import "search_macros.html" as search_macros %} +{% extends "base.html" %} + +{% block fullbody %} +<div class="ui equal height divided grid" style="margin-top: 1em;"> + <div class="ui two wide column"> + + {% if found %} + <div class="ui tiny statistic" style="width: 100%; text-align: center;"> + <div class="value"> + {{ "{:,}".format(found.count_found) }} + </div> + <div class="label"> + Hits + </div> + </div> + {% else %} + Maybe some filters, facets, counts over here? + {% endif %} + + <div style="text-align: right;"> + <br> + <span style="color: rgba(0,0,0,0.4);">Release Date</span> + <div class="ui link list" style="margin-top: 0.3em;"> + <a class="active item"><b>All Time</b></a> + <a class="item" style="color: rgba(0,0,0);">Past Week</a> + <a class="item" style="color: rgba(0,0,0);">Past Year</a> + <a class="item" style="color: rgba(0,0,0);">Since 2000</a> + <a class="item" style="color: rgba(0,0,0);">Before 1925</a> + </div> + + <br> + <span style="color: rgba(0,0,0,0.4);">Resource Type</span> + <div class="ui link list" style="margin-top: 0.3em;"> + <a class="active item"><b>Papers</b></a> + <a class="item" style="color: rgba(0,0,0);">Reports</a> + <a class="item" style="color: rgba(0,0,0);">Datasets</a> + <a class="item" style="color: rgba(0,0,0);">Everything</a> + </div> + + <br> + <span style="color: rgba(0,0,0,0.4);">Availability</span> + <div class="ui link list" style="margin-top: 0.3em;"> + <a class="active item"><b>Everything</b></a> + <a class="item" style="color: rgba(0,0,0);">Open Access</a> + <a class="item" style="color: rgba(0,0,0);">Lending</a> + <a class="item" style="color: rgba(0,0,0);">Paywall</a> + </div> + + <br> + <span style="color: rgba(0,0,0,0.4);">Sort Order</span> + <div class="ui link list" style="margin-top: 0.3em;"> + <a class="active item"><b>Relevancy</b></a> + <a class="item" style="color: rgba(0,0,0);">Recent First</a> + <a class="item" style="color: rgba(0,0,0);">Oldest First</a> + </div> + </div> + + </div> + <div class="ui thirteen wide column"> + {% if found %} + {% if found.results %} + {% for paper in found.results %} + {{ search_macros.fulltext_search_result_row(paper) }} + {% endfor %} + {% endif %} + {% else %} + Some other message here when there is no search? Like a bunch of examples? + Or does that ever happen... we can just run query on "*". + {% endif %} + </div> +</div> +{% endblock %} |