You are viewing the PKP Support Forum | PKP Home Wiki

Quick submit back issues for authors without e-mail

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.

Quick submit back issues for authors without e-mail

Postby dankomed » Tue Feb 25, 2014 1:14 pm

I have tried several ways to quick submit articles in which at least one author is without e-mail, e.g. diseased person, and got error.
1. The Empty Author Email plugin does not work with Quick submit.
2. The proposed by asmecher edit of: classes/submission/form/MetadataForm.inc.php
Code: Select all
$this->addCheck(new FormValidatorArrayCustom($this, 'authors', 'required', 'author.submit.form.authorRequiredFields', create_function('$email, $regExp', 'return String::regexp_match($regExp, $email);'), array(ValidatorEmail::getRegexp()), false, array('email')));

also does not work. I replaced 'required' with 'optional' as suggested but invalid email error ocurred. I even deleted the whole line from the .php file, cleared the history of the browser, and still got invalid e-mail error using the Quick submit.

Is there a way to disable globally this compulsory e-mail check, until I publish the back issues, and then enable it again. I suspect the file: classes/submission/form/MetadataForm.inc.php is not the only code that must be edited when using the Quick submit plugin.

I am using freshly installed latest version ojs 2.4.3, and there are 3 different journals in one ojs database. Is it possible that somehow the php files that need to be edited have tripled. I ask this because plugin configuration appears to be journal specific, not global to all journals in the ojs.

Last edited by dankomed on Tue Feb 25, 2014 11:58 pm, edited 1 time in total.
Posts: 46
Joined: Thu May 03, 2012 8:09 pm

Re: Quick submit back issues for authors without e-mail

Postby asmecher » Tue Feb 25, 2014 3:19 pm

Hi dankomed,

The Quick Submit plugin is implemented separately from the submission form etc.; the check you're looking for is in plugins/importexport/quickSubmit/QuickSubmitForm.inc.php.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Quick submit back issues for authors without e-mail

Postby dankomed » Tue Feb 25, 2014 4:52 pm

Dear Alec,

Thanks for the superb help as always !!!

Instructions for those who need the Quick Submit plugin to work without e-mail inputs:

Step 1: Go to /ojs/plugins/importexport/quickSubmit/
Step 2: Rename QuickSubmitForm.inc.php to QuickSubmitForm.inc.php.BACKUP
Step 3: Upload and unzip the customized QuickSubmitForm.inc.php to the same directory

(4.89 KiB) Downloaded 61 times

Note: the asterisk (*) after the E-mail will be still there, but you will be able to save the submission even with empty E-mail fields.
Posts: 46
Joined: Thu May 03, 2012 8:09 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests