PKP Bugzilla – Bug 6341
Abstract word count limits appear to be incorrect
Last modified: 2014-05-23 05:55:05 PDT
We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.
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
This looks like it needs a port to ojs stable.
Fixed word count
ported, closing again. Thanks for noticing, Michael.
Created attachment 4029 [details]
Patch against OJS 2.4 stable