summaryrefslogtreecommitdiff
path: root/biblio/citation-style-language/american-chemical-society.csl
diff options
context:
space:
mode:
Diffstat (limited to 'biblio/citation-style-language/american-chemical-society.csl')
-rw-r--r--biblio/citation-style-language/american-chemical-society.csl43
1 files changed, 31 insertions, 12 deletions
diff --git a/biblio/citation-style-language/american-chemical-society.csl b/biblio/citation-style-language/american-chemical-society.csl
index cde0e0c50f..d3b33ab685 100644
--- a/biblio/citation-style-language/american-chemical-society.csl
+++ b/biblio/citation-style-language/american-chemical-society.csl
@@ -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>2022-05-04T19:44:25-04:00</updated>
+ <updated>2022-11-12T21:40:31-05: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">
@@ -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"/>
@@ -148,7 +175,7 @@
</citation>
<bibliography second-field-align="flush" entry-spacing="0">
<layout suffix=".">
- <text variable="citation-number" prefix="(" suffix=") "/>
+ <text variable="citation-number" prefix="(" suffix=")"/>
<text macro="author" suffix=" "/>
<choose>
<if type="article-journal review" match="any">
@@ -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>
@@ -277,7 +296,7 @@
</group>
</else>
</choose>
- <text variable="DOI" prefix=". https://doi.org/"/>
+ <text macro="access" prefix=". "/>
</layout>
</bibliography>
</style>