Forum - XSL Script for OAI Harvester Transformation HTTP client needed
- This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by Anonymous.
- AuthorPosts
- April 9, 2018 at 4:55 pm #34496AnonymousInactive
Due to the fact that a direct link to the files from external repository isn’t provided in the metadata XML and it’s impossible to combine it from single parts (like in your xsl transformation examples) the only way to get the the link with file extension is the URL transformation directly in XSLT with a help of http client from xslt processor.
I want to transform the following URL: https://lazardb.gbv.de/api/v1/objects/uuid/b79de4e5-8d1f-4840-b85f-e052db92a52f/file/id/1001974122/file_version/name/small/disposition/inline to URL with file extension https://lazardb.gbv.de/eas/partitions-inline/48/1001/1001974000/1001974122/9a4191c7ce7414650d36ac9bc1c2b012261013ad/image/png/8223@33a8cae1-a9fa-4655-8c3d-b71241bbc99b_1001974122_small.png
As far as I know Rosetta suports only XSLT 1.0 now. For this URL transformation HTTP Client Module for XSLT processor Saxon is needed. Would it be possbile to perform HTTP transformation using Rosetta harvester transformation XSL Script with HTTP client or such HTTP transformation features aren’t/will not be supported at all? The exact scenario what I want to do is described here as an answer:
https://stackoverflow.com/questions/49496923/how-to-transform-url-with-inline-attachment-to-url-with-file-extension-in-xslMaybe you have some advices for us how to do it another way?
April 10, 2018 at 5:23 am #36446AnonymousInactiveOleg,
The OAI-PMH harvester simply creates a SIP containing a metadata file with file URLs. The converter, which processes the SIP, will acquire the files using the URLs, and they support HTTP redirection. Since your first URL redirects to the second, offhand I see no reason why it should not work without attempting any transformation at all. If you tried and it doesn’t work, please contact support.
Opher
- AuthorPosts
- You must be logged in to reply to this topic.