Skip to content

Commit

Permalink
Citations to books in palaeontology.csl (citation-style-language#3182)
Browse files Browse the repository at this point in the history
Fixes book citations.

* Some code clean-up

Prefer delimiters & terms over affixes & values
  • Loading branch information
Martin R. Smith authored and adam3smith committed Dec 12, 2017
1 parent c35824d commit 3949c26
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions palaeontology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<id>http://www.zotero.org/styles/palaeontology</id>
<link href="http://www.zotero.org/styles/palaeontology" rel="self"/>
<link href="http://www.zotero.org/styles/journal-of-vertebrate-paleontology" rel="template"/>
<link href="http://www.palass.org/modules.php?name=palaeo&amp;sec=publications&amp;page=193#26" rel="documentation"/>
<link href="https://www.palass.org/publications/authors/instructions-authors-2012" rel="documentation"/>
<author>
<name>Benjamin C. Moon</name>
<email>benjamin.moon@bristol.ac.uk</email>
Expand Down Expand Up @@ -114,9 +114,9 @@
<text variable="collection-title" font-style="italic" text-case="title" suffix=". "/>
<choose>
<if is-numeric="volume">
<group delimiter=" ">
<text value="Vol. "/>
<number variable="volume" suffix="."/>
<group delimiter=" " suffix=".">
<text term="volume" form="short" text-case="capitalize-first"/>
<number variable="volume"/>
</group>
</if>
<else>
Expand All @@ -125,8 +125,10 @@
</choose>
</group>
</group>
<text prefix=" " suffix=", " macro="publisher"/>
<text variable="page" suffix=" pp"/>
<group delimiter=", " prefix=" ">
<text macro="publisher"/>
<text variable="page" suffix=" pp"/>
</group>
</group>
</if>
<else-if type="thesis" match="any">
Expand All @@ -142,14 +144,14 @@
<text variable="title" suffix=". "/>
<text variable="issue" suffix=". "/>
<group>
<text value="In" font-style="italic" suffix=" "/>
<text term="in" text-case="capitalize-first" font-style="italic" suffix=" "/>
<text macro="editor" suffix=" "/>
<group>
<text variable="container-title" text-case="title" font-style="italic" suffix=", "/>
<choose>
<if is-numeric="volume">
<group delimiter=" ">
<text value="Vol. "/>
<group delimiter=" " suffix=".">
<text value="Vol."/>
<number variable="volume"/>
</group>
</if>
Expand All @@ -158,8 +160,8 @@
</else>
</choose>
</group>
<group delimiter=" ">
<text prefix=" " suffix=", " macro="publisher"/>
<group prefix=" " delimiter=", ">
<text macro="publisher"/>
<text variable="page" suffix=" pp"/>
</group>
</group>
Expand Down

0 comments on commit 3949c26

Please sign in to comment.