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
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 1
Joined: Fri Feb 23, 2007 3:41 am

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: 10015
Joined: Wed Aug 10, 2005 12:56 pm

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

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 0 guests