Skip to content

Commit

Permalink
Update american-chemical-society.csl (#6231)
Browse files Browse the repository at this point in the history
  • Loading branch information
POBrien333 committed Nov 13, 2022
1 parent aca6b23 commit f7c1d57
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions american-chemical-society.csl
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
<contributor>
<name>Sebastian Karcher</name>
</contributor>
<contributor>
<name>Patrick O'Brien</name>
</contributor>
<category citation-format="numeric"/>
<category field="chemistry"/>
<summary>The American Chemical Society style</summary>
<updated>2021-05-22T12:00:00+00:00</updated>
<updated>2022-09-19T18:32:56+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 @@ -138,6 +141,30 @@
</else>
</choose>
</macro>
<macro name="access">
<choose>
<if variable="DOI" match="any">
<text variable="DOI" prefix="https://doi.org/"/>
</if>
<else-if type="article-journal book chapter entry-encyclopedia entry-dictionary paper-conference" match="none">
<choose>
<if variable="URL">
<group delimiter=" ">
<text variable="URL"/>
<group delimiter=" " prefix="(" suffix=")">
<text term="accessed"/>
<date variable="accessed">
<date-part name="year"/>
<date-part name="month" prefix="-" form="numeric-leading-zeros"/>
<date-part name="day" prefix="-" form="numeric-leading-zeros"/>
</date>
</group>
</group>
</if>
</choose>
</else-if>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
Expand Down Expand Up @@ -249,18 +276,10 @@
</group>
</group>
</else-if>
<else-if type="webpage">
<else-if type="webpage post post-weblog" match="any">
<group delimiter=". ">
<text variable="title" font-style="italic"/>
<text variable="container-title"/>
<group delimiter=" ">
<text variable="URL"/>
<date variable="accessed" prefix="(accessed " suffix=")">
<date-part name="year"/>
<date-part name="month" prefix="-" form="numeric-leading-zeros"/>
<date-part name="day" prefix="-" form="numeric-leading-zeros"/>
</date>
</group>
</group>
</else-if>
<else>
Expand All @@ -277,7 +296,7 @@
</group>
</else>
</choose>
<text variable="DOI" prefix=". https://doi.org/"/>
<text macro="access" prefix=". "/>
</layout>
</bibliography>
</style>

0 comments on commit f7c1d57

Please sign in to comment.