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).
  • I thought a nice way to get this working would be to replace
    <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?
  • I think the CSL that Rintze proposes is correct, and that this is probably a bug. Would be nice to write a test for Frank's new processor.
  • Oh, one thing to look at is where the prefix/suffix is configured. It might be you just need to add these to the macro calls.
  • edited May 17, 2009
    It seems my second solution (worked out below) is affected by the same bug. So Orest, I don't think there is an easy way to currently fix this, but the new CSL processor that is in the works should make it possible to properly implement APA on this point.

    <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>
Sign In or Register to comment.