citeproc-ruby 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +78 -0
- data/lib/citeproc.rb +100 -0
- data/lib/citeproc/bibliography.rb +57 -0
- data/lib/citeproc/data.rb +149 -0
- data/lib/citeproc/date.rb +133 -0
- data/lib/citeproc/formatter.rb +38 -0
- data/lib/citeproc/item.rb +53 -0
- data/lib/citeproc/name.rb +284 -0
- data/lib/citeproc/processor.rb +166 -0
- data/lib/citeproc/selector.rb +61 -0
- data/lib/citeproc/variable.rb +82 -0
- data/lib/citeproc/version.rb +3 -0
- data/lib/csl/locale.rb +223 -0
- data/lib/csl/node.rb +72 -0
- data/lib/csl/nodes.rb +1364 -0
- data/lib/csl/renderer.rb +88 -0
- data/lib/csl/sort.rb +53 -0
- data/lib/csl/style.rb +110 -0
- data/lib/csl/term.rb +124 -0
- data/lib/extensions/core.rb +43 -0
- data/lib/plugins/filters/bibtex.rb +12 -0
- data/lib/plugins/formats/default.rb +134 -0
- data/lib/plugins/formats/html.rb +67 -0
- data/lib/support/attributes.rb +99 -0
- data/lib/support/tree.rb +80 -0
- data/resource/locale/locales-af-ZA.xml +304 -0
- data/resource/locale/locales-ar-AR.xml +304 -0
- data/resource/locale/locales-bg-BG.xml +304 -0
- data/resource/locale/locales-ca-AD.xml +304 -0
- data/resource/locale/locales-cs-CZ.xml +304 -0
- data/resource/locale/locales-da-DK.xml +304 -0
- data/resource/locale/locales-de-AT.xml +304 -0
- data/resource/locale/locales-de-CH.xml +304 -0
- data/resource/locale/locales-de-DE.xml +332 -0
- data/resource/locale/locales-el-GR.xml +303 -0
- data/resource/locale/locales-en-US.xml +313 -0
- data/resource/locale/locales-es-ES.xml +304 -0
- data/resource/locale/locales-et-EE.xml +304 -0
- data/resource/locale/locales-fr-FR.xml +304 -0
- data/resource/locale/locales-he-IL.xml +304 -0
- data/resource/locale/locales-hu-HU.xml +304 -0
- data/resource/locale/locales-is-IS.xml +304 -0
- data/resource/locale/locales-it-IT.xml +304 -0
- data/resource/locale/locales-ja-JP.xml +304 -0
- data/resource/locale/locales-kh-KH.xml +303 -0
- data/resource/locale/locales-ko-KR.xml +304 -0
- data/resource/locale/locales-mn-MN.xml +304 -0
- data/resource/locale/locales-nb-NO.xml +304 -0
- data/resource/locale/locales-nl-NL.xml +304 -0
- data/resource/locale/locales-nn-NO.xml +304 -0
- data/resource/locale/locales-pl-PL.xml +304 -0
- data/resource/locale/locales-pt-BR.xml +304 -0
- data/resource/locale/locales-pt-PT.xml +304 -0
- data/resource/locale/locales-ro-RO.xml +304 -0
- data/resource/locale/locales-ru-RU.xml +304 -0
- data/resource/locale/locales-sk-SK.xml +304 -0
- data/resource/locale/locales-sl-SI.xml +304 -0
- data/resource/locale/locales-sr-RS.xml +304 -0
- data/resource/locale/locales-sv-SE.xml +304 -0
- data/resource/locale/locales-th-TH.xml +304 -0
- data/resource/locale/locales-tr-TR.xml +304 -0
- data/resource/locale/locales-uk-UA.xml +304 -0
- data/resource/locale/locales-vi-VN.xml +304 -0
- data/resource/locale/locales-zh-CN.xml +304 -0
- data/resource/locale/locales-zh-TW.xml +304 -0
- data/resource/schema/csl-categories.rnc +39 -0
- data/resource/schema/csl-data.rnc +98 -0
- data/resource/schema/csl-terms.rnc +106 -0
- data/resource/schema/csl-types.rnc +39 -0
- data/resource/schema/csl-variables.rnc +182 -0
- data/resource/schema/csl.rnc +941 -0
- data/resource/style/acta-materialia-x.csl +128 -0
- data/resource/style/advanced-engineering-materials-x.csl +121 -0
- data/resource/style/ama.csl +185 -0
- data/resource/style/ama2-x.csl +179 -0
- data/resource/style/apa-x.csl +324 -0
- data/resource/style/apa.csl +254 -0
- data/resource/style/apsa-x.csl +163 -0
- data/resource/style/apsa.csl +176 -0
- data/resource/style/asa-x.csl +203 -0
- data/resource/style/asa.csl +216 -0
- data/resource/style/asm-journals-x.csl +131 -0
- data/resource/style/bibtex-x2.csl +175 -0
- data/resource/style/bluebook-demo-x.csl +392 -0
- data/resource/style/bluebook-demo.csl +942 -0
- data/resource/style/chicago-author-date-listing.csl +434 -0
- data/resource/style/chicago-author-date.csl +369 -0
- data/resource/style/chicago-fullnote-bibliography-bb.csl +928 -0
- data/resource/style/chicago-fullnote-bibliography.csl +695 -0
- data/resource/style/chicago-note-bibliography.csl +446 -0
- data/resource/style/chicago-note.csl +388 -0
- data/resource/style/greek-chicago-x.csl +1182 -0
- data/resource/style/harvard1-institution-italic.csl +190 -0
- data/resource/style/harvard1.csl +181 -0
- data/resource/style/ieee.csl +129 -0
- data/resource/style/mhra-x.csl +312 -0
- data/resource/style/mhra.csl +390 -0
- data/resource/style/mhra_note_without_bibliography-x.csl +330 -0
- data/resource/style/mhra_note_without_bibliography.csl +338 -0
- data/resource/style/mla-x.csl +178 -0
- data/resource/style/mla.csl +189 -0
- data/resource/style/nature-x.csl +81 -0
- data/resource/style/nature.csl +88 -0
- data/resource/style/nlm.csl +117 -0
- data/spec/citeproc/bibliography_spec.rb +45 -0
- data/spec/citeproc/citeproc_spec.rb +76 -0
- data/spec/citeproc/date_spec.rb +85 -0
- data/spec/citeproc/formatter_spec.rb +101 -0
- data/spec/citeproc/item_spec.rb +71 -0
- data/spec/citeproc/name_spec.rb +30 -0
- data/spec/citeproc/processor_spec.rb +61 -0
- data/spec/citeproc/selector_spec.rb +82 -0
- data/spec/citeproc/variable_spec.rb +69 -0
- data/spec/csl/locale_spec.rb +208 -0
- data/spec/csl/node_spec.rb +25 -0
- data/spec/csl/nodes_spec.rb +140 -0
- data/spec/csl/style_spec.rb +62 -0
- data/spec/csl/term_spec.rb +56 -0
- data/spec/fixtures/dates.yaml +80 -0
- data/spec/fixtures/names.yaml +115 -0
- data/spec/fixtures/nodes.yaml +245 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/support/attributes_spec.rb +39 -0
- data/spec/support/tree_spec.rb +163 -0
- metadata +264 -0
@@ -0,0 +1,128 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
|
3
|
+
<info>
|
4
|
+
<title>Acta Materialia</title>
|
5
|
+
<id>http://www.zotero.org/styles/acta-materialia</id>
|
6
|
+
<link href="http://www.zotero.org/styles/acta-materialia" rel="self"/>
|
7
|
+
<author>
|
8
|
+
<name>Richard Karnesky</name>
|
9
|
+
<email>karnesky+zotero@gmail.com</email>
|
10
|
+
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
|
11
|
+
</author>
|
12
|
+
<category field="engineering"/>
|
13
|
+
<!--<category term="materials science"/>-->
|
14
|
+
<category field="generic-base"/>
|
15
|
+
<category citation-format="numeric"/>
|
16
|
+
<updated/>
|
17
|
+
<summary>A style for Elsevier's journal "Acta Materialia"</summary>
|
18
|
+
<issn>1359-6454</issn>
|
19
|
+
<link href="http://www.elsevier.com/wps/find/journaldescription.cws_home/221/authorinstructions#Refs" rel="documentation"/>
|
20
|
+
<rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License: http://creativecommons.org/licenses/by-sa/3.0/us/</rights>
|
21
|
+
</info>
|
22
|
+
<macro name="author">
|
23
|
+
<names variable="author">
|
24
|
+
<name initialize-with="" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all" sort-separator=" "/>
|
25
|
+
<label form="long" prefix=", " text-case="lowercase" suffix="."/>
|
26
|
+
<substitute>
|
27
|
+
<names variable="editor"/>
|
28
|
+
<names variable="translator"/>
|
29
|
+
</substitute>
|
30
|
+
</names>
|
31
|
+
</macro>
|
32
|
+
<macro name="editor">
|
33
|
+
<names variable="editor">
|
34
|
+
<name initialize-with="" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all" sort-separator=" "/>
|
35
|
+
<label form="long" prefix=", " text-case="lowercase" suffix="."/>
|
36
|
+
</names>
|
37
|
+
</macro>
|
38
|
+
<macro name="year-date">
|
39
|
+
<choose>
|
40
|
+
<if variable="issued">
|
41
|
+
<date variable="issued">
|
42
|
+
<date-part name="year"/>
|
43
|
+
</date>
|
44
|
+
</if>
|
45
|
+
<else>
|
46
|
+
<text term="no date" form="short"/>
|
47
|
+
</else>
|
48
|
+
</choose>
|
49
|
+
</macro>
|
50
|
+
<macro name="publisher">
|
51
|
+
<text variable="publisher-place" suffix=": " text-case="title"/>
|
52
|
+
<text variable="publisher" suffix=", "/>
|
53
|
+
<text macro="year-date"/>
|
54
|
+
</macro>
|
55
|
+
<citation collapse="citation-number">
|
56
|
+
<sort>
|
57
|
+
<key variable="citation-number"/>
|
58
|
+
</sort>
|
59
|
+
<layout prefix="[" suffix="]" delimiter=",">
|
60
|
+
<text variable="citation-number"/>
|
61
|
+
</layout>
|
62
|
+
</citation>
|
63
|
+
<bibliography entry-spacing="0" second-field-align="flush">
|
64
|
+
<layout suffix=".">
|
65
|
+
<text variable="citation-number" prefix="[" suffix="]"/>
|
66
|
+
<text macro="author" prefix=" " suffix=". "/>
|
67
|
+
<choose>
|
68
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
69
|
+
<group delimiter=". ">
|
70
|
+
<group delimiter=", ">
|
71
|
+
<text variable="title" text-case="title"/>
|
72
|
+
<text variable="volume" prefix="vol. "/>
|
73
|
+
</group>
|
74
|
+
<text macro="publisher"/>
|
75
|
+
</group>
|
76
|
+
</if>
|
77
|
+
<else-if type="chapter paper-conference" match="any">
|
78
|
+
<group delimiter=". ">
|
79
|
+
<text variable="title" text-case="sentence"/>
|
80
|
+
<text term="in" text-case="sentence" suffix=":"/>
|
81
|
+
<text macro="editor"/>
|
82
|
+
<group delimiter=", ">
|
83
|
+
<text variable="container-title" form="short" text-case="title"/>
|
84
|
+
<text variable="volume" prefix="vol. "/>
|
85
|
+
</group>
|
86
|
+
<text macro="publisher"/>
|
87
|
+
<group delimiter=" ">
|
88
|
+
<label variable="page" form="short" suffix="." strip-periods="true"/>
|
89
|
+
<text variable="page"/>
|
90
|
+
</group>
|
91
|
+
</group>
|
92
|
+
</else-if>
|
93
|
+
<else-if type="patent">
|
94
|
+
<group delimiter=", ">
|
95
|
+
<group delimiter=". ">
|
96
|
+
<text variable="title" text-case="title"/>
|
97
|
+
<text variable="number" prefix="U.S. Patent "/>
|
98
|
+
</group>
|
99
|
+
<text macro="year-date"/>
|
100
|
+
</group>
|
101
|
+
</else-if>
|
102
|
+
<else-if type="thesis">
|
103
|
+
<group delimiter=". ">
|
104
|
+
<text variable="title" text-case="title"/>
|
105
|
+
<text variable="genre"/>
|
106
|
+
<group delimiter=", ">
|
107
|
+
<text variable="publisher"/>
|
108
|
+
<text macro="year-date"/>
|
109
|
+
</group>
|
110
|
+
</group>
|
111
|
+
</else-if>
|
112
|
+
<else>
|
113
|
+
<group delimiter=":">
|
114
|
+
<group delimiter=" ">
|
115
|
+
<text variable="container-title" form="short" text-case="sentence"/>
|
116
|
+
<group delimiter=";">
|
117
|
+
<text macro="year-date"/>
|
118
|
+
<text variable="volume"/>
|
119
|
+
</group>
|
120
|
+
</group>
|
121
|
+
<!-- TODO: Change to page-first when Zotero supports it -->
|
122
|
+
<text variable="page" form="short"/>
|
123
|
+
</group>
|
124
|
+
</else>
|
125
|
+
</choose>
|
126
|
+
</layout>
|
127
|
+
</bibliography>
|
128
|
+
</style>
|
@@ -0,0 +1,121 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
|
3
|
+
<info>
|
4
|
+
<title>Advanced Engineering Materials</title>
|
5
|
+
<id>http://www.zotero.org/styles/advanced-engineering-materials</id>
|
6
|
+
<link href="http://www.zotero.org/styles/advanced-engineering-materials" rel="self"/>
|
7
|
+
<author>
|
8
|
+
<name>Richard Karnesky</name>
|
9
|
+
<email>karnesky+zotero@gmail.com</email>
|
10
|
+
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
|
11
|
+
</author>
|
12
|
+
<category field="engineering"/>
|
13
|
+
<!--<category term="materials science"/>-->
|
14
|
+
<category field="generic-base"/>
|
15
|
+
<category citation-format="numeric"/>
|
16
|
+
<updated>2008-10-05T08:50:29+00:00</updated>
|
17
|
+
<summary>A style for Wiley-VCH's journal "Advanced Engineering Materials"</summary>
|
18
|
+
<issn>1438-1656</issn>
|
19
|
+
<link href="http://www3.interscience.wiley.com/journal/67500980/home/2266_guidelines.html" rel="documentation"/>
|
20
|
+
<rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License: http://creativecommons.org/licenses/by-sa/3.0/us/</rights>
|
21
|
+
</info>
|
22
|
+
<macro name="author">
|
23
|
+
<names variable="author">
|
24
|
+
<label form="short" prefix=", " text-case="capitalize-first" suffix=": " strip-periods="true"/>
|
25
|
+
<name initialize-with="." delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all"/>
|
26
|
+
<substitute>
|
27
|
+
<names variable="editor"/>
|
28
|
+
<names variable="translator"/>
|
29
|
+
</substitute>
|
30
|
+
</names>
|
31
|
+
</macro>
|
32
|
+
<macro name="editor">
|
33
|
+
<names variable="editor">
|
34
|
+
<label form="short" text-case="capitalize-first" suffix=": " strip-periods="true"/>
|
35
|
+
<name initialize-with="." delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all"/>
|
36
|
+
</names>
|
37
|
+
</macro>
|
38
|
+
<macro name="year-date">
|
39
|
+
<group font-weight="bold">
|
40
|
+
<choose>
|
41
|
+
<if variable="issued">
|
42
|
+
<date variable="issued">
|
43
|
+
<date-part name="year"/>
|
44
|
+
</date>
|
45
|
+
</if>
|
46
|
+
<else>
|
47
|
+
<text term="no date" form="short"/>
|
48
|
+
</else>
|
49
|
+
</choose>
|
50
|
+
</group>
|
51
|
+
</macro>
|
52
|
+
<macro name="publisher">
|
53
|
+
<group delimiter=", ">
|
54
|
+
<text variable="publisher" text-case="capitalize-all"/>
|
55
|
+
<text variable="publisher-place" suffix=" " text-case="title"/>
|
56
|
+
</group>
|
57
|
+
<text macro="year-date"/>
|
58
|
+
</macro>
|
59
|
+
<citation collapse="citation-number">
|
60
|
+
<sort>
|
61
|
+
<key variable="citation-number"/>
|
62
|
+
</sort>
|
63
|
+
<layout vertical-align="sup" prefix="[" suffix="]" delimiter=", ">
|
64
|
+
<text variable="citation-number"/>
|
65
|
+
</layout>
|
66
|
+
</citation>
|
67
|
+
<bibliography entry-spacing="0" second-field-align="flush">
|
68
|
+
<layout suffix=".">
|
69
|
+
<text variable="citation-number" prefix="[" suffix="]"/>
|
70
|
+
<text macro="author" prefix=" " suffix=", "/>
|
71
|
+
<choose>
|
72
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
73
|
+
<group delimiter=", ">
|
74
|
+
<text variable="title" text-case="title" font-style="italic"/>
|
75
|
+
<text macro="publisher"/>
|
76
|
+
</group>
|
77
|
+
</if>
|
78
|
+
<else-if type="chapter paper-conference" match="any">
|
79
|
+
<group delimiter=", ">
|
80
|
+
<group delimiter=" ">
|
81
|
+
<text term="in" text-case="lowercase"/>
|
82
|
+
<text variable="container-title" form="short" text-case="title" font-style="italic"/>
|
83
|
+
<text macro="editor" prefix="(" suffix=")"/>
|
84
|
+
</group>
|
85
|
+
<text macro="publisher"/>
|
86
|
+
<group delimiter=" ">
|
87
|
+
<!-- TODO: Change to page-first when Zotero supports it -->
|
88
|
+
<text variable="page"/>
|
89
|
+
</group>
|
90
|
+
</group>
|
91
|
+
</else-if>
|
92
|
+
<else-if type="patent">
|
93
|
+
<group delimiter=", ">
|
94
|
+
<text variable="title" text-case="title" font-style="italic"/>
|
95
|
+
<text macro="year-date"/>
|
96
|
+
<text variable="number" prefix="U.S. Patent "/>
|
97
|
+
</group>
|
98
|
+
</else-if>
|
99
|
+
<else-if type="thesis">
|
100
|
+
<group delimiter=", ">
|
101
|
+
<text variable="title" text-case="title" font-style="italic"/>
|
102
|
+
<text variable="genre"/>
|
103
|
+
<text variable="publisher"/>
|
104
|
+
<text macro="year-date"/>
|
105
|
+
</group>
|
106
|
+
</else-if>
|
107
|
+
<else>
|
108
|
+
<group delimiter=" ">
|
109
|
+
<text variable="container-title" form="short" text-case="title" font-style="italic"/>
|
110
|
+
<group delimiter=", ">
|
111
|
+
<text macro="year-date"/>
|
112
|
+
<text variable="volume" font-style="italic"/>
|
113
|
+
<!-- TODO: Change to page-first when Zotero supports it -->
|
114
|
+
<text variable="page" form="short"/>
|
115
|
+
</group>
|
116
|
+
</group>
|
117
|
+
</else>
|
118
|
+
</choose>
|
119
|
+
</layout>
|
120
|
+
</bibliography>
|
121
|
+
</style>
|
@@ -0,0 +1,185 @@
|
|
1
|
+
<style
|
2
|
+
xmlns="http://purl.org/net/xbiblio/csl"
|
3
|
+
class="in-text"
|
4
|
+
xml:lang="en">
|
5
|
+
<info>
|
6
|
+
<title>American Medical Association</title>
|
7
|
+
<id>http://www.zotero.org/styles/ama</id>
|
8
|
+
<link href="http://www.zotero.org/styles/ama" />
|
9
|
+
<author>
|
10
|
+
<name>Julian Onions</name>
|
11
|
+
<email>julian.onions@gmail.com</email>
|
12
|
+
</author>
|
13
|
+
<category term="numeric" />
|
14
|
+
<category term="medicine" />
|
15
|
+
<updated />
|
16
|
+
<summary>The American Medical Association style as used in JAMA.</summary>
|
17
|
+
<link href="http://www.samford.edu/schools/pharmacy/dic/amaquickref07.pdf" rel="documentation" />
|
18
|
+
</info>
|
19
|
+
<macro name="editor">
|
20
|
+
<names variable="editor">
|
21
|
+
<name delimiter=", " delimiter-precedes-last="always" initialize-with="" name-as-sort-order="all" sort-separator=" " />
|
22
|
+
<label form="short" prefix=", " suffix="." text-case="lowercase" />
|
23
|
+
</names>
|
24
|
+
</macro>
|
25
|
+
<macro name="anon">
|
26
|
+
<text form="short" term="anonymous" text-case="capitalize-first" />
|
27
|
+
</macro>
|
28
|
+
<macro name="author">
|
29
|
+
<group suffix=".">
|
30
|
+
<names variable="author">
|
31
|
+
<name delimiter=", " delimiter-precedes-last="always" initialize-with="" name-as-sort-order="all" sort-separator=" " />
|
32
|
+
<label form="short" prefix=" " suffix="" text-case="lowercase" />
|
33
|
+
<substitute>
|
34
|
+
<names variable="editor" />
|
35
|
+
<text macro="anon" />
|
36
|
+
</substitute>
|
37
|
+
</names>
|
38
|
+
</group>
|
39
|
+
</macro>
|
40
|
+
<macro name="author-short">
|
41
|
+
<names variable="author">
|
42
|
+
<name and="symbol" delimiter=", " form="short" initialize-with="." />
|
43
|
+
<substitute>
|
44
|
+
<names variable="editor" />
|
45
|
+
<names variable="translator" />
|
46
|
+
<text macro="anon" />
|
47
|
+
</substitute>
|
48
|
+
</names>
|
49
|
+
</macro>
|
50
|
+
<macro name="access">
|
51
|
+
<group>
|
52
|
+
<text suffix=" " value="Available at:" />
|
53
|
+
<text variable="URL" />
|
54
|
+
<group prefix=" [" suffix="]">
|
55
|
+
<text suffix=" " term="accessed" text-case="capitalize-first" />
|
56
|
+
<date variable="accessed">
|
57
|
+
<date-part name="month" suffix=" " />
|
58
|
+
<date-part name="day" suffix=", " />
|
59
|
+
<date-part name="year" />
|
60
|
+
</date>
|
61
|
+
</group>
|
62
|
+
</group>
|
63
|
+
</macro>
|
64
|
+
<macro name="title">
|
65
|
+
<choose>
|
66
|
+
<if type="book">
|
67
|
+
<text font-style="italic" variable="title" />
|
68
|
+
</if>
|
69
|
+
<else>
|
70
|
+
<text variable="title" />
|
71
|
+
</else>
|
72
|
+
</choose>
|
73
|
+
</macro>
|
74
|
+
<macro name="publisher">
|
75
|
+
<group delimiter=": ">
|
76
|
+
<text variable="publisher-place" />
|
77
|
+
<text variable="publisher" />
|
78
|
+
</group>
|
79
|
+
</macro>
|
80
|
+
<macro name="year-date">
|
81
|
+
<group prefix=" ">
|
82
|
+
<choose>
|
83
|
+
<if variable="issued">
|
84
|
+
<date variable="issued">
|
85
|
+
<date-part name="year" />
|
86
|
+
</date>
|
87
|
+
</if>
|
88
|
+
<else>
|
89
|
+
<text term="no date" />
|
90
|
+
</else>
|
91
|
+
</choose>
|
92
|
+
</group>
|
93
|
+
</macro>
|
94
|
+
<macro name="edition">
|
95
|
+
<choose>
|
96
|
+
<if is-numeric="edition">
|
97
|
+
<group delimiter=" ">
|
98
|
+
<number form="ordinal" variable="edition" />
|
99
|
+
<text form="short" suffix="." term="edition" />
|
100
|
+
</group>
|
101
|
+
</if>
|
102
|
+
<else>
|
103
|
+
<text suffix="." variable="edition" />
|
104
|
+
</else>
|
105
|
+
</choose>
|
106
|
+
</macro>
|
107
|
+
<citation
|
108
|
+
collapse="citation-number">
|
109
|
+
<sort>
|
110
|
+
<key variable="citation-number" />
|
111
|
+
</sort>
|
112
|
+
<layout delimiter="," vertical-align="sup">
|
113
|
+
<text variable="citation-number" />
|
114
|
+
<group prefix="(" suffix=")">
|
115
|
+
<label form="short" variable="locator" />
|
116
|
+
<text variable="locator" />
|
117
|
+
</group>
|
118
|
+
</layout>
|
119
|
+
</citation>
|
120
|
+
<bibliography
|
121
|
+
et-al-min="6"
|
122
|
+
et-al-use-first="3"
|
123
|
+
hanging-indent="false">
|
124
|
+
<layout>
|
125
|
+
<text prefix="" suffix=". " variable="citation-number" />
|
126
|
+
<text macro="author" suffix="" />
|
127
|
+
<choose>
|
128
|
+
<if type="book">
|
129
|
+
<group suffix=".">
|
130
|
+
<text macro="title" prefix=" " suffix="." />
|
131
|
+
<text macro="edition" prefix=" " />
|
132
|
+
<text macro="editor" prefix=" (" suffix=")" />
|
133
|
+
</group>
|
134
|
+
<text macro="publisher" prefix=" " suffix="" />
|
135
|
+
<group prefix="; " suffix=".">
|
136
|
+
<date variable="issued">
|
137
|
+
<date-part name="year" />
|
138
|
+
</date>
|
139
|
+
<text prefix=":" variable="page" />
|
140
|
+
</group>
|
141
|
+
</if>
|
142
|
+
<else-if type="chapter">
|
143
|
+
<text macro="title" prefix=" " suffix="." />
|
144
|
+
<group prefix=" ">
|
145
|
+
<text suffix=": " term="in" text-case="capitalize-first" />
|
146
|
+
<text macro="editor" />
|
147
|
+
<text font-style="italic" prefix=" " suffix="." variable="container-title" />
|
148
|
+
<text prefix="Vol " suffix="." variable="volume" />
|
149
|
+
<text macro="edition" prefix=" " />
|
150
|
+
<text prefix=" " suffix="." variable="collection-title" />
|
151
|
+
<group suffix=".">
|
152
|
+
<text macro="publisher" prefix=" " />
|
153
|
+
<group prefix="; " suffix=".">
|
154
|
+
<date variable="issued">
|
155
|
+
<date-part name="year" />
|
156
|
+
</date>
|
157
|
+
<text prefix=":" variable="page" />
|
158
|
+
</group>
|
159
|
+
</group>
|
160
|
+
</group>
|
161
|
+
</else-if>
|
162
|
+
<else>
|
163
|
+
<group suffix=".">
|
164
|
+
<text macro="title" prefix=" " />
|
165
|
+
<text macro="editor" prefix=" " />
|
166
|
+
</group>
|
167
|
+
<group prefix=" " suffix=".">
|
168
|
+
<text font-style="italic" form="short" suffix="." variable="container-title" />
|
169
|
+
<group delimiter=";" prefix=" ">
|
170
|
+
<date variable="issued">
|
171
|
+
<date-part name="year" />
|
172
|
+
</date>
|
173
|
+
<group>
|
174
|
+
<text variable="volume" />
|
175
|
+
<text prefix="(" suffix=")" variable="issue" />
|
176
|
+
</group>
|
177
|
+
</group>
|
178
|
+
<text prefix=":" variable="page" />
|
179
|
+
</group>
|
180
|
+
</else>
|
181
|
+
</choose>
|
182
|
+
<text macro="access" prefix=" " suffix="." />
|
183
|
+
</layout>
|
184
|
+
</bibliography>
|
185
|
+
</style>
|
@@ -0,0 +1,179 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
|
3
|
+
<info>
|
4
|
+
<title>American Medical Association</title>
|
5
|
+
<id>http://www.zotero.org/styles/ama</id>
|
6
|
+
<link href="http://www.zotero.org/styles/ama" rel="self"/>
|
7
|
+
<author>
|
8
|
+
<name>Julian Onions</name>
|
9
|
+
<email>julian.onions@gmail.com</email>
|
10
|
+
</author>
|
11
|
+
<category citation-format="numeric"/>
|
12
|
+
<category field="medicine"/>
|
13
|
+
<updated>2008-03-08T20:38:52+00:00</updated>
|
14
|
+
<summary>The American Medical Association style as used in JAMA.</summary>
|
15
|
+
<link href="http://www.samford.edu/schools/pharmacy/dic/amaquickref07.pdf" rel="documentation"/>
|
16
|
+
</info>
|
17
|
+
<macro name="editor">
|
18
|
+
<names variable="editor">
|
19
|
+
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
|
20
|
+
<label form="short" prefix=", " text-case="lowercase" suffix="." strip-periods="true"/>
|
21
|
+
</names>
|
22
|
+
</macro>
|
23
|
+
<macro name="anon">
|
24
|
+
<text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/>
|
25
|
+
</macro>
|
26
|
+
<macro name="author">
|
27
|
+
<group suffix=".">
|
28
|
+
<names variable="author">
|
29
|
+
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
|
30
|
+
<label form="short" prefix=" " suffix="" text-case="lowercase" strip-periods="true"/>
|
31
|
+
<substitute>
|
32
|
+
<names variable="editor"/>
|
33
|
+
<text macro="anon"/>
|
34
|
+
</substitute>
|
35
|
+
</names>
|
36
|
+
</group>
|
37
|
+
</macro>
|
38
|
+
<macro name="author-short">
|
39
|
+
<names variable="author">
|
40
|
+
<name form="short" and="symbol" delimiter=", " initialize-with="."/>
|
41
|
+
<substitute>
|
42
|
+
<names variable="editor"/>
|
43
|
+
<names variable="translator"/>
|
44
|
+
<text macro="anon"/>
|
45
|
+
</substitute>
|
46
|
+
</names>
|
47
|
+
</macro>
|
48
|
+
<macro name="access">
|
49
|
+
<group>
|
50
|
+
<text value="Available at:" suffix=" "/>
|
51
|
+
<text variable="URL"/>
|
52
|
+
<group prefix=" [" suffix="]">
|
53
|
+
<text term="accessed" text-case="capitalize-first" suffix=" "/>
|
54
|
+
<date variable="accessed">
|
55
|
+
<date-part name="month" suffix=" "/>
|
56
|
+
<date-part name="day" suffix=", "/>
|
57
|
+
<date-part name="year"/>
|
58
|
+
</date>
|
59
|
+
</group>
|
60
|
+
</group>
|
61
|
+
</macro>
|
62
|
+
<macro name="title">
|
63
|
+
<choose>
|
64
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
65
|
+
<text variable="title" font-style="italic"/>
|
66
|
+
</if>
|
67
|
+
<else>
|
68
|
+
<text variable="title"/>
|
69
|
+
</else>
|
70
|
+
</choose>
|
71
|
+
</macro>
|
72
|
+
<macro name="publisher">
|
73
|
+
<group delimiter=": ">
|
74
|
+
<text variable="publisher-place"/>
|
75
|
+
<text variable="publisher"/>
|
76
|
+
</group>
|
77
|
+
</macro>
|
78
|
+
<macro name="year-date">
|
79
|
+
<group prefix=" ">
|
80
|
+
<choose>
|
81
|
+
<if variable="issued">
|
82
|
+
<date variable="issued">
|
83
|
+
<date-part name="year"/>
|
84
|
+
</date>
|
85
|
+
</if>
|
86
|
+
<else>
|
87
|
+
<text term="no date" form="short"/>
|
88
|
+
</else>
|
89
|
+
</choose>
|
90
|
+
</group>
|
91
|
+
</macro>
|
92
|
+
<macro name="edition">
|
93
|
+
<choose>
|
94
|
+
<if is-numeric="edition">
|
95
|
+
<group delimiter=" ">
|
96
|
+
<number variable="edition" form="ordinal"/>
|
97
|
+
<text term="edition" form="short" suffix="." strip-periods="true"/>
|
98
|
+
</group>
|
99
|
+
</if>
|
100
|
+
<else>
|
101
|
+
<text variable="edition" suffix="."/>
|
102
|
+
</else>
|
103
|
+
</choose>
|
104
|
+
</macro>
|
105
|
+
<citation collapse="citation-number">
|
106
|
+
<sort>
|
107
|
+
<key variable="citation-number"/>
|
108
|
+
</sort>
|
109
|
+
<layout delimiter="," vertical-align="sup">
|
110
|
+
<text variable="citation-number"/>
|
111
|
+
<group prefix="(" suffix=")">
|
112
|
+
<label variable="locator" form="short" strip-periods="true"/>
|
113
|
+
<text variable="locator"/>
|
114
|
+
</group>
|
115
|
+
</layout>
|
116
|
+
</citation>
|
117
|
+
<bibliography hanging-indent="false" et-al-min="6" et-al-use-first="3">
|
118
|
+
<layout>
|
119
|
+
<text variable="citation-number" prefix="" suffix=". "/>
|
120
|
+
<text macro="author" suffix=""/>
|
121
|
+
<choose>
|
122
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
123
|
+
<group suffix=".">
|
124
|
+
<text macro="title" prefix=" " suffix="."/>
|
125
|
+
<text macro="edition" prefix=" "/>
|
126
|
+
<text macro="editor" prefix=" (" suffix=")"/>
|
127
|
+
</group>
|
128
|
+
<text prefix=" " suffix="" macro="publisher"/>
|
129
|
+
<group suffix="." prefix="; ">
|
130
|
+
<date variable="issued">
|
131
|
+
<date-part name="year"/>
|
132
|
+
</date>
|
133
|
+
<text variable="page" prefix=":"/>
|
134
|
+
</group>
|
135
|
+
</if>
|
136
|
+
<else-if type="chapter paper-conference" match="any">
|
137
|
+
<text macro="title" prefix=" " suffix="."/>
|
138
|
+
<group prefix=" ">
|
139
|
+
<text term="in" text-case="capitalize-first" suffix=": "/>
|
140
|
+
<text macro="editor"/>
|
141
|
+
<text variable="container-title" font-style="italic" prefix=" " suffix="."/>
|
142
|
+
<text variable="volume" prefix="Vol " suffix="."/>
|
143
|
+
<text macro="edition" prefix=" "/>
|
144
|
+
<text variable="collection-title" prefix=" " suffix="."/>
|
145
|
+
<group suffix=".">
|
146
|
+
<text macro="publisher" prefix=" "/>
|
147
|
+
<group suffix="." prefix="; ">
|
148
|
+
<date variable="issued">
|
149
|
+
<date-part name="year"/>
|
150
|
+
</date>
|
151
|
+
<text variable="page" prefix=":"/>
|
152
|
+
</group>
|
153
|
+
</group>
|
154
|
+
</group>
|
155
|
+
</else-if>
|
156
|
+
<else>
|
157
|
+
<group suffix=".">
|
158
|
+
<text macro="title" prefix=" "/>
|
159
|
+
<text macro="editor" prefix=" "/>
|
160
|
+
</group>
|
161
|
+
<group prefix=" " suffix=".">
|
162
|
+
<text variable="container-title" font-style="italic" form="short" suffix="."/>
|
163
|
+
<group delimiter=";" prefix=" ">
|
164
|
+
<date variable="issued">
|
165
|
+
<date-part name="year"/>
|
166
|
+
</date>
|
167
|
+
<group>
|
168
|
+
<text variable="volume"/>
|
169
|
+
<text variable="issue" prefix="(" suffix=")"/>
|
170
|
+
</group>
|
171
|
+
</group>
|
172
|
+
<text variable="page" prefix=":"/>
|
173
|
+
</group>
|
174
|
+
</else>
|
175
|
+
</choose>
|
176
|
+
<text prefix=" " macro="access" suffix="."/>
|
177
|
+
</layout>
|
178
|
+
</bibliography>
|
179
|
+
</style>
|