{% extends "catalog/base.html" %} {% load static %} {% block title %}Add book{% endblock %} {% block content %}

Add a book

{% for e in isbn_form.isbn.errors %}
{{ e }}
{% endfor %} {% if form %} {% if source == "cache" %}
Metadata loaded from the local lookup cache.
{% elif source == "openlibrary" %}
Metadata fetched from Open Library. Check it, then save.
{% elif source %}
No metadata available ({{ source }}). Enter the details manually.
{% endif %} {% if dups %}
Possible duplicates: {% for b, why in dups %}{{ b.title }} ({{ why }}){% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %}
{% csrf_token %} {{ form.as_p }} {% if confirm_copies %}{% endif %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}