abstract as a required entry

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.
Posts: 17
Joined: Wed Nov 16, 2005 12:15 pm

abstract as a required entry

Postby Liz » Mon Jan 30, 2006 12:47 pm


I am wondering if it is possible to change the abstract to a required, asterisked entry in the author submission process as this is the preferred submission method for our journal here.



Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Tue Jan 31, 2006 11:50 am

Hi Liz,

You'll need to change the code slightly for this. To make it a required field for the Author submission form, find these lines in classes/author/form/submit/AuthorSubmitStep2Form.inc.php near the top:

Code: Select all

// Validation checks for this form
$this->addCheck(new FormValidatorCustom($this, 'authors', 'required', 'author.submit.form.authorRequired', create_function('$authors', 'return count($authors) > 0;')));
$this->addCheck(new FormValidatorArray($this, 'authors', 'required', 'author.submit.form.authorRequiredFields', array('firstName', 'lastName', 'email')));
$this->addCheck(new FormValidator($this, 'title', 'required', 'author.submit.form.titleRequired'));

These lines check that at least one author exists and that first name, last name, and email are specified, and that the title was specified. Below the lines quoted above, add a new line:

Code: Select all

$this->addCheck(new FormValidator($this, 'abstract', 'required', 'author.submit.form.abstractRequird'));
You'll also need to add the localization key author.submit.form.abstractRequired to locale/en_US/locale.xml -- find one of the keys in the quoted code above to use as an example.

Alec Smecher
Open Journal Systems Team

Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests