diff options
author | bnewbold <bnewbold@archive.org> | 2019-12-21 04:10:10 +0000 |
---|---|---|
committer | bnewbold <bnewbold@archive.org> | 2019-12-21 04:10:10 +0000 |
commit | 2a34cbfe3095eeef638b5f9f08a650a1b4a4c823 (patch) | |
tree | 31ca6176c846544d309fd63c4bbf640318c796e9 /python/fatcat_web | |
parent | 2a227f544fc9663878516fba53ad41860cda6d5b (diff) | |
parent | 42820bce182cdd212d666093a99509b5ac259571 (diff) | |
download | fatcat-2a34cbfe3095eeef638b5f9f08a650a1b4a4c823.tar.gz fatcat-2a34cbfe3095eeef638b5f9f08a650a1b4a4c823.zip |
Merge branch 'bnewbold-datacite-ui' into 'master'
datacite release links and metadata expansion
See merge request webgroup/fatcat!15
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 4 | ||||
-rw-r--r-- | python/fatcat_web/templates/release_view.html | 18 |
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> </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> |