Problems with year-suffix-delimiter
Hello,
I am working of a custom CSL file with author-date citation style. But collapsing does not seem to work right: If I cite two publications from the same authors and the same year (in a multi-citation), I should be getting something like:
[André et al. 2006a,b]
Instead I get:
[André et al. 2006bundefineda]
Note that the order of the citations has also been exchanged (b before a). The relevant portion of my CSL file reads:
<citation>
<option name="collapse" value="year-suffix-ranged"/>
<option name="year-suffix-delimiter" value=","/>
<option name="disambiguate-add-year-suffix" value="true"/>
<sort>
<key macro="author-short"/>
<key variable="issued"/>
</sort>
<layout delimiter="; " prefix=" [" suffix="]">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
</layout>
</citation>
As a side-note: collapsing needs all authors to be identical, not only the one that is shown.
Any suggestions?
Thank you for your time!
I am working of a custom CSL file with author-date citation style. But collapsing does not seem to work right: If I cite two publications from the same authors and the same year (in a multi-citation), I should be getting something like:
[André et al. 2006a,b]
Instead I get:
[André et al. 2006bundefineda]
Note that the order of the citations has also been exchanged (b before a). The relevant portion of my CSL file reads:
<citation>
<option name="collapse" value="year-suffix-ranged"/>
<option name="year-suffix-delimiter" value=","/>
<option name="disambiguate-add-year-suffix" value="true"/>
<sort>
<key macro="author-short"/>
<key variable="issued"/>
</sort>
<layout delimiter="; " prefix=" [" suffix="]">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
</layout>
</citation>
As a side-note: collapsing needs all authors to be identical, not only the one that is shown.
Any suggestions?
Thank you for your time!
Concerning collapsing behavior, that would be a matter for the CSL design group; this was discussed at length before the current behavior was implemented, and it would not be for me to change things about off my own bat. Discussion should probably take place on the xbiblio-devel list, rather than here.
one way to get there would be to use disambiguate-add-names. Having two identical citations that don't collapse would seem weird to me - do you have a style guide reference for that?
So disambiguate-add-names is not an option, unfortunately. I think that not having the collapsing work in this (hopefully rare) case is the smaller of two evils.
(Edit: for posterity, the other thread is here)
Thanks a lot in advance
Thank you very much.
Here is a version of the file in valid CSL 1.0, with the year-suffix-delimiter added back. If you use this for your style and discard the 0.8.1 version, things should work smoothly.
https://gist.github.com/909537
Thanks a lot.
(If anyone listening in can give the file linked above a try ... with two entries with identical authors, does it render correctly, or does "undefined" appear in the output of citations with a year-suffix?)
Sorry, but only to be sure that we mean the same: "same author and same year" (Silk 1992aundefinedb). If it is only the same author everything is fine (Silk 1993; 1994). But I’m sure you get this, because the year-suffix-delimiter is exactly for the first problem (as i understood).
One thing more it is more an information and I think it is not influencing the issue above but just to be complete: a few days ago I opened a discussion http://forums.zotero.org/discussion/17446/multiple-citation-separators it is regarding the same style I’m trying to build. In the end I would like to have something like: (Anderson 2011; Acecedo-Whitehouse et al. 2003, 2006; Silk 1992a,b).
Thanks a lot!
Let's give this issue some time. If anyone comes across this thread, it would be very helpful if someone else could install the style at https://gist.github.com/909537, and let us know if it renders normally with two same-author / same-year citations, or spits out an "undefined" where the delimiter should be. Testing by more than just me and Primate Kin Selectio would tell us which of our respective results (success vs failure) are due to peculiarities in our local systems.
(Edit: No joy, still works like a charm.)
@Primate Kin Selectio: Ideally, clear formatting errors like this should be cleared very quickly. The turnaround was a bit slow for this one; thank you for your patience.
And i think it was very fast within one day you found a solution. Great! thank you and also simon a lot.