Skip to content

Commit

Permalink
Human Molecular Genetics (#5635)
Browse files Browse the repository at this point in the history
Turn into independent style, change et al.

* Fix substitute and also adjust Database template style
  • Loading branch information
adam3smith authored Sep 22, 2021
1 parent 0afd7fb commit eaddf8e
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 18 deletions.
6 changes: 5 additions & 1 deletion database.csl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@
</macro>
<macro name="author">
<names variable="author">
<name and="text" delimiter-precedes-last="never" et-al-min="4" et-al-use-first="3" initialize-with=". " name-as-sort-order="all"/>
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all"/>
<label form="short" prefix=" (" suffix=")"/>
<substitute>
<names variable="editor"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="publisher">
Expand Down
17 changes: 0 additions & 17 deletions dependent/human-molecular-genetics.csl

This file was deleted.

195 changes: 195 additions & 0 deletions human-molecular-genetics.csl
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
<?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" default-locale="en-US">
<info>
<title>Human Molecular Genetics</title>
<title-short>HMG</title-short>
<id>http://www.zotero.org/styles/human-molecular-genetics</id>
<link href="http://www.zotero.org/styles/human-molecular-genetics" rel="self"/>
<link href="http://www.zotero.org/styles/database" rel="template"/>
<link href="http://www.oxfordjournals.org/our_journals/hmg/for_authors/general.html" rel="documentation"/>
<category citation-format="numeric"/>
<category field="medicine"/>
<issn>0964-6906</issn>
<eissn>1460-2083</eissn>
<updated>2019-07-26T21:58:08+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">
<names variable="editor">
<name delimiter-precedes-last="always" initialize-with=". " name-as-sort-order="all"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all"/>
<label form="short" prefix=" (" suffix=")"/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="volume">
<group delimiter=" ">
<text term="volume" form="short" text-case="capitalize-first"/>
<text variable="volume"/>
</group>
</macro>
<macro name="series">
<text variable="collection-title"/>
</macro>
<macro name="pages">
<label variable="page" form="short" suffix=" "/>
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text macro="editor"/>
</group>
</macro>
<macro name="issued">
<date date-parts="year" form="text" variable="issued" prefix=" (" suffix=") "/>
</macro>
<macro name="full-issued">
<date variable="issued" delimiter=" ">
<date-part name="month" form="long" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</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>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout delimiter="," prefix="(" suffix=")">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography et-al-min="11" et-al-use-first="10" second-field-align="flush" entry-spacing="0">
<layout suffix=".">
<text variable="citation-number" suffix="."/>
<text macro="author" suffix=" "/>
<text macro="issued"/>
<text variable="title" suffix=". "/>
<choose>
<if type="article-magazine">
<group delimiter=" ">
<text variable="container-title" font-style="italic" suffix="."/>
<text macro="edition"/>
<text macro="publisher"/>
<text macro="full-issued" suffix=","/>
<text macro="pages"/>
</group>
</if>
<else-if type="thesis">
<group delimiter=", ">
<group delimiter=". ">
<text variable="genre"/>
</group>
<text macro="publisher"/>
<text macro="volume"/>
<text macro="pages"/>
</group>
</else-if>
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group delimiter="; ">
<text variable="title" font-style="italic"/>
<text macro="editor" prefix=" "/>
<text macro="series"/>
<text macro="edition"/>
<choose>
<if type="report">
<group delimiter=" ">
<text variable="genre"/>
<text variable="number"/>
</group>
</if>
</choose>
<group delimiter=", ">
<text macro="publisher"/>
<text macro="issued"/>
</group>
<group delimiter=", ">
<text macro="volume"/>
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="patent">
<group delimiter=", ">
<group delimiter=". ">
<text variable="title"/>
<text variable="number"/>
</group>
<date variable="issued" form="text"/>
</group>
</else-if>
<else-if type="chapter paper-conference" match="any">
<group delimiter=", ">
<text macro="book-container"/>
<text variable="container-title" font-style="italic"/>
<text macro="series"/>
<text macro="publisher"/>
<group delimiter=", ">
<text macro="volume"/>
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="webpage post post-weblog" match="any">
<group delimiter=" ">
<text variable="title"/>
<text variable="URL"/>
<date variable="accessed" prefix="(accessed " suffix=")" delimiter=" ">
<date-part name="month" form="short" strip-periods="true"/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="article-journal">
<group delimiter=", ">
<text variable="container-title" font-style="italic" form="short"/>
<text variable="volume" font-weight="bold"/>
<text variable="page"/>
</group>
</else-if>
<else>
<group delimiter=" ">
<group delimiter=". ">
<text variable="title"/>
<text variable="container-title" font-style="italic" form="short"/>
</group>
<group delimiter=", ">
<text macro="issued" font-weight="bold"/>
<text variable="volume" font-style="italic"/>
<text variable="page"/>
</group>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>

0 comments on commit eaddf8e

Please sign in to comment.