Software Hosting and Development Services available at PKP Publishing Services
As the developers of Open Journal Systems, Open Conference Systems, Open Harvester Systems, and Open Monograph Press, the PKP team are experts in helping journal managers and conference organizers make the most of their online publishing projects. PKP Publishing Services offers support for:
As a customer of PKP Publishing Services, you will not only receive direct, personalized support from the PKP Development Team, but will be contributing to the ongoing development of the PKP applications. All funds raised by PKP Publishing Services go directly toward enhancing our free, open source software. For more information, please contact us.
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, michael, jheckman, barbarah, btbell, bdgregg, 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.
by faga » Sun Sep 24, 2006 2:09 pm
Hello everyone:
The backbone of the peer-review process lies within the reviewers. In our ojs v2.1.1.0 installation, we have some reviewers who do not have a description of their “Reviewing interest”, which makes it very difficult to establish a proper match with the paper under review. How can we make "Bio statement" a "required field" for Reviewers so that when a person volunteers to be a reviewer, the website will not let the registration go through until those fields have been completed.
Regards,
Abraham
-
faga
-
- Posts: 11
- Joined: Thu Mar 31, 2005 5:54 pm
- Location: Beaumont, Alberta
by asmecher » Mon Sep 25, 2006 1:44 am
Hi Abraham,
To make the "Reviewing Interests" a required field on the registration form, you'll need to do the following:
- Add a form validator to classes/user/form/RegistrationForm.inc.php, below the line reading:
- Code: Select all
$this->addCheck(new FormValidator($this, 'lastName', 'required', 'user.profile.form.lastNameRequired'));
Add the following line:- Code: Select all
$this->addCheck(new FormValidator($this, 'interests', 'required', 'user.profile.form.interestsRequired'));
- Now add a new line to locale/en_US/locale.xml below the line:
- Code: Select all
<message key="user.profile.form.lastNameRequired">A last name is required.</message>
Add this line:- Code: Select all
<message key="user.profile.form.interestsRequired">Reviewing interests are required.</message>
If you like, you can also follow a similar process to add requirements to other forms.
Regards,
Alec Smecher
Open Journal Systems Team
-
asmecher
-
- Posts: 5762
- Joined: Wed Aug 10, 2005 12:56 pm
-
by Felicia » Fri Jul 24, 2009 7:30 pm
I tried this, but with the 'biography' field rather than 'interests' field. But I keep getting these error messages:
- Code: Select all
Notice: Array to string conversion in /home/newsolut/public_html/classes/form/validation/FormValidator.inc.php on line 65
Warning: Cannot modify header information - headers already sent by (output started at /home/newsolut/public_html/classes/form/validation/FormValidator.inc.php:65) in /home/newsolut/public_html/classes/template/TemplateManager.inc.php on line 233
Warning: Cannot modify header information - headers already sent by (output started at /home/newsolut/public_html/classes/form/validation/FormValidator.inc.php:65) in /home/newsolut/public_html/classes/template/TemplateManager.inc.php on line 236
-
Felicia
-
- Posts: 5
- Joined: Thu Jul 23, 2009 4:54 pm
by jmacgreg » Tue Jul 28, 2009 10:11 am
Hi Felicia,
This is a pretty old thread -- chances are the code has changed significantly from 2006. There should be other instructions on the forum about making required fields, but if you can't find anything, let us know.
Cheers,
James
-
jmacgreg
-
- Posts: 4153
- Joined: Tue Feb 14, 2006 10:50 am
-
by Felicia » Tue Jul 28, 2009 2:07 pm
Resolve provided. Instead of FormValidator I required FormValidatorLocale. Thanks.
-
Felicia
-
- Posts: 5
- Joined: Thu Jul 23, 2009 4:54 pm
by ushasharma84 » Sun Sep 12, 2010 7:20 am
hi
i am using ojs-2.3.1-2. I am trying to make Bio Statement a required field but unable to find <message key="user.profile.form.lastNameRequired"> in locale/en_US/locale.xml. So want to know where do i need to add <message key="user.profile.form.bioStatementRequired"> .
Thanks in advance.

-
ushasharma84
-
- Posts: 108
- Joined: Wed Mar 31, 2010 11:58 pm
- Location: delhi
by jmacgreg » Mon Sep 13, 2010 9:04 pm
Hi ushasharma84,
The lastNameRequired key can be found in locale/en_US/user.xml.
Cheers,
James
-
jmacgreg
-
- Posts: 4153
- Joined: Tue Feb 14, 2006 10:50 am
-
by lightshadow306 » Wed Aug 31, 2011 8:12 am
asmecher wrote:Hi Abraham,
To make the "Reviewing Interests" a required field on the registration form, you'll need to do the following:
- Add a form validator to classes/user/form/RegistrationForm.inc.php, below the line reading:
- Code: Select all
$this->addCheck(new FormValidator($this, 'lastName', 'required', 'user.profile.form.lastNameRequired'));
Add the following line:- Code: Select all
$this->addCheck(new FormValidator($this, 'interests', 'required', 'user.profile.form.interestsRequired'));
- Now add a new line to locale/en_US/locale.xml below the line:
- Code: Select all
<message key="user.profile.form.lastNameRequired">A last name is required.</message>
Add this line:- Code: Select all
<message key="user.profile.form.interestsRequired">Reviewing interests are required.</message>
If you like, you can also follow a similar process to add requirements to other forms.
Regards,
Alec Smecher
Open Journal Systems Team
I think we have better to check whether the new user register as a reviewer before make review interest as a required field, but how can we do so ? Thanks
-
lightshadow306
-
- Posts: 63
- Joined: Wed Nov 05, 2008 8:16 am
Return to OJS Technical Support
Who is online
Users browsing this forum: No registered users and 3 guests