diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-02-26 10:31:08 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-02-26 12:03:32 -0800 |
commit | 8274a975d2db3697eb1d69dd22ddcc33592bbbf7 (patch) | |
tree | 82447eb1f2c7fd83933799e62a52dfcc261a91f2 /python/fatcat_web/templates/entity_macros.html | |
parent | 6e059f1bbd9753df279e1d4c1f1f98d9099e6984 (diff) | |
download | fatcat-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/templates/entity_macros.html')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 29 |
1 files changed, 23 insertions, 6 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;"> - <a href="{{ paper.best_pdf_url }}" class="ui violet tag label"><i class="file icon"></i>fulltext</a> + + {% 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> {% endif %} - {% if paper.pmid %} - <a href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.pmid }}" style="color: green;">pmid:{{ paper.pmid }}</a> - {% endif %} {% if paper.pmcid %} <a href="https://pubmed.ncbi.nlm.nih.gov/{{paper.pmcid }}/" style="color: green;">pmcid:{{ paper.pmcid }}</a> + {% elif paper.pmid %} + <a href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.pmid }}" style="color: green;">pmid:{{ paper.pmid }}</a> {% endif %} {% if paper.arxiv_id %} <a href="https://arxiv.org/abs/{{paper.arxiv_id }}" style="color: green;">arXiv:{{ paper.arxiv_id }}</a> {% endif %} + {% if paper.jstor_id %} + <a href="https://jstor.org/stable/{{paper.jstor_id }}/" style="color: green;">jstor:{{ paper.jstor_id }}</a> + {% endif %} + {% if paper.doaj_id %} + <a href="https://doaj.org/article/{{paper.doaj_id }}/" style="color: green;">doaj:{{ paper.doaj_id }}</a> + {% endif %} + {% if paper.doaj_id %} + <a href="https://dblp.org/rec/{{ paper.dblp_id }}.html" style="color: green;">dblp:{{ paper.dblp_id }}</a> + {% endif %} {# WIP: elastic release work grouping searches <br> |