I am now able to get an pdf viewer (by adding Viewer JS as shown below and as module), but the universal viewer (showing images of the pdf) is also still shown, see example
I have configured my resource pages as follows:
How can I tell the Universal Viewer module it should not render PDF files?
I wish you could add some render logic to Regions (e.g. if item has PDF then just use Viewer JS and not Universal Viewer, but use Universal Viewer if item only has IIIF image)…but I don’t think you can. If you just want to hide the universal viewer (and don’t mind that it still loads in memory), you can use CSS, like:
I’ve worked with other systems that have a global setting that allows you to set the default file viewer based on extensions but also lets you override that at the individual file level so you can choose a viewer. I’m not aware of a similar feature in Omeka S, but it would be nice.