On Apr 26, 2:51 pm, skornblith <
si...@simonster.com> wrote:
> I almost have Zotero working with citeproc-js (at least in a
> preliminary form), but I have a couple of questions regarding
> implementation, and one apparent bug.
>
> 1) What's the best way to include items not cited in citation clusters
> in a bibliography?
It's not as easy as it could be yet. If things are working as they
ought in the processor, the updateItems() command should be non-
destructive, so additional cites can be added in that way. That means
shipping the set across after every edit, though, and thrashing with
the removal of cites upon document edit, then restoration of non-cited
items ... awkward.
I could set up a method similar to updateItems(), with the same
interface, that works against uncited bib items. Would that fit the
bill?
>
> 2) Is there any way to get the item IDs corresponding to the sorted
> bibliography output by makeBibliography? This would be useful as far
> as allowing users to customize specific entries in the bibliography.
Not yet. What would you like the returned data structure to look
like?
>
> 3) Calling makeBibliography twice from the same CSL.Engine instance
> with a style that uses subsequent-author-substitute appears to result
> in all of the authors being treated as subsequent (i.e., replaced by
> "---" in Chicago).
I'll take a look at this tomorrow.
>
> 4) In the CSL 1.0 chicago-author-date style, citeproc-js is currently
> rendering citations with >4 authors as:
>
> (Smith, et al. 2008)
>
> whereas the correct formatting is:
>
> (Smith et al. 2008)
>
> with no comma between the author name and "et al." I'd suggest we keep
> the current default behavior, and allow style developers to add the
> comma if necessary using the new et-al element.
If the existing behavior is to be preserved, is it et-al-use-first > 1
that triggers the comma, or the actual rendering of more than one name
in the cite?