From 05665c448e846e4834fa59dfe3cd0f11ac789ac9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 23 Jul 2021 17:51:22 -0700 Subject: refs: generalize web endpoints; JSON content negotiation; openlibrary inbound view; etc --- .../templates/openlibrary_view_fuzzy_refs.html | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 python/fatcat_web/templates/openlibrary_view_fuzzy_refs.html (limited to 'python/fatcat_web/templates') 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 %} +

+ {% if hits.result_refs and hits.result_refs[0].ref.target_unstructured %} + {{ hits.result_refs[0].ref.target_unstructured }} + {% endif %} + https://openlibrary.org/works/{{ openlibrary_id }} +

+ +{% if direction == "in" %} +

Cited By

+

This page lists references to this book from other works (eg, journal articles). +{% elif direction == "out" %} +

References

+ Refernces from this book to other entities. +{% endif %} + +{% if hits.result_refs %} + {{ refs_macros.refs_table(hits, direction) }} +{% else %} +

None found +{% endif %} + +{% endblock %} + -- cgit v1.2.3