Permalink
Browse files

add JMIR, use PMID variable for NLM grant style

  • Loading branch information...
1 parent 19ec1ee commit e4fa00f1e7f2be1b365234192e5d6c613f7e4bf2 @adam3smith adam3smith committed Apr 7, 2013
Showing with 252 additions and 1 deletion.
  1. +251 −0 journal-of-medical-internet-research.csl
  2. +1 −1 national-library-of-medicine-grant.csl
@@ -0,0 +1,251 @@
+<?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>Journal of Medical Internet Research</title>
+ <title-short>JMIR</title-short>
+ <id>http://www.zotero.org/styles/journal-of-medical-internet-research</id>
+ <link href="http://www.zotero.org/styles/journal-of-medical-internet-research" rel="self"/>
+ <link href="http://www.zotero.org/styles/national-library-of-medicine-grant" rel="template"/>
+ <link href="http://www.jmir.org/cms/view/Instructions_for_Authors:Instructions_for_Authors_of_JMIR#References" rel="documentation"/>
+ <author>
+ <name>Michael Berkowitz</name>
+ <email>mberkowi@gmu.edu</email>
+ </author>
+ <contributor>
+ <name>Sebastian Karcher</name>
+ </contributor>
+ <contributor>
+ <name>Matt Tracy</name>
+ </contributor>
+ <category field="medicine"/>
+ <category citation-format="numeric"/>
+ <issn>1439-4456</issn>
+ <eissn>1438-8871</eissn>
+ <updated>2012-09-10T01: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>
+ <locale xml:lang="en">
+ <terms>
+ <term name="retrieved">available</term>
+ <term name="section" form="short">sect.</term>
+ </terms>
+ </locale>
+ <macro name="author">
+ <names variable="author">
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
+ <label form="long" prefix=", "/>
+ <substitute>
+ <names variable="editor"/>
+ </substitute>
+ </names>
+ </macro>
+ <macro name="editor">
+ <group delimiter=": ">
+ <choose>
+ <if type="chapter paper-conference">
+ <text term="in" text-case="capitalize-first"/>
+ </if>
+ </choose>
+ <names variable="editor" suffix=".">
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
+ <label form="long" prefix=", "/>
+ </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 variable="URL">
+ <group delimiter=": ">
+ <group delimiter=" ">
+ <text term="retrieved" text-case="capitalize-first"/>
+ <text term="from"/>
+ </group>
+ <text variable="URL"/>
+ </group>
+ </if>
+ </choose>
+ </macro>
+ <macro name="accessed-date">
+ <choose>
+ <if variable="URL">
+ <group prefix="[" suffix="]" delimiter=" ">
+ <text term="cited" text-case="lowercase"/>
+ <date variable="accessed" suffix="">
+ <date-part name="year"/>
+ <date-part name="month" prefix=" " form="short" strip-periods="true"/>
+ <date-part name="day" prefix=" "/>
+ </date>
+ </group>
+ </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"/>
+ <choose>
+ <if variable="URL">
+ <text term="internet" prefix="[" suffix="]" text-case="capitalize-first"/>
+ </if>
+ </choose>
+ </group>
+ <text macro="edition" prefix=" "/>
+ </if>
+ <!--add event-name and event-place once they become available-->
+ <else-if type="bill legislation">
+ <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">
+ <choose>
+ <if variable="URL">
+ <text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
+ </if>
+ </choose>
+ <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-journal article-magazine article-newspaper" match="any">
+ <group suffix=";" delimiter=" ">
+ <date variable="issued" delimiter=" ">
+ <date-part name="year"/>
+ <date-part name="month" form="short" strip-periods="true"/>
+ <date-part name="day"/>
+ </date>
+ <text macro="accessed-date"/>
+ </group>
+ </if>
+ <else-if type="bill legislation">
+ <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">
+ <date variable="issued" delimiter=" ">
+ <date-part name="year"/>
+ <date-part name="month" form="short" strip-periods="true"/>
+ </date>
+ </else-if>
+ <else>
+ <group suffix=".">
+ <date variable="issued">
+ <date-part name="year"/>
+ </date>
+ <text macro="accessed-date" prefix=" "/>
+ </group>
+ </else>
+ </choose>
+ </macro>
+ <macro name="pages">
+ <choose>
+ <if type="article-journal article-magazine article-newspaper" match="any">
+ <text variable="page" prefix=":"/>
+ </if>
+ <else>
+ <text variable="page" prefix=" p. "/>
+ </else>
+ </choose>
+ </macro>
+ <macro name="journal-location">
+ <choose>
+ <if type="article-journal article-magazine" match="any">
+ <text variable="volume"/>
+ <text variable="issue" prefix="(" suffix=")"/>
+ </if>
+ </choose>
+ </macro>
+ <macro name="report-details">
+ <choose>
+ <if type="report">
+ <text variable="number" prefix="Report No.: "/>
+ </if>
+ </choose>
+ </macro>
+ <citation collapse="citation-number">
+ <sort>
+ <key variable="citation-number"/>
+ </sort>
+ <layout prefix="[" suffix="]" delimiter=",">
+ <text variable="citation-number"/>
+ </layout>
+ </citation>
+ <bibliography et-al-min="7" et-al-use-first="6" second-field-align="flush">
+ <layout>
+ <text variable="citation-number" suffix=". "/>
+ <group delimiter=". " suffix=". ">
+ <text macro="author"/>
+ <text macro="title"/>
+ </group>
+ <group delimiter=" " suffix=". ">
+ <text macro="editor"/>
+ <text macro="container-title" strip-periods="true"/>
+ <text macro="publisher"/>
+ <group>
+ <text macro="date"/>
+ <text macro="journal-location"/>
+ <text macro="pages"/>
+ </group>
+ </group>
+ <text macro="report-details" suffix=". "/>
+ <text macro="access"/>
+ <text prefix=" PMID: " variable="PMID"/>
+ </layout>
+ </bibliography>
+</style>
@@ -249,7 +249,7 @@
</group>
<text macro="report-details" suffix=". "/>
<text macro="access"/>
- <text prefix=" " variable="note"/>
+ <text prefix=" PMID: " variable="PMID"/>
</layout>
</bibliography>
</style>

0 comments on commit e4fa00f

Please sign in to comment.