{% extends 'base.html.twig' %} {% block title %}Recherche | {{ query }}{% endblock %} {% block body %}

Résultats pour : {{ query }}

{{ datas.totalItems }} résultats trouvés

{% for book in datas.items %} {% include '/apiSearch/modal.html.twig' with { 'loop': loop} %}

{{ book.volumeInfo.title }}

{% if book.volumeInfo.authors is defined %} {{ book.volumeInfo.authors | join(", ") }} {% endif %}
{% if book.volumeInfo.imageLinks is defined and book.volumeInfo.imageLinks.smallThumbnail is defined %} {% else %} {% endif %}
{% if book.volumeInfo.publisher is defined %}

Aux éditions : {{ book.volumeInfo.publisher }}

{% endif %} {% if book.volumeInfo.publishedDate is defined %}

Date de publication : {{ book.volumeInfo.publishedDate }}

{% endif %} {% if book.volumeInfo.categories is defined %} {% for categorie in book.volumeInfo.categories %}

Catégorie : {{ categorie }}

{% endfor %} {% endif %}

Nombres de pages : {{ book.volumeInfo.pageCount }}

Description : {% if book.searchInfo is defined %} {{ book.searchInfo.textSnippet | raw }} {% endif %}

{% if app.user %} {% set isLiked = book.id in favoris|map(f => f.getIdGoogle()) %} {% endif %}
{% endfor %} {% set nb_items = datas.totalItems %} {% set nb_pages = nb_items / 10 %} {% set current_page = app.request.get('page') ? app.request.get('page') : 1 %} {% if nb_pages > 1 %}
{% endif %}
{% endblock %}