Word Count function problem

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, 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: 5
Joined: Wed Jan 20, 2010 2:33 am

Word Count function problem

Postby murphywong » Sun May 20, 2012 9:36 pm

Dear all,

I find that the word count function on abstract is simply counting the words between the space character at
at the end of the last if-loop:
count(explode(" ",strip_tags($localizedAbstract))) < $wordCount

I have users putting double space character after each sentence. This cause error in the word count function for the abstract field. Should we trim double space before doing this count? Thanks.


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest