diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-23 17:51:22 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-23 17:51:41 -0700 |
commit | 05665c448e846e4834fa59dfe3cd0f11ac789ac9 (patch) | |
tree | 789ed4cb850f805e022e857359ca653060882550 /python/fatcat_web/templates/openlibrary_view_fuzzy_refs.html | |
parent | 5fde5d74738ce3c834248c12bae1860840a1287a (diff) | |
download | fatcat-05665c448e846e4834fa59dfe3cd0f11ac789ac9.tar.gz fatcat-05665c448e846e4834fa59dfe3cd0f11ac789ac9.zip |
refs: generalize web endpoints; JSON content negotiation; openlibrary inbound view; etc
Diffstat (limited to 'python/fatcat_web/templates/openlibrary_view_fuzzy_refs.html')
-rw-r--r-- | python/fatcat_web/templates/openlibrary_view_fuzzy_refs.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/openlibrary_view_fuzzy_refs.html b/python/fatcat_web/templates/openlibrary_view_fuzzy_refs.html new file mode 100644 index 00000000..161a7b50 --- /dev/null +++ b/python/fatcat_web/templates/openlibrary_view_fuzzy_refs.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% import "refs_macros.html" as refs_macros %} + +{% block title %}Open Library Refs{% endblock %} + +{% block fullbody %} +<h1 class="ui header"> + {% if hits.result_refs and hits.result_refs[0].ref.target_unstructured %} + <i>{{ hits.result_refs[0].ref.target_unstructured }}</i> + {% endif %} + <span class="sub header"><a href="https://openlibrary.org/works/{{ openlibrary_id }}"><code>https://openlibrary.org/works/{{ openlibrary_id }}</code></a></span> +</h1> + +{% if direction == "in" %} + <h3>Cited By</h3> + <p>This page lists references to this book from other works (eg, journal articles). +{% elif direction == "out" %} + <h3>References</h3> + <i>Refernces from this book to other entities.</i> +{% endif %} + +{% if hits.result_refs %} + {{ refs_macros.refs_table(hits, direction) }} +{% else %} + <br><br><p><b>None found</b> +{% endif %} + +{% endblock %} + |