Skip to content

Commit f4b5f7f

Browse files
Update unified-style-sheet-for-linguistics.csl (#6098)
I added a IF NOT statement to the access macro so that the URL with access date is only printed if there is no DOI (which does not need an access date). This change was agreed with the author Mark Dingemanse beforehand.
1 parent c3f856a commit f4b5f7f

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

unified-style-sheet-for-linguistics.csl

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" default-locale="en-US">
3+
<!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
34
<info>
45
<title>Unified style sheet for linguistics</title>
56
<id>http://www.zotero.org/styles/unified-style-sheet-for-linguistics</id>
@@ -24,9 +25,12 @@
2425
<contributor>
2526
<name>Brian Plimley</name>
2627
</contributor>
28+
<contributor>
29+
<name>Simon Meier-Vieracker</name>
30+
</contributor>
2731
<category citation-format="author-date"/>
2832
<category field="linguistics"/>
29-
<updated>2020-03-19T16:21:55+00:00</updated>
33+
<updated>2022-06-21T14:23:09+00:00</updated>
3034
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
3135
</info>
3236
<locale>
@@ -164,14 +168,18 @@
164168
</else-if>
165169
</choose>
166170
<text variable="DOI" prefix="https://doi.org/"/>
167-
<text variable="URL"/>
168-
</group>
169-
<group prefix=" (" suffix=")">
170-
<date variable="accessed">
171-
<date-part name="day" suffix=" "/>
172-
<date-part name="month" suffix=", "/>
173-
<date-part name="year"/>
174-
</date>
171+
<choose>
172+
<if match="none" variable="DOI">
173+
<text variable="URL"/>
174+
<group prefix=" (" suffix=")">
175+
<date variable="accessed">
176+
<date-part name="day" suffix=" "/>
177+
<date-part name="month" suffix=", "/>
178+
<date-part name="year"/>
179+
</date>
180+
</group>
181+
</if>
182+
</choose>
175183
</group>
176184
</macro>
177185
<macro name="title">

0 commit comments

Comments
 (0)