I'm still not sure what I'm supposed to be doing with updateItems().
It seems that processCitationCluster() will not automatically delete
items that are no longer cited from the bibliography, so it needs to
be called at some point with each document update. Currently, I call
processCitationCluster() for each new/changed citation upon document
update, then call updateItems() at the end to add user-specified items
that are not cited in the text but should be cited in the
bibliography, and remove items that were cited in the document on the
previous update but are no longer there. This appears to work well
when I use the Chicago styles, but produces an error
(state.registry.registry[Item.id] is undefined) at node-key.js:102
when I use IEEE. If I instead call updateItems() before
processCitationCluster(), the IEEE style works, but I get an error
(this.namereg[pkey] is undefined) at disambig_names.js:68 with the
Chicago style. Unfortunately, I don't know enough about the innards of
citeproc-js to know what these errors mean.
Additionally, all of my punctuation is ending up outside the quotes in
the Chicago Full Note with Bibliography style, although that's
probably my fault.
Finally, is there a way to disable sorting of specific citation
clusters, a feature that Zotero previously provided via a checkbox in
the add citation dialog?
Let me know if you have any insights into what's going on here.
Thanks,
Simon
> > Additionally, all of my punctuation is ending up outside the quotes inCSL controls that. The default is punctuation-in-quote="false", so if
> > the Chicago Full Note with Bibliography style, although that's
> > probably my fault.
the option
isn't set, that sounds like the normal behavior.
You're right, updating via processCitationCluster() does seem to
automatically delete items (I think that the previous issue was due to
a bug in my code), and updateUncitedItems() works for the uncited
entries, so I can get rid of the updateItems() calls altogether. Now
my only issues are the aforementioned error at node-key.js:102, which
appears when calling processCitationCluster() with a new citation
cluster with multiple items in IEEE (but not Chicago), and some weird
problems with et al. handling/disambiguation that I still need to get
a good test case for.
Simon
There are no threads complaining about the absence of a "Keep Sources
Cited" box because it was always there, so users never had a chance to
complain that it wasn't. We hope to provide a better UI for reordering
references in citations (which is long due), but there definitely
needs to be a way to override the default sort. In APA, references in
citations are supposed to be sorted in the same order they appear in
the reference list, but when prefixes are involved, e.g., for a
citation like
(Minor, 2001; see also Adams, 1999; Storandt, 2007)
sorting this way will not suffice. It would be great if we could avoid
making users edit these citations manually.
Simon