aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-02-26 10:31:08 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-02-26 12:03:32 -0800
commit8274a975d2db3697eb1d69dd22ddcc33592bbbf7 (patch)
tree82447eb1f2c7fd83933799e62a52dfcc261a91f2 /python/fatcat_web
parent6e059f1bbd9753df279e1d4c1f1f98d9099e6984 (diff)
downloadfatcat-8274a975d2db3697eb1d69dd22ddcc33592bbbf7.tar.gz
fatcat-8274a975d2db3697eb1d69dd22ddcc33592bbbf7.zip
web: release search (SERP) changes
- show preservation status instead of fulltext tag - more external identifiers
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/templates/entity_macros.html29
-rw-r--r--python/fatcat_web/templates/release_search.html2
2 files changed, 24 insertions, 7 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index e68254de..204347cd 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -178,11 +178,20 @@
</h4>
- {% if paper.best_pdf_url %}
<div style="float: right; padding: 4px;">
- &nbsp;&nbsp;<a href="{{ paper.best_pdf_url }}" class="ui violet tag label"><i class="file icon"></i>fulltext</a>
+ &nbsp;&nbsp;
+ {% if paper.preservation == "bright" %}
+ {% if paper.best_pdf_url %}
+ <a href="{{ paper.best_pdf_url }}" class="ui green label" style="background-color: #2ca048;"><i class="file icon"></i>bright archive</a>
+ {% else %}
+ <span class="ui green label" style="background-color: #2ca048;">bright archive</span>
+ {% endif %}
+ {% elif paper.preservation == "dark" %}
+ <span class="ui green label" style="background-color: #6e7b71;">dark archive</span>
+ {% else %}
+ <span class="ui grey label" style="background-color: #b71818;">no archive</span>
+ {% endif %}
</div>
- {% endif %}
{# ### AUTHOR ROW #}
{% if paper.contrib_names %}
@@ -230,15 +239,23 @@
{% if paper.doi %}
<a href="https://doi.org/{{paper.doi }}" style="color: green;">doi:{{ paper.doi }}</a> &nbsp;
{% endif %}
- {% if paper.pmid %}
- <a href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.pmid }}" style="color: green;">pmid:{{ paper.pmid }}</a> &nbsp;
- {% endif %}
{% if paper.pmcid %}
<a href="https://pubmed.ncbi.nlm.nih.gov/{{paper.pmcid }}/" style="color: green;">pmcid:{{ paper.pmcid }}</a> &nbsp;
+ {% elif paper.pmid %}
+ <a href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.pmid }}" style="color: green;">pmid:{{ paper.pmid }}</a> &nbsp;
{% endif %}
{% if paper.arxiv_id %}
<a href="https://arxiv.org/abs/{{paper.arxiv_id }}" style="color: green;">arXiv:{{ paper.arxiv_id }}</a> &nbsp;
{% endif %}
+ {% if paper.jstor_id %}
+ <a href="https://jstor.org/stable/{{paper.jstor_id }}/" style="color: green;">jstor:{{ paper.jstor_id }}</a> &nbsp;
+ {% endif %}
+ {% if paper.doaj_id %}
+ <a href="https://doaj.org/article/{{paper.doaj_id }}/" style="color: green;">doaj:{{ paper.doaj_id }}</a> &nbsp;
+ {% endif %}
+ {% if paper.doaj_id %}
+ <a href="https://dblp.org/rec/{{ paper.dblp_id }}.html" style="color: green;">dblp:{{ paper.dblp_id }}</a> &nbsp;
+ {% endif %}
{# WIP: elastic release work grouping searches
<br>
diff --git a/python/fatcat_web/templates/release_search.html b/python/fatcat_web/templates/release_search.html
index b1021322..4de56fa2 100644
--- a/python/fatcat_web/templates/release_search.html
+++ b/python/fatcat_web/templates/release_search.html
@@ -24,7 +24,7 @@
</div>
<div class="ui checkbox" style="float: right; margin: 1em;">
<input type="checkbox" name="fulltext_only" id="fulltext_only" value="true" {% if query.fulltext_only %}checked{% endif %}>
- <label for="fulltext_only">Fulltext Available Only</label>
+ <label for="fulltext_only">Only public full-text</label>
</div>
<br>Can also lookup by <b><a href="/release/lookup">identifier</a></b> or search for <b><a href="/container/search?q={{ query.q or "" }}">containers</a></b> (eg, journals).
</div>