Apa citation bug

Hi, I´m Andres de los Reyes from Ecuador.

I think i found a bug in the apa citation plugin in ojs 3.0.2 when an author’s first name starts with a utf-8 character the substring function does not work properly, so it should be changed to the mb_substr fuction. This is in ojs/plugins/citationFormats/apa/citation.tpl in the line # 21, I fix it like this:

{$author->getLastName()|escape}, {$firstName|escape|mb_substr:0:1}.{if $i==$authorCount-2}, & {elseif $i<$authorCount-1}, {/if}

thanks for any input, Ill be happy to contribute


AFAIK, the developers are going to strip out the whole ‘How-to-cite’ block and replace it to something CSL-like:

Thanks, I had no idea.

Hi all,

In the meantime, there’s also a fix for existing versions of OJS (<= 3.0.2): [OJS 3.0.2] Can't switch to APA or CBE Citation Formats · Issue #2288 · pkp/pkp-lib · GitHub

Alec Smecher
Public Knowledge Project Team

Thanks, thats what I was trying to suggest.