{% extends 'layout.html' %} {% load i18n %} {% load markdown %} {% load humanize %} {% load utilities %} {% load book_display_tags %} {% block title %}{{ author.name }}{% endblock %} {% block content %}

{{ author.name }}

{% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% endif %}
{% firstof author.aliases author.born author.died as details %} {% firstof author.wikipedia_link author.openlibrary_key author.inventaire_id author.isni as links %} {% if details or links %}
{% if details %}

{% trans "Author details" %}

{% if author.aliases %}
{% trans "Aliases:" %}
{% include "snippets/trimmed_list.html" with items=author.aliases itemprop="alternateName" %}
{% endif %} {% if author.born %}
{% trans "Born:" %}
{{ author.born|naturalday }}
{% endif %} {% if author.died %}
{% trans "Died:" %}
{{ author.died|naturalday }}
{% endif %}
{% endif %} {% if links %}

{% trans "External links" %}

{% if author.wikipedia_link %}
{% trans "Wikipedia" %}
{% endif %} {% if author.isni %} {% endif %} {% trans "Load data" as button_text %} {% if author.openlibrary_key %}
{% trans "View on OpenLibrary" %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% include "author/sync_modal.html" with source="openlibrary.org" source_name="OpenLibrary" id="openlibrary_sync" %} {% endif %}
{% endif %} {% if author.inventaire_id %}
{% trans "View on Inventaire" %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% include "author/sync_modal.html" with source="inventaire.io" source_name="Inventaire" id="inventaire_sync" %} {% endif %}
{% endif %} {% if author.librarything_key %} {% endif %} {% if author.goodreads_key %}
{% trans "View on Goodreads" %}
{% endif %}
{% endif %}
{% endif %}
{% if author.bio %} {% include "snippets/trimmed_text.html" with full=author.bio trim_length=200 %} {% endif %}

{% blocktrans with name=author.name %}Books by {{ name }}{% endblocktrans %}

{% for book in books %} {% with book=book|author_edition:author %}
{% include 'landing/small-book.html' with book=book %}
{% include 'snippets/shelve_button/shelve_button.html' with book=book %}
{% endwith %} {% endfor %}
{% include 'snippets/pagination.html' with page=books %}
{% endblock %}