OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Is there any way to impose a character limit - w/o cutting o

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.

Is there any way to impose a character limit - w/o cutting o

Postby elena » Wed Nov 14, 2007 6:03 am

Hi there,

I was wondering if there is any built in way to impose a limit on abstract length, by number of characters is the most sensible?

Usually if you just put a limit in the mysql table it just chops off the abstract at the character limit, and we would much prefer it to provide an error so our poor author doesn't get a nasty surprise later.

Thanks and regards!
elena
 
Posts: 7
Joined: Tue Sep 04, 2007 9:46 pm

Re: Is there any way to impose a character limit - w/o cutting o

Postby asmecher » Wed Nov 14, 2007 11:14 am

Hi elena,

I'd suggest adding a check to the submission and metadata edit forms, implemented in classes/author/form/submit/AuthorSubmitStep2Form.inc.php and classes/submission/form/MetadataForm.inc.php (respectively). You can use the FormValidatorLength check, which is used in classes/user/form/ChangePasswordForm.inc.php (if you'd like some sample code).

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


Return to OJS Technical Support

Who is online

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