Skip to content

Commit

Permalink
Update plos.csl
Browse files Browse the repository at this point in the history
Fix issues regarding [internet] and [preprint] for PLoS as per: citation-style-language#4138 (and pointed out again here: citation-style-language#4140 (comment))

Please check carefully if I did this correctly. :)
  • Loading branch information
POBrien333 committed Sep 27, 2019
1 parent 25cfdd3 commit 82df7b5
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions plos.csl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
<author>
<name>Sebastian Karcher</name>
</author>
<contributor>
<name>Patrick O'Brien</name>
</contributor>
<category citation-format="numeric"/>
<category field="science"/>
<summary>Vancouver for PLoS Journals as of January 2015</summary>
<updated>2019-07-12T08:11:53+00:00</updated>
<updated>2019-09-27T08:33:01+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">
Expand Down Expand Up @@ -110,13 +113,20 @@
</macro>
<macro name="container-title">
<choose>
<if type="article-journal article-magazine chapter paper-conference article-newspaper post-weblog webpage" match="any">
<if type="article-journal article-magazine chapter paper-conference article-newspaper post-weblog webpage post report" match="any">
<group suffix="." delimiter=" ">
<choose>
<if type="article-journal">
<text variable="container-title" form="short" strip-periods="true"/>
<if type="article-journal report" match="any">
<group delimiter=" ">
<text variable="container-title" form="short" strip-periods="true"/>
<choose>
<if match="none" variable="volume page">
<text value="Preprint" prefix="[" suffix="]"/>
</if>
</choose>
</group>
</if>
<else-if type="post-weblog webpage" match="any">
<else-if type="post-weblog webpage post" match="any">
<group delimiter=" ">
<text term="in" text-case="capitalize-first" suffix=":"/>
<text variable="container-title"/>
Expand All @@ -134,7 +144,6 @@
</group>
<text macro="edition" prefix=" "/>
</if>
<!--add event-name and event-place once they become available-->
<else-if type="bill legislation" match="any">
<group delimiter=", ">
<group delimiter=". ">
Expand Down Expand Up @@ -164,21 +173,9 @@
<macro name="title">
<text variable="title"/>
<choose>
<if type="article-journal article-magazine chapter paper-conference article-newspaper post-weblog webpage" match="none">
<choose>
<if variable="URL">
<text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
</if>
</choose>
<if type="book chapter" match="any">
<text macro="edition" prefix=". "/>
</if>
<else-if type="post-weblog webpage" match="any">
<choose>
<if variable="container-title" match="none">
<text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
</if>
</choose>
</else-if>
</choose>
<choose>
<if type="song motion_picture" match="any">
Expand All @@ -202,9 +199,17 @@
<macro name="date">
<choose>
<if type="article-journal" match="any">
<group suffix=";" delimiter=" ">
<date variable="issued" form="text" date-parts="year"/>
</group>
<choose>
<if match="none" variable="volume page">
<group delimiter=" " suffix=". ">
<date date-parts="year" form="text" variable="issued"/>
<text macro="accessed-date"/>
</group>
</if>
<else>
<date date-parts="year" form="text" variable="issued" suffix=";"/>
</else>
</choose>
</if>
<else-if type="article-magazine article-newspaper" match="any">
<date variable="issued" form="text"/>
Expand Down

0 comments on commit 82df7b5

Please sign in to comment.