summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/openlibrary_view_fuzzy_refs.html
blob: 161a7b50bae9d9791f435cfa300496f5c9dbafc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 %}