PKP Bugzilla – Bug 6341
Abstract word count limits appear to be incorrect
Last modified: 2011-08-15 13:35:01 PDT
Again, courtesy of http://pkp.sfu.ca/support/forum/viewtopic.php?f=3&t=7003&p=27045#p27045. It appears that abstract word counts are not correctly calculated, although while Trudy appears to be seeing a situation where more words than the limit can be added, I'm seeing one where drastically fewer words than the limit can be added (eg. when word limit is set to 200, I can only add 100). I can troubleshoot this further, but it would be nice to know what "counts" as a word.
Created attachment 3411 [details] Patch against OCS pre-2.3.4 The abstract word count didn't remove HTML tags before counting. The count will always be a little rough, since we're guessing the number of words in HTML content, but it should be closer than you report. Could you try the attached patch and see if it improves the situation?
(In reply to comment #1) > Created attachment 3411 [details] > Patch against OCS pre-2.3.4 > > The abstract word count didn't remove HTML tags before counting. The count will > always be a little rough, since we're guessing the number of words in HTML > content, but it should be closer than you report. Could you try the attached > patch and see if it improves the situation? Hi Alec -- that's much closer now, thanks!
Thanks, James; committed against ocs-stable-2_3 and master.
Fixed word count https://github.com/pkp/ocs/commit/13beaa1d86e3a6066a8b656113ed6e465a3e28d0