Permalink
Browse files

Implement AGU-style sorting for, you got it, AGU style.

  • Loading branch information...
1 parent 5f46265 commit 1d4482d1242b4a07a4baa4bcf5a7d6bd3eaa6374 @rmzelle rmzelle committed Oct 10, 2011
Showing with 12 additions and 2 deletions.
  1. +12 −2 agu.csl
View
14 agu.csl
@@ -15,7 +15,7 @@
<category field="geology"/>
<updated>2009-09-16T17:46:37+00:00</updated>
<summary>The American Geophysical Union generic style</summary>
- <link href="http://www.agu.org/pubs/AuthorRefSheet.pdf" rel="documentation"/>
+ <link href="http://www.agu.org/pubs/authors/manuscript_tools/journals/pdf/AGU_author_guide.pdf" rel="documentation"/>
<rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
</info>
<macro name="editor">
@@ -37,6 +37,14 @@
</substitute>
</names>
</macro>
+ <macro name="author-count">
+ <names variable="author">
+ <name form="count"/>
+ <substitute>
+ <names variable="editor"/>
+ </substitute>
+ </names>
+ </macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", " initialize-with=". "/>
@@ -155,7 +163,9 @@
</citation>
<bibliography hanging-indent="true" et-al-min="11" et-al-use-first="1">
<sort>
- <key macro="author"/>
+ <key macro="author" names-min="1" names-use-first="1"/>
+ <key macro="author-count" names-min="3" names-use-first="3"/>
+ <key macro="author" names-min="3" names-use-first="1"/>
<key macro="year-date"/>
<key variable="title"/>
</sort>

0 comments on commit 1d4482d

Please sign in to comment.