From 419e5e312fb854a010febcf153c7b9c35bd3d237 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 5 Jun 2019 22:52:26 -0700 Subject: revamp release search page --- python/fatcat_web/templates/release_search.html | 97 +++++++++++++++++++------ 1 file changed, 75 insertions(+), 22 deletions(-) diff --git a/python/fatcat_web/templates/release_search.html b/python/fatcat_web/templates/release_search.html index 0e00279c..e1e76030 100644 --- a/python/fatcat_web/templates/release_search.html +++ b/python/fatcat_web/templates/release_search.html @@ -1,19 +1,26 @@ {% extends "base.html" %} -{% block body %} +{% block fullmain %} -

Search all Releases

-
-
-
- - -
-
- - -
+
+
+

Search all Releases

+ +
+
+ + +
+
+ + +
+
Can also lookup by identifier or search containers. +
+
- +
+ +

@@ -22,21 +29,50 @@ Showing top {{ found.count_returned }} out of {{ found.count_found }} results for: {{ found.query.q }} {% for paper in found.results %}
-

{{ paper['title'] }} +

+ + {% if paper.title %} + {{ paper.title[:512] }} + {% if paper.title|length > 512 %}...{% endif %} + {% else %} + [blank] + {% endif %} + +

{% if paper.best_pdf_url %} -   fulltext +
+   fulltext +
{% endif %} - + {#
{{ ", ".join(paper.contrib_names[:12]) }} {% if paper.contrib_names|length > 12 %}(+{{ paper.contrib_names|length - 12 }} others){% endif %}
- {% if paper.doi %} - DOI: {{ paper.doi }} - - {{ paper.release_type }} - {% if paper.release_year %} - - {{ paper.release_year }} + #} + {% if paper.contrib_names %} +
+ + {{ ", ".join(paper.contrib_names[:12]) }} + {% if paper.contrib_names|length > 12 %}(+{{ paper.contrib_names|length - 12 }} others){% endif %} + +
+ {% endif %} + {% if paper.release_year %} + {{ paper.release_year }} + {% endif %} + {% if paper.release_type %} + {% if paper.release_type in ("article-journal", "paper-conference") %} + {{ paper.release_type }} + {% elif paper.release_type in ("book") %} + {{ paper.release_type }} + {% else %} + {{ paper.release_type }} {% endif %} -
+ {% endif %} + {% if paper.release_status and paper.release_status != "published" %} + {{ paper.release_status }} + {% elif not paper.release_status %} + unknown {% endif %} {% if paper.container_name %} {% if paper.container_issnl %} @@ -46,6 +82,22 @@ {% endif %} {% if paper.container_is_oa %}{% endif %} {% endif %} + {% if paper.doi or paper.pmid or paper.arxiv_id or paper.jstor_id %} +
+ {% endif %} + {% if paper.doi %} + doi:{{ paper.doi }}   + {% endif %} + {% if paper.pmid %} + pmid:{{ paper.pmid }}   + {% endif %} + {% if paper.arxiv_id %} + arXiv:{{ paper.arxiv_id }}   + {% endif %} + {% if False %} {# XXX: elastic release work grouping searches #} +
+ and 5 other versions of the same work! + {% endif %}
{% endfor %} {% if found.results|length > 8 %} @@ -67,4 +119,5 @@ {% endif %} {% endif %} +
{% endblock %} -- cgit v1.2.3