Skip to content

Commit

Permalink
Update zootaxa.csl (citation-style-language#4151)
Browse files Browse the repository at this point in the history
Closes citation-style-language#4146
Add DOI and a few improvements to make style more robust.
  • Loading branch information
POBrien333 authored and adam3smith committed Jun 23, 2019
1 parent b9a2849 commit 1ecf607
Showing 1 changed file with 73 additions and 57 deletions.
130 changes: 73 additions & 57 deletions zootaxa.csl
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
<name>Dimitri Forero</name>
<email>[email protected]</email>
</contributor>
<contributor>
<name>Patrick O'Brien</name>
</contributor>
<category citation-format="author-date"/>
<category field="biology"/>
<issn>1175-5326</issn>
<eissn>1175-5334</eissn>
<summary>The Zootaxa style.</summary>
<updated>2013-08-29T04:18:55+00:00</updated>
<updated>2019-06-20T13:09:14+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en-US">
Expand Down Expand Up @@ -62,7 +65,7 @@
</macro>
<macro name="access">
<choose>
<if type="webpage book" match="any">
<if type="webpage book post post-weblog" match="any">
<choose>
<if variable="URL">
<group delimiter=" ">
Expand All @@ -74,6 +77,9 @@
</if>
</choose>
</if>
<else-if type="article-journal" match="any">
<text variable="DOI" prefix="https://doi.org/"/>
</else-if>
</choose>
</macro>
<macro name="title">
Expand Down Expand Up @@ -150,6 +156,12 @@
</else>
</choose>
</macro>
<macro name="number-of-pages">
<group delimiter=" ">
<text variable="number-of-pages"/>
<label variable="number-of-pages" form="short"/>
</group>
</macro>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year-suffix" givenname-disambiguation-rule="primary-name">
<sort>
<key macro="author-short"/>
Expand All @@ -171,65 +183,69 @@
<key macro="year-date"/>
<key variable="title"/>
</sort>
<layout suffix=" ">
<text macro="author"/>
<date variable="issued" prefix=" (" suffix=")">
<date-part name="year"/>
</date>
<choose>
<if type="book" match="any">
<text macro="legal_case"/>
<group prefix=" " delimiter=" ">
<text macro="title" suffix="."/>
<text macro="edition"/>
<text macro="editor" suffix="."/>
</group>
<group prefix=" " suffix="." delimiter=", ">
<text macro="publisher"/>
<text variable="page" prefix=" " suffix=" pp"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" " suffix="."/>
<group prefix=" In: " delimiter=" ">
<text macro="editor" suffix=","/>
<text variable="container-title" font-style="italic" suffix="."/>
<text variable="collection-title" suffix="."/>
<group suffix=".">
<text macro="publisher"/>
<group prefix=", pp. " delimiter=" " suffix=".">
<text variable="page"/>
<layout>
<group delimiter=" " suffix=".">
<text macro="author"/>
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
</date>
<choose>
<if type="book" match="any">
<text macro="legal_case"/>
<group delimiter=". ">
<text macro="title" suffix="."/>
<text macro="edition"/>
<text macro="editor" suffix="."/>
<group prefix=" " suffix="." delimiter=", ">
<text macro="publisher"/>
<text macro="number-of-pages" prefix=" "/>
</group>
</group>
</group>
</else-if>
<else-if type="bill graphic legal_case legislation manuscript motion_picture report song thesis" match="any">
<text macro="legal_case"/>
<group prefix=" " delimiter=" ">
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" suffix="."/>
<text macro="edition"/>
<text macro="editor" suffix="."/>
</group>
<group prefix=" " delimiter=", ">
<text macro="publisher"/>
<text variable="page" prefix=" " suffix="pp."/>
</group>
</else-if>
<else>
<group prefix=" " delimiter=" " suffix=".">
<text macro="title"/>
<text macro="editor"/>
</group>
<group prefix=" " suffix=".">
<text variable="container-title" font-style="italic"/>
<group prefix=" ">
<text variable="volume"/>
<group prefix=" " delimiter=" ">
<text term="in" text-case="capitalize-first" suffix=":"/>
<text macro="editor" suffix=","/>
<text variable="container-title" font-style="italic" suffix="."/>
<text variable="collection-title" suffix="."/>
<group suffix=".">
<text macro="publisher"/>
<group prefix=", " delimiter=" ">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
</group>
</group>
<text variable="page" prefix=", " suffix="."/>
</group>
</else>
</choose>
<text prefix=" " macro="access" suffix="."/>
</else-if>
<else-if type="bill graphic legal_case legislation manuscript motion_picture report song thesis" match="any">
<text macro="legal_case"/>
<group delimiter=" ">
<text macro="title" suffix="."/>
<text macro="edition"/>
<text macro="editor" suffix="."/>
</group>
<group prefix=" " delimiter=", ">
<text macro="publisher"/>
<text variable="page" prefix=" " suffix="pp."/>
</group>
</else-if>
<else>
<group prefix=" " delimiter=" " suffix=".">
<text macro="title"/>
<text macro="editor"/>
</group>
<group prefix=" " suffix=".">
<text variable="container-title" font-style="italic"/>
<group prefix=" ">
<text variable="volume"/>
</group>
<text variable="page" prefix=", " suffix="."/>
</group>
</else>
</choose>
</group>
<text macro="access" prefix=" "/>
</layout>
</bibliography>
</style>

0 comments on commit 1ecf607

Please sign in to comment.