Ticket #632: ama-raw.csl

File ama-raw.csl, 5.0 KB (added by codec, 9 years ago)

American Medical Association format

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
3  <info>
4    <title>American Medical Association</title>
5    <id>http://www.zotero.org/namespaces/CSL/AMA.csl</id>
6    <author>
7      <name>Julian Onions</name>
8      <email>julian.onions@gmail.com</email>
9    </author>
10    <updated>2007-10-12T03:33:00+05:00</updated>
11    <summary>The AMA style.</summary>
12    <source>http://www.samford.edu/schools/pharmacy/dic/amaquickref07.pdf</source>
13  </info>
14  <macro name="editor">
15    <names variable="editor">
16      <name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
17      <label form="short" prefix=", " text-transform="lowercase" suffix="."/>
18    </names>
19  </macro>
20  <macro name="author">
21    <group suffix=".">
22      <names variable="author">
23        <name name-as-sort-order="all" sort-separator=" " initialize-with=""
24              delimiter=", " delimiter-precedes-last="always"/>
25        <label form="short" prefix=" " suffix="" text-transform="lowercase"/>
26        <substitute>
27          <names variable="editor"/>
28          <text value="Anon"/>
29        </substitute>
30      </names>
31    </group>
32  </macro>
33  <macro name="author-short">
34    <names variable="author">
35      <name form="short" and="symbol" delimiter=", " initialize-with="."/>
36      <substitute>
37        <names variable="editor"/>
38        <names variable="translator"/>
39        <text value="Anon"/>
40      </substitute>
41    </names>
42  </macro>
43  <macro name="access">
44    <group>
45      <text value="Available at:" suffix=" "/>
46      <text variable="URL"/>
47      <group prefix=" [" suffix="]">
48        <text term="accessed" text-transform="capitalize" suffix=" "/>
49        <date variable="accessed">
50          <date-part name="month" suffix=" "/>
51          <date-part name="day" suffix=", "/>
52          <date-part name="year"/>
53        </date>
54      </group>
55    </group>
56  </macro>
57  <macro name="title">
58    <choose>
59      <if type="book">
60        <text variable="title" font-style="italic"/>
61      </if>
62      <else>
63        <text variable="title"/>
64      </else>
65    </choose>
66  </macro>
67  <macro name="publisher">
68    <group delimiter=": ">
69      <text variable="publisher-place"/>
70      <text variable="publisher"/>
71    </group>
72  </macro>
73  <macro name="year-date">
74    <group prefix=" ">
75      <choose>
76        <if variable="issued">
77          <date variable="issued">
78            <date-part name="year"/>
79          </date>
80        </if>
81        <else>
82          <text value="n.d."/>
83        </else>
84      </choose>
85    </group>
86  </macro>
87  <citation>
88    <option name="collapse" value="citation-number"/>
89    <sort>
90      <key variable="citation-number"/>
91    </sort>
92    <layout delimiter="," vertical-align="sup">
93      <text variable="citation-number" />
94      <group prefix="(" suffix=")">
95        <label variable="locator" form="short"/>
96        <text variable="locator"/>
97      </group>
98    </layout>
99  </citation>
100  <bibliography>
101    <option name="hanging-indent" value="false"/>
102    <option name="et-al-min" value="6"/>
103    <option name="et-al-use-first" value="3"/>
104    <layout>
105      <text variable="citation-number" prefix="" suffix=". "/>
106      <text macro="author" suffix=""/>
107      <choose>
108        <if type="book">
109          <group suffix=".">
110            <text macro="title" prefix=" " suffix="."/>
111            <text variable="edition" prefix=" " suffix=" ed."/>
112            <text macro="editor" prefix=" (" suffix=")"/>
113          </group>
114          <text prefix=" " suffix="" macro="publisher"/>
115          <group suffix="." prefix="; ">
116            <date variable="issued">
117              <date-part name="year"/>
118            </date>
119            <text variable="page" prefix=":"/>
120          </group>
121        </if>
122        <else-if type="chapter">
123          <text macro="title" prefix=" " suffix="."/>
124          <group class="container" prefix=" ">
125            <text term="in" text-transform="capitalize" suffix=": "/>
126            <text macro="editor"/>
127            <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
128            <text variable="volume" prefix="Vol " suffix="."/>
129            <text variable="edition" prefix=" " suffix=" ed."/>
130            <text variable="collection-title" prefix=" " suffix="."/>
131            <group suffix=".">
132              <text macro="publisher" prefix=" "/>
133              <group suffix="." prefix="; ">
134                <date variable="issued">
135                  <date-part name="year"/>
136                </date>
137                <text variable="page" prefix=":"/>
138              </group>
139            </group>
140          </group>
141        </else-if>
142        <else>
143          <group suffix=".">
144            <text macro="title" prefix=" " />
145            <text macro="editor" prefix=" "/>
146          </group>
147          <group class="container" prefix=" " suffix=".">
148            <text variable="container-title" font-style="italic" form="short" suffix="."/>
149            <group delimiter=";" prefix=" ">
150              <date variable="issued">
151                <date-part name="year"/>
152              </date>
153              <group>
154                <text variable="volume" />
155                <text variable="issue" prefix="(" suffix=")"/>
156              </group>
157            </group>
158            <text variable="page" prefix=":"/>
159          </group>
160        </else>
161      </choose>
162      <text prefix=" " macro="access" suffix="."/>
163    </layout>
164  </bibliography>
165</style>