inukshuk / citeproc-ruby

A Citation Style Language (CSL) Cite Processor
101 stars 22 forks source link

Help! output has changed and I can't figure out why. #21

Closed BethFrank closed 10 years ago

BethFrank commented 10 years ago

The following code: proc = CiteProc::Processor.new(style:'apa', format: 'text') proc.import bx_bibliography.to_citeproc proc.render(:bibliography, id: key)[0]

used to produce: "Person, T. (1000). I am a soft valid article. Journal of test articles." but now produces: "Person, T. (1000). I am a soft valid article. Journal of test articles. article." Can you tell me how to fix this? I need to get rid of the last "article."

inukshuk commented 10 years ago

Good thing you reported the BibTeX issue, too — I'm pretty sure this is caused by the same problem. The BibTeX type field is exported to the CiteProc genre field (this is the generally accepted mapping) — so my guess is that the APA style simply prints the genre field at the end of the entry.