From 42820bce182cdd212d666093a99509b5ac259571 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 20 Dec 2019 19:42:16 -0800 Subject: 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 --- python/fatcat_web/templates/entity_macros.html | 4 ++-- python/fatcat_web/templates/release_view.html | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'python/fatcat_web') 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 @@ {% 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 %}
{{ key }}.{{ inner_key }} {{ inner_value }} @@ -273,4 +273,4 @@ found.count_returned }} out of {{ found.count_found }} results   -{%- 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 @@
Lookup Links
- {% if release.container != None and release.container.issnl != None %} - SHERPA/RoMEO (journal policies)
- {% endif %} {% if release != None and release.ext_ids.doi != None %} - oaDOI/unpaywall
+ oaDOI/unpaywall (OA fulltext)
+ {% endif %} + {% if release.ext_ids.doi %} + {% if release.extra.datacite %} + Datacite Metadata (via API)
+ {% else %} + Crossref Metadata (via API)
+ {% endif %} {% endif %} {% if release.ext_ids.isbn13 != None %} Open Library
@@ -417,12 +421,12 @@ {% else %} Worldcat
{% endif %} - {% if release.ext_ids.doi %} - Crossref Metadata (via API)
+ {% if release.container != None and release.container.issnl != None %} + SHERPA/RoMEO (journal policies)
{% endif %} wikidata.org
CORE.ac.uk
- Semantic Scholar (CS, neuro)
+ Semantic Scholar
Google Scholar
-- cgit v1.2.3