Skip to content

Commit

Permalink
Remake mammallia.csl for Oct/2020 guidelines. (#5207)
Browse files Browse the repository at this point in the history
  • Loading branch information
POBrien333 committed Jan 16, 2021
1 parent b2dd3fd commit 0699da6
Showing 1 changed file with 73 additions and 26 deletions.
99 changes: 73 additions & 26 deletions mammalia.csl
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US">
<style class="in-text" version="1.0" default-locale="en-GB" xmlns="http://purl.org/net/xbiblio/csl">
<info>
<title>Mammalia</title>
<id>http://www.zotero.org/styles/mammalia</id>
<link href="http://www.zotero.org/styles/mammalia" rel="self"/>
<link href="http://www.zotero.org/styles/genetics" rel="template"/>
<link href="https://www.degruyter.com/view/journals/mamm/mamm-overview.xml?tab_body=editorialContent-68857" rel="documentation"/>
<link href="http://www.degruyter.com/view/supplement/s18641547_Instructions_for_Authors.pdf" rel="documentation"/>
<link href="https://www.degruyter.com/supplemental/journals/mamm/mamm-overview.xml/Instructions_for_Authors.pdf" rel="documentation"/>
<author>
<name>Patrick O'Brien</name>
</author>
<category citation-format="author-date"/>
<category field="biology"/>
<issn>0025-1461</issn>
<eissn>1864-1547</eissn>
<updated>2020-04-20T10:34:52+00:00</updated>
<summary>Style for Mammalia as per the guidelines from October 1, 2020.</summary>
<updated>2021-01-11T13:22:22+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>
<macro name="editor-translator">
Expand All @@ -25,7 +26,7 @@
</macro>
<macro name="author">
<names variable="author">
<name and="text" initialize-with="." name-as-sort-order="first" sort-separator=" "/>
<name and="text" initialize-with="." name-as-sort-order="all" sort-separator=" "/>
<label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
<substitute>
<names variable="editor"/>
Expand All @@ -52,14 +53,51 @@
</names>
</macro>
<macro name="title">
<text variable="title"/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture song thesis" match="any">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="genre"/>
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="access">
<choose>
<if type="article-journal" match="any">
<choose>
<if match="none" variable="page volume">
<text variable="DOI" prefix="DOI: " suffix="(Epub ahead of print)"/>
</if>
</choose>
</if>
<else-if type="webpage post post-weblog" match="any">
<group delimiter=" ">
<group delimiter=": ">
<text term="available at" text-case="capitalize-first"/>
<text variable="URL" prefix="&lt;" suffix="&gt;"/>
</group>
<group delimiter=" " prefix="(" suffix=")">
<text term="accessed" text-case="capitalize-first"/>
<date form="text" variable="accessed"/>
</group>
</group>
</else-if>
</choose>
</macro>
<macro name="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<label variable="edition" form="short"/>
</group>
</macro>
<citation collapse="year-suffix" et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true">
<sort>
<key variable="issued"/>
Expand All @@ -78,36 +116,39 @@
</group>
</layout>
</citation>
<bibliography>
<bibliography et-al-min="11" et-al-use-first="10">
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<layout suffix=".">
<group delimiter=". ">
<text macro="author"/>
<date date-parts="year" form="text" variable="issued"/>
<date date-parts="year" form="text" variable="issued" prefix="(" suffix=")"/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group>
<text macro="title"/>
<text macro="editor-translator"/>
<if type="bill book graphic legal_case legislation motion_picture report song thesis" match="any">
<group delimiter=". ">
<group delimiter=", ">
<text macro="title"/>
<text macro="editor-translator"/>
<text macro="edition"/>
</group>
<text macro="publisher"/>
</group>
<text prefix=" " suffix="." macro="publisher"/>
</if>
<else-if type="chapter paper-conference" match="any">
<group delimiter=". ">
<text macro="title"/>
<group delimiter=" ">
<group delimiter=": ">
<text term="in" text-case="capitalize-first"/>
<names variable="editor translator" prefix="(" suffix=")">
<name prefix=" " initialize-with=". " name-as-sort-order="all" sort-separator=" "/>
<label form="short" prefix=", "/>
<names variable="editor translator">
<name prefix=" " and="text" initialize-with=". " name-as-sort-order="all" sort-separator=" "/>
<label form="short" text-case="capitalize-first" prefix=" (" suffix=")"/>
</names>
</group>
<group delimiter=", ">
<text variable="container-title"/>
<text variable="container-title" font-style="italic"/>
<text variable="collection-title"/>
</group>
</group>
Expand All @@ -119,18 +160,24 @@
</group>
</else-if>
<else>
<group delimiter=". ">
<group delimiter=", ">
<text macro="title"/>
<text macro="editor-translator"/>
</group>
<group delimiter=" ">
<text variable="container-title" form="short"/>
<group delimiter=": ">
<text variable="volume"/>
<text variable="page"/>
<group delimiter=", ">
<group delimiter=". ">
<group delimiter=", ">
<text macro="title"/>
<text macro="editor-translator"/>
</group>
<group delimiter=" ">
<text variable="container-title" form="short"/>
<group delimiter=": ">
<group>
<text variable="volume"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<text variable="page"/>
</group>
</group>
</group>
<text macro="access"/>
</group>
</else>
</choose>
Expand Down

0 comments on commit 0699da6

Please sign in to comment.