Skip to content

Commit

Permalink
simplify gigascience CSL
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Dec 28, 2023
1 parent 500f956 commit 55ccf90
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 125 deletions.
148 changes: 23 additions & 125 deletions build/assets/gigascience.csl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Derived from https://github.com/citation-style-language/styles/blob/256250be9c6ab34bba4a070b5c050f7848b37beb/gigascience.csl and
https://github.com/greenelab/connectivity-search-manuscript/blob/54317f330b3f7139d0d7f03d4b1187d01017e9d0/build/assets/gigascience.csl
-->
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="minimal" default-locale="en-US">
<info>
<title>GigaScience</title>
Expand All @@ -25,8 +25,6 @@ https://github.com/greenelab/connectivity-search-manuscript/blob/54317f330b3f713
<locale xml:lang="en">
<date form="text" delimiter=" ">
<date-part name="year"/>
<date-part name="month" form="short" strip-periods="true"/>
<date-part name="day"/>
</date>
<terms>
<term name="retrieved">available</term>
Expand Down Expand Up @@ -65,19 +63,6 @@ https://github.com/greenelab/connectivity-search-manuscript/blob/54317f330b3f713
</names>
</group>
</macro>
<macro name="publisher">
<group delimiter=": " suffix=";">
<choose>
<if type="thesis">
<text variable="publisher-place" prefix="[" suffix="]"/>
</if>
<else>
<text variable="publisher-place"/>
</else>
</choose>
<text variable="publisher"/>
</group>
</macro>
<macro name="access">
<choose>
<if type="webpage software" match="any">
Expand All @@ -89,107 +74,34 @@ https://github.com/greenelab/connectivity-search-manuscript/blob/54317f330b3f713
</if>
</choose>
</macro>
<macro name="container-title">
<choose>
<if type="article-journal article-magazine chapter paper-conference article-newspaper" match="any">
<group suffix="." delimiter=" ">
<text variable="container-title" form="short" strip-periods="true" font-style="italic"/>
</group>
<text macro="edition" prefix=" "/>
</if>
<else-if type="bill legislation" match="any">
<group delimiter=", ">
<group delimiter=". ">
<text variable="container-title" form="short"/>
<group delimiter=" ">
<text term="section" form="short" text-case="capitalize-first"/>
<text variable="section"/>
</group>
</group>
<text variable="number"/>
</group>
</else-if>
<else>
<text variable="container-title" suffix="." form="short"/>
</else>
</choose>
</macro>
<macro name="title">
<text variable="title"/>
<choose>
<if type="article-journal article-magazine chapter paper-conference article-newspaper" match="none">
<text macro="edition" prefix=". "/>
</if>
</choose>
<choose>
<if type="thesis">
<text variable="genre" prefix=" [" suffix="]"/>
</if>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="date">
<choose>
<if type="article-magazine article-newspaper" match="any">
<group suffix=";" delimiter=" ">
<date variable="issued" form="text"/>
</group>
</if>
<else-if type="article-journal paper-conference" match="any">
<group suffix=";" delimiter=" ">
<date variable="issued" form="text" date-parts="year"/>
</group>
</else-if>
<else-if type="bill legislation" match="any">
<group delimiter=", ">
<date variable="issued" delimiter=" ">
<date-part name="month" form="short" strip-periods="true"/>
<date-part name="day"/>
</date>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="report entry dataset manuscript" match="any">
<date variable="issued" delimiter=" ">
<date-part name="year"/>
<date-part name="month" form="short" strip-periods="true"/>
</date>
</else-if>
</choose>
<group suffix=";" delimiter=" ">
<date variable="issued" form="text"/>
</group>
</macro>
<macro name="pages">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<text variable="page" prefix=":"/>
</if>
<else>
<group prefix=" " delimiter=" ">
<label variable="page" form="short" plural="never"/>
<text variable="page"/>
</group>
</else>
</choose>
<text variable="page" prefix=":"/>
</macro>
<macro name="journal-location">
<macro name="container-title">
<group suffix="." delimiter=" ">
<choose>
<if type="article-journal article-magazine" match="any">
<text variable="volume"/>
<if match="any" variable="container-title-short">
<text variable="container-title" form="short" strip-periods="true" font-style="italic"/>
</if>
<else-if match="any" variable="container-title">
<text variable="container-title" strip-periods="true" font-style="italic"/>
</else-if>
<else-if match="any" variable="publisher">
<text variable="publisher"/>
</else-if>
<else-if match="any" variable="collection-title">
<text variable="collection-title"/>
</else-if>
</choose>
</group>
</macro>
<macro name="report-details">
<choose>
Expand All @@ -211,32 +123,18 @@ https://github.com/greenelab/connectivity-search-manuscript/blob/54317f330b3f713
<text variable="citation-number" suffix=". "/>
<group suffix=". ">
<text macro="author"/>
<choose>
<if type="webpage" match="any">
<text value=": "/>
</if>
<else>
<text value=". "/>
</else>
</choose>
<text value=". "/>
<text macro="title"/>
</group>
<group delimiter=" " suffix=". ">
<text macro="editor"/>
<text macro="container-title"/>
<text macro="publisher"/>
<group>
<choose>
<if match="none" variable="DOI">
<text macro="journal-location"/>
<text macro="pages"/>
</if>
</choose>
<text macro="date"/>
<text macro="date" suffix="; "/>
<text variable="volume"/>
<text macro="pages"/>
</group>
</group>
<text macro="access"/>
<text macro="report-details" suffix=". "/>
<text variable="DOI" prefix="doi: " suffix="."/>
</layout>
</bibliography>
Expand Down
1 change: 1 addition & 0 deletions content/manual-references-2023-12-21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,7 @@
family: Weston
- given: Bernhard
family: Scholkopf
page: 321-328
note: |-
Loaded from an external bibliography file by Manubot.
source_bibliography: manual-references.yaml
Expand Down
1 change: 1 addition & 0 deletions content/manual-references.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@
family: Weston
- given: Bernhard
family: Scholkopf
page: 321-328

0 comments on commit 55ccf90

Please sign in to comment.