Closed b2d3c closed 1 day ago
Do we have a type for the PDF? Assuming the PDF should be added through
$subject rico:hasInstantiation $value .
$value rico:hasCarrierType spav:<carrierTypeForPDF>
update: I have started including a PDF viewer but need to make some server configuration changes to make it work. Test here: https://www.dev.performing-arts.ch/resource/sapa:pdfTest
@b2d3c I managed to adjust the configuration at our end, however the PDFs are not loading from the SAPA cloud due to CORS errors. Is it possible to adjust the CORS headers on the cloud?
Do we have a type for the PDF? Assuming the PDF should be added through
$subject rico:hasInstantiation $value . $value rico:hasCarrierType spav:<carrierTypeForPDF>
I have ask for it Sparna : https://github.com/sapa/swiss-performing-arts-documentation/issues/3#issuecomment-2093117351
@b2d3c I managed to adjust the configuration at our end, however the PDFs are not loading from the SAPA cloud due to CORS errors. Is it possible to adjust the CORS headers on the cloud?
I have send a mail today to oriented.net who host our cloud. They will contact you or make directly the changes.
Answer from Oriented.net :
There is an app "WebAppPassword" that you can enable on your wölkli private installation (cloud.sapa.swiss) that sets allowed origins for your installation:
https://apps.nextcloud.com/apps/webapppassword
Could you try installing this app and configure it to allow your application and see if that works?
It seems to me a little complex. I would propose to display in a first time only the link. See #595
It should be a solution through our server (via S3). @bardocuteam will send you, Florian, a new URL to check.
Hey @fkraeutli, here is an URL to a PDF on the media server: https://media.performing-arts.ch/document/SAPA_Jahresbericht_2022_FR-1-1.pdf
@bardocuteam Perfect, that is working
Dear @fkraeutli could you give us the link to the exemple ?
I update the test link and it works: https://www.dev.performing-arts.ch/resource/sapa:pdfTest Where do you want to add the viewer in the template(s)?
You can display it in the same place of Viewer IIIF in Layout:Record.
In Form:Record, you can add the Feld in IIIF zone. Label "PDF/S3".
Preview added and deployed to Dev
Great!
3 Remarks :
1) You choose to use in Form the same box as SAPA Cloud. It's good but we have to change label. I propose "Related Documents (SAPA Cloud, S3)"
2) We don't need a label in Layout. No "PDF/S3"
3) Could we have a size of the Viewer more in A4 proportions?
Changed and deployed to Dev
Remark 1 : the changed label "Related Documents (SAPA Cloud, S3)"
in Form is missing
Remark 2 : Done!
Remark 3 : ok. It's not perfekt but it's already better
After the fix of Remark 1 : you cloud deploy in PROD !
Thanks a lot it' great.
Done
I see that the viewer in a empty form, come too in case of no declaration.
PROD : http://data.performing-arts.ch/r/7831486c-8693-4d46-aedc-7b89fb13c0d7
The issue is that the carrier type we use for PDF (spav:fvonl
) is also used for other things. I added a filter that queries for the extension .pdf
to account for this.
Changed and deployed to Dev and Prod
Thanks a lot !
After #532 #492 ,
We choice to use
nextcloud serveur of SAPA (https://cloud.sapa.swiss)S3 to store PDF. Voir https://github.com/sapa/performing-arts-ch-import/issues/51We want to add :
Form:RecordResource
, a Feld to be able to add the link to a PDF document hosting onSAPA cloud (ex: https://cloud.sapa.swiss/s/Bpoo56qtRyjtWdA)S3 ->create a rico:InstanTiation. As for IIIF (https://www.performing-arts.ch/resource/?uri=http%3A%2F%2Fmedia.performing-arts.ch%2Fiiif%2F3%2Fimage%252F181-10-1_001)Layout:RecordResource
, add a preview from PDF and a link to the resource on SAPA cloud.