From cc6a2d085a288aaa312afdf4064f57ecde2a8715 Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Mon, 28 Oct 2024 12:48:01 -0400 Subject: [PATCH] Don't generate an empty page preview image for EEBO page results --- ppa/archive/templates/archive/snippets/page_preview.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ppa/archive/templates/archive/snippets/page_preview.html b/ppa/archive/templates/archive/snippets/page_preview.html index a04404bd..c2197449 100644 --- a/ppa/archive/templates/archive/snippets/page_preview.html +++ b/ppa/archive/templates/archive/snippets/page_preview.html @@ -19,6 +19,7 @@ {% gale_page_url source_url page.order as page_link %} {# currently no other sources with page level content, so no other case needed #} {% endif %} + {% if source == 'HathiTrust' or source == 'Gale' %} {# we currently only support page images for these two #}
@@ -39,9 +40,11 @@ page {{ page.label }} {% endwith %} + {% else %} {% endif %}
+ {% endif %} {% if page.title %}p. {{ page.title }}{% endif %}