Skip to content

Commit

Permalink
Update trends-journals.csl (#6224)
Browse files Browse the repository at this point in the history
  • Loading branch information
POBrien333 authored Sep 13, 2022
1 parent 46e6eed commit 201e022
Showing 1 changed file with 53 additions and 83 deletions.
136 changes: 53 additions & 83 deletions trends-journals.csl
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@
<name>Thomas Kluyver</name>
<email>takowl@gmail.com</email>
</contributor>
<contributor>
<name>Patrick O'Brien</name>
</contributor>
<category citation-format="numeric"/>
<category field="biology"/>
<category field="medicine"/>
<summary>Style for the "Trends" journals by Cell Press</summary>
<updated>2012-10-29T10:03:16+00:00</updated>
<updated>2022-09-12T12:37:15+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>
<!-- Macros -->
<macro name="edition">
<choose>
<if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
Expand All @@ -56,25 +58,7 @@
</choose>
</macro>
<macro name="issued">
<choose>
<if type="article-journal">
<date variable="issued">
<date-part name="year" form="long" prefix="(" suffix=") "/>
</date>
</if>
<else-if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song thesis" match="any">
<date variable="issued">
<date-part name="year" form="long" prefix="(" suffix=") "/>
</date>
</else-if>
<else>
<date variable="issued">
<date-part name="day" form="numeric-leading-zeros" suffix="-"/>
<date-part name="month" form="short" suffix="-" strip-periods="true"/>
<date-part name="year" form="long" prefix="(" suffix=") "/>
</date>
</else>
</choose>
<date date-parts="year" form="text" variable="issued" prefix="(" suffix=")"/>
</macro>
<macro name="author">
<names variable="author">
Expand All @@ -88,14 +72,14 @@
</names>
</macro>
<macro name="editor">
<names variable="editor" prefix="(" suffix="),">
<names variable="editor" prefix="(" suffix=")">
<name sort-separator=", " initialize-with=". " name-as-sort-order="all" delimiter=", " and="text"/>
<label form="short" prefix=", " strip-periods="true"/>
</names>
</macro>
<macro name="locators">
<group delimiter=", ">
<text macro="edition"/>
<text macro="edition" prefix="(" suffix=")"/>
<group delimiter=" ">
<number variable="volume" form="numeric"/>
</group>
Expand All @@ -108,10 +92,10 @@
<macro name="title">
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title" font-style="italic" suffix=", "/>
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title" suffix=". "/>
<text variable="title"/>
</else>
</choose>
</macro>
Expand All @@ -129,14 +113,12 @@
<choose>
<if type="paper-conference">
<choose>
<!-- Published Conference Paper -->
<if variable="container-title">
<group delimiter=", ">
<text variable="container-title" prefix="in " font-style="italic"/>
<text variable="event-place"/>
</group>
</if>
<!-- Unpublished Conference Paper -->
<else>
<group delimiter=", ">
<text variable="event" prefix="presented at the "/>
Expand Down Expand Up @@ -167,15 +149,16 @@
<macro name="page">
<choose>
<if type="chapter paper-conference" match="any">
<label variable="page" form="short" plural="always" suffix=" "/>
<text variable="page"/>
<group delimiter=" ">
<label variable="page" form="short" plural="always"/>
<text variable="page"/>
</group>
</if>
<else>
<text variable="page"/>
</else>
</choose>
</macro>
<!-- Citation -->
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
Expand All @@ -184,100 +167,87 @@
<text variable="citation-number"/>
</layout>
</citation>
<!-- Bibliography -->
<bibliography et-al-min="3" et-al-use-first="1" entry-spacing="0" second-field-align="flush">
<layout>
<!-- Citation Number -->
<text variable="citation-number" suffix=" "/>
<!-- Author(s) -->
<text macro="author" suffix=" "/>
<!-- Rest of Citation -->
<text variable="citation-number" suffix="."/>
<group delimiter=" ">
<text macro="author"/>
<text macro="issued"/>
<text macro="title"/>
</group>
<choose>
<!-- Specific Formats -->
<if type="article-journal">
<text macro="issued"/>
<text macro="title"/>
<text variable="container-title" form="short" font-style="italic" suffix=" "/>
<choose>
<if variable="volume">
<text macro="locators" suffix=", "/>
<text macro="page"/>
</if>
<else-if variable="DOI">
<text variable="DOI" prefix="DOI: "/>
</else-if>
<else-if variable="URL">
<text term="at"/>
<text variable="URL" prefix=" &lt;" suffix="&gt;"/>
</else-if>
</choose>
<group delimiter=" " prefix=". ">
<text variable="container-title" form="short" font-style="italic"/>
<choose>
<if variable="volume">
<group delimiter=", ">
<text macro="locators"/>
<text macro="page"/>
</group>
</if>
<else-if variable="DOI">
<text variable="DOI" prefix="DOI: "/>
</else-if>
<else-if variable="URL">
<text term="at"/>
<text variable="URL" prefix=" &lt;" suffix="&gt;"/>
</else-if>
</choose>
</group>
</if>
<else-if type="paper-conference">
<group delimiter=", ">
<text macro="issued"/>
<text macro="title"/>
<group delimiter=", " prefix=". ">
<text macro="event"/>
<text macro="locators"/>
<text macro="page"/>
</group>
</else-if>
<else-if type="thesis">
<group delimiter=", ">
<text macro="issued"/>
<text macro="title"/>
<group delimiter=", " prefix=". ">
<text variable="genre"/>
<text macro="publisher"/>
</group>
</else-if>
<else-if type="webpage">
<group delimiter=", " suffix=". ">
<text macro="issued"/>
<text macro="title"/>
<text variable="container-title" font-style="italic"/>
</group>
<else-if type="webpage post post-weblog" match="any">
<text variable="container-title" font-style="italic" prefix=". " suffix=". "/>
<text macro="access"/>
</else-if>
<else-if type="patent">
<text macro="issued"/>
<text macro="title" suffix=", "/>
<text variable="number"/>
<text variable="number" prefix=", "/>
</else-if>
<!-- Generic/Fallback Formats -->
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="issued"/>
<text macro="title"/>
<text macro="locators"/>
<text macro="publisher" suffix="."/>
<group delimiter=", " prefix=", ">
<text macro="locators"/>
<text macro="publisher"/>
</group>
</else-if>
<else-if type="article-journal article-magazine article-newspaper broadcast interview manuscript map patent personal_communication song speech thesis webpage" match="any">
<group delimiter=", ">
<text macro="issued"/>
<text macro="title"/>
<text variable="container-title" font-style="italic"/>
<text macro="locators"/>
<text macro="publisher"/>
<text macro="page"/>
</group>
</else-if>
<else-if type="chapter paper-conference" match="any">
<text macro="issued"/>
<text macro="title"/>
<text variable="container-title" prefix="In " font-style="italic" suffix=" "/>
<text macro="locators"/>
<text macro="editor" prefix=" " suffix=" "/>
<group delimiter=", ">
<group delimiter=" " prefix=". ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
<text macro="locators"/>
<text macro="editor"/>
</group>
<text macro="page"/>
<text macro="publisher"/>
</group>
</else-if>
<else>
<group delimiter=", " suffix=". ">
<text macro="title"/>
<group delimiter=", ">
<text variable="container-title" font-style="italic"/>
<text macro="locators"/>
</group>
<group delimiter=", ">
<text macro="issued"/>
<text macro="publisher"/>
<text macro="page"/>
</group>
Expand Down

0 comments on commit 201e022

Please sign in to comment.