{% extends 'index.html' %} {% macro tree(id, item) %} {% if item is iterable %} {{id}}: {% else %} {{id}}: {{item}} {% endif %} {% endmacro %} {% block content %}
{{actionTitle}} in {{dbConfig.name}} Language Author {{ include('links.html', {itemId: authorId}) }}
{% for type in identifiers %} {% endfor %} {% for item in books %} {% for type in identifiers %} {% endfor %} {% endfor %}
Id Title Action{{type}}
{{item.id}} {{item.title}} {% if bookId == item.id %}Search{% else %}Search{% endif %} {% if item.identifiers[type] is defined %} {% set identifier = item.identifiers[type] %} {% if type == 'ID:' or type == identifierType %} {% set label = identifier.value %} {% else %} {% set label = ' Y ' %} {% endif %} {% if identifier.url %} {{label}} {% else %} {{label}} {% endif %} {% endif %}
{% if authorId %}

Google Books

{% if matched %} Kind: {{matched.kind}}
Total: {{matched.totalItems}}
{% endfor %}
Author Image Title Date Publisher Action Summary
{{item.volumeInfo.authors|join(', ')}} {{item.volumeInfo.title}} G {{item.volumeInfo.publishedDate}} {{item.volumeInfo.publisher}} Match {{item.searchInfo.textSnippet|raw}}
{{item.volumeInfo.description}} {#
    {% for key, value in item.volumeInfo %}
  • {{ _self.tree(key, value) }}
  • {% endfor %}
#}
{% else %} No match found {% endif %}
{% endif %} {% endblock content %}