aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-12-20 19:42:16 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-12-20 19:42:18 -0800
commit42820bce182cdd212d666093a99509b5ac259571 (patch)
tree31ca6176c846544d309fd63c4bbf640318c796e9 /python/fatcat_web/templates
parent2a227f544fc9663878516fba53ad41860cda6d5b (diff)
downloadfatcat-42820bce182cdd212d666093a99509b5ac259571.tar.gz
fatcat-42820bce182cdd212d666093a99509b5ac259571.zip
datacite release links and metadata expansion
Small ergonomic changes for datacite releases: - add a link to live/current datacite metadata (like we do for Crossref) - expand "extra" metadata fields under 'datacite' dict in metadata view
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/entity_macros.html4
-rw-r--r--python/fatcat_web/templates/release_view.html18
2 files changed, 13 insertions, 9 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index 390327bc..df26a738 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -65,7 +65,7 @@
<table class="ui definition single line fixed compact small unstackable table">
<tbody>
{% for (key, value) in extra.items()|sort %}
- {% if key in ("ia", "crossref", "kbart", "arxiv", "jstor", "pubmed") and value is mapping and value %}
+ {% if key in ("ia", "crossref", "datacite", "kbart", "arxiv", "jstor", "pubmed") and value is mapping and value %}
{% for (inner_key, inner_value) in value.items()|sort %}
<tr><td class="three wide right aligned"><code>{{ key }}.{{ inner_key }}</code></td>
<td class="seven wide"><code>{{ inner_value }}</code>
@@ -273,4 +273,4 @@ found.count_returned }} out of {{ found.count_found }} results</i>&nbsp;&nbsp;
</div>
-{%- endmacro %} \ No newline at end of file
+{%- endmacro %}
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index b4e0ba25..83ecd1c8 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -405,11 +405,15 @@
<div class="ui segment attached accordion">
<div class="title" style="padding: 0px;"><i class="dropdown icon"></i><b>Lookup Links</b></div>
<div class="content">
- {% if release.container != None and release.container.issnl != None %}
- <a href="http://www.sherpa.ac.uk/romeo/issn/{{ release.container.issnl }}/">SHERPA/RoMEO</a> (journal policies)<br/>
- {% endif %}
{% if release != None and release.ext_ids.doi != None %}
- <a href="https://oadoi.org/{{ release.ext_ids.doi }}">oaDOI/unpaywall</a><br/>
+ <a href="https://oadoi.org/{{ release.ext_ids.doi }}">oaDOI/unpaywall</a> (OA fulltext)<br/>
+ {% endif %}
+ {% if release.ext_ids.doi %}
+ {% if release.extra.datacite %}
+ <a href="https://api.datacite.org/dois/{{ release.ext_ids.doi }}">Datacite Metadata</a> (via API)<br>
+ {% else %}
+ <a href="https://api.crossref.org/v1/works/http://dx.doi.org/{{ release.ext_ids.doi }}">Crossref Metadata</a> (via API)<br>
+ {% endif %}
{% endif %}
{% if release.ext_ids.isbn13 != None %}
<a href="https://openlibrary.org/search?isbn={{ release.ext_ids.isbn13 }}">Open Library</a><br>
@@ -417,12 +421,12 @@
{% else %}
<a href="http://www.worldcat.org/search?qt=worldcat_org_art&q={{ release.title|urlencode }}">Worldcat</a><br>
{% endif %}
- {% if release.ext_ids.doi %}
- <a href="https://api.crossref.org/v1/works/http://dx.doi.org/{{ release.ext_ids.doi }}">Crossref Metadata</a> (via API)<br>
+ {% if release.container != None and release.container.issnl != None %}
+ <a href="http://www.sherpa.ac.uk/romeo/issn/{{ release.container.issnl }}/">SHERPA/RoMEO</a> (journal policies)<br/>
{% endif %}
<a href="https://www.wikidata.org/w/index.php?search={{ release.title|urlencode }}">wikidata.org</a><br>
<a href="https://core.ac.uk/search?q={{ release.title|urlencode }}">CORE.ac.uk</a><br>
- <a href="https://www.semanticscholar.org/search?q={{ release.title|urlencode }}">Semantic Scholar</a> (CS, neuro)<br>
+ <a href="https://www.semanticscholar.org/search?q={{ release.title|urlencode }}">Semantic Scholar</a><br>
<a href="https://scholar.google.com/scholar?q={{ release.title|urlencode }}">Google Scholar</a><br>
</div>
</div>