Hi

I decided to develop a simple CSL processor to convert Zotero json strings to 
APA citations. The code will be used in ZotPad and after the processor works, I 
will publish the code as a separate project in gihub.

I am using json strings from Zotero server  as data and validating the output 
against formatted citations from Zotero server. The citations are formatted 
using the APA style from 
https://github.com/citation-style-language/styles/blob/master/apa.csl using the 
CSL 1.0.1 specification.

I am using the following bibliography item as my test data

Cadogan, J. W., & Lee, N. (Forthcoming). Improper Use of Endogenous Formative 
Variables. <i>Journal of Business Research</i>.

There is one thing that I do not understand. In the APA style (lines 429-434) 
there is a group


        <group delimiter=". ">
          <text macro="author"/>
          <text macro="issued"/>
          <text macro="title" prefix=" "/>
          <text macro="container"/>
        </group>

The macro "author" has a names element with initialize-with=". " and the macro 
"issued" contains a group with prefix " (". Now to my understanding, this means 
that

- The "author" macro will end with ". "    [Cadogan, J. W., & Lee, N.]
- The "issued" macro will start with " ("   [ (Forthcoming)]
- The macros are delimited with ". "

This results in a bibliographic item that starts by

Cadogan, J. W., & Lee, N..  (Forthcoming).

This is obviously not correct. There should not be a double period followed by 
a double space, but I do not understand which part of the formatting logic is 
incorrect.

Mikko


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
xbiblio-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

Reply via email to