Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fsantini/7700e1d4802acf6e67c80877e72ea32a to your computer and use it in GitHub Desktop.
Save fsantini/7700e1d4802acf6e67c80877e72ea32a to your computer and use it in GitHub Desktop.
Zotero style for Magnetic Resonance in Medicine with WebPage support.
<?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>Magnetic Resonance in Medicine - Francesco Santini</title>
<id>https://csl.mendeley.com/styles/518147371/magnetic-resonance-in-medicine-webpage</id>
<link href="http://www.zotero.org/styles/magnetic-resonance-in-medicine" rel="self"/>
<link href="http://www.zotero.org/styles/council-of-science-editors" rel="template"/>
<link href="http://onlinelibrary.wiley.com/journal/10.1002/(ISSN)1522-2594/homepage/ForAuthors.html" rel="documentation"/>
<author>
<name>Andrew Priest</name>
</author>
<contributor>
<name>Francesco Santini</name>
<uri>https://www.mendeley.com/profiles/francesco-santini3/</uri>
</contributor>
<category citation-format="numeric"/>
<category field="science"/>
<issn>0740-3194</issn>
<eissn>1522-2594</eissn>
<summary>Magnetic Resonance in Medicine style</summary>
<updated>2018-05-31T11:55:56+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 name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
<label form="long" prefix=", " suffix="."/>
</names>
</macro>
<macro name="anon">
<text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/>
</macro>
<macro name="author">
<group suffix=".">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" " strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</group>
</macro>
<macro name="access">
<group>
<choose>
<if variable="DOI">
<text variable="DOI" prefix="doi: " suffix="."/>
</if>
</choose>
</group>
</macro>
<macro name="title">
<group delimiter=" ">
<text variable="title"/>
<choose>
<if type="thesis" match="any">
<text variable="genre" form="long" prefix="[" suffix="]"/>
</if>
</choose>
</group>
</macro>
<macro name="publisher">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</macro>
<macro name="issued">
<date variable="issued" delimiter=" ">
<date-part name="year"/>
</date>
</macro>
<macro name="pages">
<label variable="page" form="short" suffix=" "/>
<text variable="page"/>
</macro>
<macro name="journal">
<text variable="container-title" form="short"/>
<choose>
<if variable="URL">
<text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
</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="WebPage">
<group>
<text variable="title" prefix=" " suffix="."/>
<text variable="URL" prefix=" " suffix="."/>
<choose>
<if match="any" variable="issued">
<date form="text" variable="issued" prefix=" Published " suffix="."/>
</if>
</choose>
<date form="text" variable="accessed" prefix=" Accessed " suffix="."/>
</group>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="(" suffix=")" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography hanging-indent="false" et-al-min="11" et-al-use-first="3">
<layout>
<text variable="citation-number" suffix=". "/>
<choose>
<if type="webpage" match="any">
<choose>
<if match="any" variable="author">
<text macro="author"/>
</if>
</choose>
</if>
<else>
<text macro="author"/>
</else>
</choose>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song thesis" match="any">
<group prefix=" " suffix="." delimiter=" ">
<text macro="title" suffix="."/>
<text macro="edition"/>
<text macro="editor" prefix="(" suffix=")"/>
</group>
<text prefix=" " macro="publisher"/>
<group suffix="." prefix="; " delimiter=" ">
<date variable="issued">
<date-part name="year"/>
</date>
<text macro="pages"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" " suffix="."/>
<group prefix=" " delimiter=" ">
<text term="in" text-case="capitalize-first" suffix=":"/>
<text macro="editor"/>
<text variable="container-title" suffix="."/>
<text variable="volume" prefix="Vol. " suffix="."/>
<text macro="edition"/>
<text variable="collection-title" suffix="."/>
<group suffix=".">
<text macro="publisher"/>
<group suffix="." prefix="; " delimiter=". ">
<date variable="issued">
<date-part name="year"/>
</date>
<text macro="pages"/>
</group>
</group>
</group>
</else-if>
<else-if type="webpage" match="any">
<text macro="WebPage"/>
</else-if>
<else>
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor" prefix=" "/>
</group>
<group prefix=" " suffix=".">
<text macro="journal"/>
<group delimiter=";" prefix=" ">
<text macro="issued"/>
<group>
<text variable="volume"/>
</group>
</group>
<text variable="page" prefix=":"/>
</group>
</else>
</choose>
<text prefix=" " macro="access"/>
</layout>
</bibliography>
</style>
@fsantini
Copy link
Author

fsantini commented May 31, 2018

Note: this style doesn't support the "Updated" date as demanded by the MRM style guide because I couldn't find a zotero field to sensibly map it to. The issue date is considered the published date.
Based on the original style by Andrew Priest and released under CC-BY-SA-3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment