Editing csl code
Hi everyone,
I'm having some trouble getting my bibliography to be sorted alphabetically using dropping particles and non-dropping particles (eg. Van der Wal). The only way I can get them to be sorted correctly is to capitalise the first letter of all the parts of the surname (Van Der Wal), but I don't want to do this. In the bibliography, the entries should be in this order:
Van Beusekom
Van de Koppell
Van der Wal
Van Eerdt
But at the moment, I can only get it to be listed as this:
Van Beusekom
Van Eerdt
Van de Koppell
Van der Wal
As I say, it seems to put them in the right order when I capitalise the "de" to "De", but I don't want to do this. Can anyone help?
Here is the relevant parts of my code (I think):
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never">
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never" form="long">
</name>
<label form="short" prefix=" (" suffix=".)" text-case="lowercase" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<bibliography hanging-indent="true" et-al-min="20" et-al-use-first="1">
<sort>
<key macro="author"/>
<key macro="year-date"/>
<key variable="title"/>
</sort>
<layout suffix=".">
<group delimiter=" ">
<text macro="author"/>
<text macro="year-date" prefix="(" suffix=")"/>
<text macro="title"/>
<text macro="edition"/>
<text macro="container-prefix"/>
<group delimiter=", ">
<text macro="editor"/>
<text variable="container-title" font-style="italic"/>
<text variable="collection-title"/>
<text variable="genre"/>
<text macro="publisher"/>
<text macro="locator"/>
<text macro="published-date"/>
<text macro="pages"/>
</group>
</group>
</layout>
</bibliography>
I'm having some trouble getting my bibliography to be sorted alphabetically using dropping particles and non-dropping particles (eg. Van der Wal). The only way I can get them to be sorted correctly is to capitalise the first letter of all the parts of the surname (Van Der Wal), but I don't want to do this. In the bibliography, the entries should be in this order:
Van Beusekom
Van de Koppell
Van der Wal
Van Eerdt
But at the moment, I can only get it to be listed as this:
Van Beusekom
Van Eerdt
Van de Koppell
Van der Wal
As I say, it seems to put them in the right order when I capitalise the "de" to "De", but I don't want to do this. Can anyone help?
Here is the relevant parts of my code (I think):
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never">
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never" form="long">
</name>
<label form="short" prefix=" (" suffix=".)" text-case="lowercase" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<bibliography hanging-indent="true" et-al-min="20" et-al-use-first="1">
<sort>
<key macro="author"/>
<key macro="year-date"/>
<key variable="title"/>
</sort>
<layout suffix=".">
<group delimiter=" ">
<text macro="author"/>
<text macro="year-date" prefix="(" suffix=")"/>
<text macro="title"/>
<text macro="edition"/>
<text macro="container-prefix"/>
<group delimiter=", ">
<text macro="editor"/>
<text variable="container-title" font-style="italic"/>
<text variable="collection-title"/>
<text variable="genre"/>
<text macro="publisher"/>
<text macro="locator"/>
<text macro="published-date"/>
<text macro="pages"/>
</group>
</group>
</layout>
</bibliography>
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
What I don't understand is that if I edit the author's names to be Van De Koppell and Van Der Wal, they are placed in the correct order. So it is obviously treating those parts of the names starting with lower case letters differently to those parts starting with upper case.
Can you upload your style here - https://gist.github.com/ - and post the link here?
Here's the link to my style:
https://gist.github.com/3238381
With your custom style, I get the right/desirable output in the bibliography, i.e.:
Van Beusekom, ...
Van de Koppell, ...
Van der Wal, ...
Van Eerdt, ...
What's your version of Zotero?
I have just downloaded Zotero myself and my style does work exactly as it should with it. How strange that Mendeley doesn't do the same.
I'll have to try and see if anyone over there can help.
http://forums.zotero.org/discussion/21053/easy-csl-question/#Item_31
I started off using Zotero when I began my PhD, but I liked the look of Mendeley more!! Might think about going back to Zotero now, but I'm not sure if I can face transferring all my tags and that over!!