Hello All,
I've defined a project resource at the image session level so I can use the ''Upload Addition files" option to upload redacted PDF imaging reports. These upload fine and then they are visible in the file manager for the session in question. When I click on the link to the PDF the file downloads but I want this to open in a separate window or browser tab as when I click on a link to a single image within the session.
I'm using Chrome I have installed the PDF extension.
I'm running a fresh 1.8.8 in docker on my local machine
I have tried:
I have also tried inspecting the code to see that the image download does which uses ....
<a onclick="window.open('uri?format=image/jpeg'); return false;">Image</a>
I tried manually editing the HTLM for the pdf in inspect which looks like this...
<a target="_blank" onclick="location.href='/data/experiments/XNAT_test1_E00012/resources/30/files/XNAT-OpenClinica.pdf';">XNAT-OpenClinica.­pdf</a>
... with the onclick="window.open... but I got the same download behaviour. I'm certainly not a HTML/ Javascript person so I'm not that surprised it didnt work, but hey, it was worth a shot!
Would be great if anyone has any pointers as how I can get PDFs to open and not download.
Regards
John