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
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.
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!
- Posts: 7
- Joined: Tue Sep 04, 2007 9:46 pm
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).
Public Knowledge Project Team
- Posts: 10015
- Joined: Wed Aug 10, 2005 12:56 pm
Return to OJS Technical Support
Who is online
Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 guests