Multiple citations in date order
Hello,
I'm trying to develop a custom style for the Entomlogical Society of America's journals.
I've hit a problem with multiple citations. The bibliography should be sorted by author then date eg:
Jones 2008 Title. Journal. vol:pages
Smith 2005 Title. Journal. vol:pages
However, mutiple citations should be sorted by date, then author e.g:
(Smith 2005, Jones 2007)
And I can't work out how to make that happen.
I have the following in the citation part of the style sheet:
<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="3"/>
<option name="et-al-subsequent-use-first" value="1"/>
<option name="disambiguate-add-year-suffix" value="true"/>
<option name="disambiguate-add-names" value="false"/>
<option name="disambiguate-add-givenname" value="false"/>
<option name="collapse" value="year-suffix"/>
<sort>
<key macro="year-date"/>
<key macro="author-short"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text variable="locator"/>
</group>
</layout>
</citation>
But I still get multiple citations sorted by author. Could someone advise me about what I'm doing wrong here, please?
I'm trying to develop a custom style for the Entomlogical Society of America's journals.
I've hit a problem with multiple citations. The bibliography should be sorted by author then date eg:
Jones 2008 Title. Journal. vol:pages
Smith 2005 Title. Journal. vol:pages
However, mutiple citations should be sorted by date, then author e.g:
(Smith 2005, Jones 2007)
And I can't work out how to make that happen.
I have the following in the citation part of the style sheet:
<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="3"/>
<option name="et-al-subsequent-use-first" value="1"/>
<option name="disambiguate-add-year-suffix" value="true"/>
<option name="disambiguate-add-names" value="false"/>
<option name="disambiguate-add-givenname" value="false"/>
<option name="collapse" value="year-suffix"/>
<sort>
<key macro="year-date"/>
<key macro="author-short"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text variable="locator"/>
</group>
</layout>
</citation>
But I still get multiple citations sorted by author. Could someone advise me about what I'm doing wrong here, please?
I'd like to make this style available in the repository, once it is working properly.
<sort>
<key macro="year-date"/>
<key macro="author-short"/>
</sort>
I assume the second key tag supersedes the first one if you would switch them around sorting would be by year-date.
Anyhow, how can sorting be individually specified for citations and bibliography?
But there are some problems with the sorting that won't be fixed until csl 1.0, due sometime next year.
the <sort> section exists both in the <citation> section and in the <bibliography> section
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="entry-spacing" value="0"/>
<sort>
<key variable="issued"/>
</sort>
Which deleted the normal <key macro="author"/> command that is found in sort. When I did this in the chrome it changed all the in text citations to be ordered by date. The problem is that then the biblography is also ordered by date.
Not sure if this is a lead to something or not. I'm still trying to figure it out and will greatly appreciate it when someone smarter than me figures it out!
This looks like a bug to me. This might have been reported and discussed in the past - a little hard to search for, maybe someone remembers?
http://forums.zotero.org/discussion/7427/problem-with-editing-bibliography-in-ms-word/?Focus=34029#Comment_34029