{# Card de résultat auteur dans /search?type=authors. Args : author = AuthorResult (name, photoUrl, publicId). publicId présent -> fiche existante ; sinon -> /authors/lookup (matérialise au clic). Rendu identique BDD/externe. #} {% set href = author.publicId ? path('app_author_show', { publicId: author.publicId }) : path('app_author_lookup', { name: author.name }) %}
  • {% if author.photoUrl %} {% else %} {% endif %}

    {{ author.name }}