From 866bc6ad0c3e17f714b88e491e177fd9562869af Mon Sep 17 00:00:00 2001 From: blagoja Date: Tue, 12 Dec 2023 00:51:50 +0100 Subject: [PATCH] Fix for pdf_a view create --- ckanext/pdfview/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/pdfview/plugin.py b/ckanext/pdfview/plugin.py index 0036537..087f0aa 100644 --- a/ckanext/pdfview/plugin.py +++ b/ckanext/pdfview/plugin.py @@ -29,7 +29,7 @@ def info(self): } def can_view(self, data_dict): - return data_dict["resource"].get("format", "").lower() == "pdf" + return data_dict["resource"].get("format", "").lower() in ["pdf", "pdf/a"] def view_template(self, context, data_dict): return "pdf_view.html"