From: Radek Czajka <rczajka@rczajka.pl> Date: Fri, 28 Jul 2023 12:07:57 +0000 (+0200) Subject: fixes X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/ae2a8df21e1038038cf898eb5a9d09b9ecc33f8f fixes --- diff --git a/src/cover/templates/cover/image_detail.html b/src/cover/templates/cover/image_detail.html index 2d43f9e0..c357ff0e 100644 --- a/src/cover/templates/cover/image_detail.html +++ b/src/cover/templates/cover/image_detail.html @@ -72,11 +72,6 @@ {% if object.book_set.exists %} <ul style="list-style: none; padding: 0; display: flex; gap: 10px;"> {% for book in object.book_set.all %} - <li> - <a href="{{ book.get_absolute_url }}"> - <img src="{{ book.cover.url }}?{{ object.etag }}" alt="{{ book }}"> - </a> - </li> <li> <a href="{{ book.get_absolute_url }}" title="{{ book }}"> <img src="{{ book.cover.url }}?{{ object.etag }}" alt="{{ book }}"> diff --git a/src/cover/views.py b/src/cover/views.py index 82bc911f..39b12f91 100644 --- a/src/cover/views.py +++ b/src/cover/views.py @@ -105,6 +105,11 @@ def image(request, pk): if not request.accepts('text/html') and request.accepts('application/json') or request.GET.get('format') == 'json': return JsonResponse({ + 'title': img.title, + 'author': img.author, + 'license_name': img.license_name, + 'license_url': img.license_url, + 'source_url': img.source_url, 'attribution': img.attribution, 'cut_left': img.cut_left, 'cut_right': img.cut_right, diff --git a/src/wlxml/views.py b/src/wlxml/views.py index 2039569d..3784b777 100644 --- a/src/wlxml/views.py +++ b/src/wlxml/views.py @@ -60,7 +60,7 @@ VALUE_TYPES = { 'source': '/catalogue/terms/thema/', } }, - ThemaCategory: { + MainThemaCategory: { 'autocomplete': { 'source': '/catalogue/terms/thema-main/', }