Format error with disambiguated in-line cites... Again

Despite thinking I was done with this style, I found another issue with the in-line citations where I am trying to disambiguate multiple citations by the same author in both the same and different years.

What I want is:

(Khan et al. 1980; Lance et al. 1985; Thorbjarnarson 1993a,b, 1996; Hekkala et al. 2011; Shirley 2014)

What I get is:

(Khan et al. 1980; Lance et al. 1985; Thorbjarnarson 1993a; b, 1996; Hekkala et al. 2011; Shirley 2014)

Interesting enough, adding the citation in a different year by the same author seems to overcome the previously discovered bug, see:

https://forums.zotero.org/discussion/57178/citeprocbug-format-error-with-disambiguated-inline-cites/#Item_13

Or is this possibly the same bug?

Here is the relevant CSL code:

<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year-suffix" year-suffix-delimiter="," after-collapse-delimiter="; " disambiguate-add-givenname="true" givenname-disambiguation-rule="by-cite">
<sort>
<key macro="year-date"/>
<key macro="author-short"/>
</sort>
<layout delimiter="; " prefix="(" suffix=")">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
</layout>
</citation>

This style has been validated and tested.

Thanks!

Matt
  • edited March 4, 2016
    Actually, it seems the issue is now with the year-suffix delimiter and the previous bug is somehow resolved as I now get this:

    (Khan et al. 1980; Lance et al. 1985; Thorbjarnarson 1993a; b; Hekkala et al. 2011; Shirley 2014)

    Compared to the following with the previous bug issue:

    (Khan et al. 1980; Lance et al. 1985,Thorbjarnarson 1993a,b; Hekkala et al. 2011; Shirley 2014)
  • I'm rather surprised this changed, but it looks very much like it's still the same bug. (Different behavior might be triggered by the after-collapse-delimiter, that I don't think you had before). I'd wait until I can test fbennett's fix for the original issue in Zotero, then look further.
  • Sounds good.
Sign In or Register to comment.