Incorrect reference style for APA, book with no author
The existing Zotero CSL for APA is incorrectly formatting references for books without authors.
For example, the following is what the current CSL is generating for a particular book without an author:
-----
Publication manual of the American Psychological Association. (2001). (5th ed.). Washington, DC: American Psychological Association.
-----
The correct format would be:
-----
Publication manual of the American Psychological Association (5th ed.). (2001) Washington, DC: American Psychological Association.
-----
The problem is that the edition number appears in the wrong location. (There's also an extra space before the edition number in the incorrect reference.)
Please also see the example on p. 249 of the APA publication manual (5th edition).
For example, the following is what the current CSL is generating for a particular book without an author:
-----
Publication manual of the American Psychological Association. (2001). (5th ed.). Washington, DC: American Psychological Association.
-----
The correct format would be:
-----
Publication manual of the American Psychological Association (5th ed.). (2001) Washington, DC: American Psychological Association.
-----
The problem is that the edition number appears in the wrong location. (There's also an extra space before the edition number in the incorrect reference.)
Please also see the example on p. 249 of the APA publication manual (5th edition).
<macro name="author">
<names variable="author">
<name/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</macro>
which generates "Title. (2000). (2nd ed.). Place: Publisher." with
<macro name="author">
<names variable="author">
<name/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<group>
<text macro="title"/>
<text macro="edition"/>
</group>
</substitute>
</names>
</macro>
Unfortunately the latter results in "Title2nd ed. (2000). Title (2nd ed.). Place: Publisher.", so the substituted values aren't skipped later on.
The alternative would be to add an additional macro (e.g. "title-edition"), that calls the title and edition macros, and which can be called in the list of substitutes, but that's a bit messier. Bruce, do you know if my first solution is supposed to work? Is the outcome a bug in the CSL processor, or am I mishandling CSL?
<macro name="author">
<names variable="author">
<name/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title-editor"/>
</substitute>
</names>
</macro>
<macro name="title-editor">
<text macro="title"/>
<text macro="edition"/>
</macro>