You are viewing the PKP Support Forum | PKP Home Wiki

Validation of submission

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

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.

Validation of submission

Postby gmurali » Wed Aug 04, 2004 12:01 pm

I just downloaded and setup OJS. Setting up took me about 15 minutes from start to finish. Great work guys. Couple of questions...

By default all the submissions have to be in some specific format (MS-Word,...). Also I realise, that this is not actually checked by the system. I want to change the format to PDF only, and also check that the file uploaded was a PDF file.

Changing it to PDF only is simple (just modify the text in the locale/*/{admin,user}.inc.php.
I would also like to be able to check if the file uploaded is indeed a PDF file. I can write a php function which checks if a file is of a given format (one system call should do it). I can put that function in /include/fmtcheck.inc.php (new file).

My question is this: which file should be modified to call this function? (/admin/author/something?). And any thing I should look out for (so as to not break the existing code). Also I have never written code in PHP (but have done lots of scripting and shell programming).

Also, once I do this, would you add this feature to OJS version 2.0: Allow the journal configuration to specify which type of files can be uploaded and automatically check if the file uploaded are indeed of the correct type.

- Murali

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest