Skip to content

Commit 7387ed3

Browse files
authored
cell.csl: Add a macro for DOI and webpage accessed date. (#5999)
1 parent 21e2177 commit 7387ed3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

cell.csl

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="in-text" default-locale="en-US" demote-non-dropping-particle="sort-only" page-range-format="expanded">
2+
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="in-text" demote-non-dropping-particle="sort-only" page-range-format="expanded" default-locale="en-US">
33
<info>
44
<title>Cell</title>
55
<id>http://www.zotero.org/styles/cell</id>
@@ -57,6 +57,16 @@
5757
<label form="short" prefix=", "/>
5858
</names>
5959
</macro>
60+
<macro name="doi">
61+
<choose>
62+
<if variable="DOI">
63+
<text variable="DOI" prefix="https://doi.org/"/>
64+
</if>
65+
<else-if type="webpage post post-weblog" match="any">
66+
<text variable="URL"/>
67+
</else-if>
68+
</choose>
69+
</macro>
6070
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year">
6171
<sort>
6272
<key macro="author-short" names-min="1" names-use-first="1"/>
@@ -87,10 +97,13 @@
8797
<if type="article article-magazine article-newspaper article-journal review" match="any">
8898
<text variable="title" suffix="."/>
8999
<text variable="container-title" form="short" text-case="title"/>
90-
<group delimiter=", ">
100+
<group delimiter=", " suffix=". ">
91101
<text variable="volume" font-style="italic"/>
92102
<text variable="page"/>
93103
</group>
104+
<group>
105+
<text macro="doi"/>
106+
</group>
94107
</if>
95108
<else-if type="chapter paper-conference" match="any">
96109
<text variable="title" suffix="."/>

0 commit comments

Comments
 (0)