OJS OCS OMP OHS

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
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.

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.

Regards,
Last edited by dankomed on Tue Feb 25, 2014 11:58 pm, edited 1 time in total.
dankomed
 
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.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
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

QuickSubmitForm.inc.zip
(4.89 KiB) Downloaded 62 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.
dankomed
 
Posts: 46
Joined: Thu May 03, 2012 8:09 pm


Return to OJS Technical Support

Who is online

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