You are viewing the PKP Support Forum | PKP Home Wiki

Publishing multiple jpegs in article - File storage

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Publishing multiple jpegs in article - File storage

Postby barkas » Fri Feb 23, 2007 4:04 am


I am using OJS to publish some journals. Just for the record, the journals are very old (100 years :), discontinued, so OJS is going to act only as a repository and all the submission-review processes are not my concern. The journals are scanned from original material, and are stored as single jpg files, one for each page of the journal articles. So, I have a quite large quantity of files to manage :)
Till now the files are hosted in ad-hoc web application (PHP with MySQL). I am trying to migrate the databases and the files to OJS.
Database migration is done succesfully. I have managed to transfer all the info and currently I can display in each article a number of JPG links equal to the article's pages. Now I need to transfer the files.
Here are my questions:
1) My files have a name of "sth****.jpg" (where sth=something and ***=inc number of files). OJS follows a format of "1-2-1-PB.jpg" for example. Do I have to make the conversions (not possible for that amount of files) or I can leave the original filenames?
2) Can someone explain how OJS stores files? From a few examples I saw that OJS creates lots of directories, according to journal_id, issues etc, which is very complicated. Is there a way to bypass it and retrieve files from a single directory? (or one dir for each journal)
3) Any ideas in general???

I am new to OJS and I am currently working on that problem, but I would like to hear other opinions in parallel to my work.
Thank you in advance.
Posts: 1
Joined: Fri Feb 23, 2007 3:41 am

Postby asmecher » Fri Feb 23, 2007 10:56 am

Hi barkas,

I'd strongly suggest looking into the Articles & Issues import/export plugin, which accepts XML files conforming to plugins/importexport/native/native.dtd for import. Using this import technique will save you a lot of headaches wading through the OJS code and it won't tie you to a particular version of OJS for your import tasks.

Alec Smecher
Open Journal Systems Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests