aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-26 22:45:22 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-26 22:45:22 -0700
commit17ef522ef5412ff87e3caed1b626d655964e4ac5 (patch)
tree2f5e9a6c8d5f2ce2a6ae15c6d7c13318bd9c988a
parent996603e9bf874f066f7d13f6b91977bd2d34d0c1 (diff)
downloadfatcat-17ef522ef5412ff87e3caed1b626d655964e4ac5.tar.gz
fatcat-17ef522ef5412ff87e3caed1b626d655964e4ac5.zip
improvements to search results page
-rw-r--r--python/fatcat/templates/release_search.html25
1 files changed, 20 insertions, 5 deletions
diff --git a/python/fatcat/templates/release_search.html b/python/fatcat/templates/release_search.html
index 39c9bbe6..1085d263 100644
--- a/python/fatcat/templates/release_search.html
+++ b/python/fatcat/templates/release_search.html
@@ -6,11 +6,26 @@
<i>Showing top {{ found.count_returned }} out of {{ found.count_found }} results for: <code>{{ found.query.q }}</code></i>
{% for paper in found.results %}
<div>
- <h4 style="margin-top: 1em; margin-bottom: 4px;"><a href="/release/lookup?doi={{ paper.doi }}" style="color: #2224c7;">{{ paper['title'] }}</a></h4>
- <h5 style="margin-top: 4px; margin-bottom: 4px;">{{ ", ".join(paper.authors) }}</h5>
- DOI: <a href="http://oadoi.org/{{paper.doi }}" style="color: green;">{{ paper.doi }}</a>
- <br>Journal: {{ paper.journal }}
- <!-- <br>Date: {{ paper.date }} -->
+ <h4 style="margin-top: 1em; margin-bottom: 4px; font-size: 1.1em;"><a href="/release/lookup?doi={{ paper.doi }}" style="color: #2224c7;">{{ paper['title'] }}</a>
+ {% if paper.file_pdf_url %}
+ &nbsp;&nbsp;<a href="{{ paper.file_pdf_url }}" class="ui label small"><i class="file icon"></i>fulltext</a>
+ {% endif %}
+ </h4>
+ <h5 style="margin-top: 4px; margin-bottom: 4px; font-size: 1em;">{{ ", ".join(paper.contrib_names) }}</h5>
+ {% if paper.doi %}
+ DOI: <a href="https://doi.org/{{paper.doi }}" style="color: green;">{{ paper.doi }}</a>
+ - {{ paper.release_type }}
+ - {{ paper.release_date[:4] }}<br>
+ {% endif %}
+ {% if paper.container_name %}
+ {% if paper.container_issnl %}
+ <a href="/container/lookup?issnl={{ paper.container_issnl}}" style="color: black;">{{ paper.container_name }}</a>
+ {% else %}
+ {{ paper.container_name }}
+ {% endif %}
+ {% if paper.container_is_oa %}<i class="icon unlock orange small"></i>{% endif %}
+ {% endif %}
+ <!-- <br>Date: {{ paper.release_date }} -->
</div>
{% else %}
<br/>