by p_alexander » Thu Mar 20, 2008 5:38 pm
I was looking at integrating ipaper for viewing PDFs on our journal site. If successful, I would love to create a plugin and share the functionality. I'm looking for some helpful hints in the right direction. I'm just getting back into PHP after a sabbatical so bear with me if I have some errors and downright stupidity. I'm not an OJS expert, although I have run the system since version 1.
The main issue I am having is figuring out how to link to the PDF files. I can see how the system serves them up as a download or a viewable file, but it looks like it never gives away the actual file URL, any interaction with the file is handled by the system. I'm assuming this is because some sites run on a subscription basis and wouldn't like those links just hanging out there. In fact, if I am understanding correctly, the files can be stored in a directory no accessible through the web server (although still accessible to the OJS system).
Now, Scribd's ipaper platform is obviously going to need access to the file in order to pull it into their system. I suppose the first requirement, then, is that you've got the files available in a "public" folder on the webserver and aren't restricting access to that folder (this would be the files/journals/$ folder). Assuming that is true, is there a variable/function that will return a URL for a PDF file rather than running it through the view/download routines?
That's enough for now and I hope it all makes sense. Thanks for the help and, again, sorry if I'm not understanding as much as I should. I'd be happy to clarify and/or add information as necessary.