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

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: 9214
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

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