diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-05 15:56:52 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-05 15:56:52 -0700 |
commit | 388503d92ff8a1f26a0376cc42cefb077a1d6401 (patch) | |
tree | b2329cb6951bfbc5f98a0663f2e4b7991a1949ca /python/fatcat_web/templates/creator_lookup.html | |
parent | 805a8b1001754fb8397e539dbc15a6cfd65661f2 (diff) | |
download | fatcat-388503d92ff8a1f26a0376cc42cefb077a1d6401.tar.gz fatcat-388503d92ff8a1f26a0376cc42cefb077a1d6401.zip |
more lookup views
Diffstat (limited to 'python/fatcat_web/templates/creator_lookup.html')
-rw-r--r-- | python/fatcat_web/templates/creator_lookup.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/creator_lookup.html b/python/fatcat_web/templates/creator_lookup.html new file mode 100644 index 00000000..741efbda --- /dev/null +++ b/python/fatcat_web/templates/creator_lookup.html @@ -0,0 +1,54 @@ +{% extends "base.html" %} +{% import "entity_macros.html" as entity_macros %} + +{% block body %} + +<h1>Lookup Creator by Identifier</h1> + +{% if lookup_error == 400 %} +<div class="ui error message"> +<div class="header">400: Syntax Error</div> +<b>{{ lookup_key }}:{{ lookup_value }}</code></b> doesn't look right to us. See +below for details. +</div> +{% elif lookup_error == 404 %} +<div class="ui error message"> +<div class="header">404: Not Found</div> +Couldn't find a creator with that identifier (<b><code>{{ lookup_key }}:{{ +lookup_value }}</code></b>). If you think it should be in the catalog, you could +search for an existing record missing that identifier, or create a new creator +entity. +{% if lookup_key == "orcid" %} +<p>You can check if it is a registered ORCiD: +<b><a href="https://orcid.org/{{ lookup_value }}">https://orcid.org/{{ lookup_value }}</a></b> +{% elif lookup_key == "wikidata_qid" %} +<p>You can check if it is a real Wikidata entity by visiting: +<b><a href="https://www.wikidata.org/wiki/{{ lookup_value }}/">https://www.wikidata.org/wiki/{{ lookup_value }}/</a></b> +{% endif %} +</div> +{% endif %} + +<div class="ui top attached segment"> + +<h2>ORCID</h2> +<p><a href="https://en.wikipedia.org/wiki/ORCID">Open Researcher and +Contributor ID</a> is used to unambiguously refer to a research author. They +are free to register. +{{ entity_macros.lookup_form("creator", "orcid", "0000-0002-1825-0097", lookup_key, lookup_value, lookup_error) }} +<i> Must include the dashes</i> + +</div> +<div class="ui attached bottom segment"> + +<h2>Wikidata QID</h2> +<p><a href="https://en.wikipedia.org/wiki/Wikidata#Items">Wikidata</a> is the +structured, machine-readable database that complements Wikipedia. Entities, +which can include bibliographic entities like books and papers, are identified +by a "QID". Fatcat also links releases (papers, books) and container (journal) +entities to Wikidata by QID. Anybody can edit Wikidata and create QIDs. +{{ entity_macros.lookup_form("creator", "wikidata_qid", "Q94324", lookup_key, lookup_value, lookup_error) }} +<i> Include the "Q" prefix.</i> + +</div> + +{% endblock %} |