Ticket #770: cms-new.txt

File cms-new.txt, 7.8 KB (added by stakats, 9 years ago)

preliminary conversion of chicago to new csl

Line 
1<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en"> 
2  <info>
3    <title>Chicago Note with Bibliography Style</title>
4    <id>http://purl.org/net/xbiblio/csl/styles/chicago-note-bibliography.csl</id>
5    <link>http://purl.org/net/xbiblio/csl/styles/chicago-note-bibliography.csl</link>
6    <author>
7      <name>Simon Kornblith</name>
8      <email>simon@simonster.com</email>
9    </author>
10    <category term="history"/>
11    <category term="generic-base"/>
12    <updated>2007-08-06T15:15:00+08:00</updated>
13  </info>
14  <macro name="editor-translator">
15    <names variable="editor translator" prefix="" suffix="" delimiter=", ">
16      <label form="verb" prefix=" " text-transform="capitalize" suffix=" "/>
17      <name and="text" delimiter=", "/>
18    </names>
19  </macro>
20  <macro name="author">
21    <names variable="author">
22      <name name-as-sort-order="first" and="text" sort-separator=", "
23        delimiter=", " delimiter-precedes-last=""/>
24      <label form="short" prefix=", " suffix="."/>
25      <substitute>
26        <names variable="editor"/>
27        <names variable="translator"/>
28        <text macro="title"/>
29      </substitute>
30    </names>
31  </macro>
32<macro name="author-full">
33    <names variable="author">
34      <name name-as-sort-order="" and="text" sort-separator=", "
35        delimiter=", " delimiter-precedes-last="always"/>
36      <label form="short" prefix=", " suffix="."/>
37      <substitute>
38        <names variable="editor"/>
39        <names variable="translator"/>
40        <text macro="title"/>
41      </substitute>
42    </names>
43  </macro>
44  <macro name="author-short">
45    <names variable="author">
46      <name form="short" and="text" delimiter=", " initialize-with="."/>
47      <substitute>
48        <names variable="editor"/>
49        <names variable="translator"/>
50        <choose>
51          <if type="book">
52            <text variable="title" form="short" font-style="italic"/>
53          </if>
54          <else>
55            <text variable="title" form="short" quotes="true"/>
56          </else>
57        </choose>
58      </substitute>
59    </names>
60  </macro>
61  <macro name="access">
62    <group>
63      <text term="retrieved" text-transform="capitalize" suffix=" "/>
64      <date variable="accessed" suffix=", ">
65        <date-part name="month" suffix=" "/>
66        <date-part name="day" suffix=", "/>
67        <date-part name="year"/>
68      </date>
69      <group>
70        <text term="from" suffix=" "/>
71        <text variable="URL"/>
72      </group>
73    </group>
74  </macro>
75   <macro name="title">
76    <choose>
77      <if type="thesis">
78        <text variable="title" form="short" quotes="true"/>
79      </if>
80      <else-if type="book">
81        <text variable="title" form="short" font-style="italic"/>
82       </else-if>
83      <else>
84        <text variable="title" form="short" quotes="true"/>
85      </else>
86    </choose>
87  </macro>
88  <macro name="publisher">
89    <group delimiter=": ">
90      <text variable="publisher-place"/>
91      <text variable="publisher"/>
92    </group>
93  </macro>
94  <citation>
95    <option name="et-al-min" value="4"/>
96    <option name="et-al-use-first" value="4"/>
97    <option name="et-al-subsequent-min" value="4"/>
98    <option name="et-al-subsequent-use-first" value="1"/>
99    <option name="disambiguate-add-year-suffix" value="true"/>
100    <option name="disambiguate-add-names" value="true"/>
101    <option name="disambiguate-add-givenname" value="true"/>
102    <layout prefix="" suffix="." delimiter="; ">
103     <group suffix="">       
104       <text macro="author-short" suffix=", "/>
105                <text macro="title" prefix=""/>
106        <text variable="locator" prefix=", "/>
107     </group>
108    </layout>
109  </citation>
110  <bibliography>
111    <option name="hanging-indent" value="true"/>
112    <option name="sort-algorithm" value="author-date"/>
113    <option name="et-al-min" value="6"/>
114    <option name="et-al-use-first" value="6"/>
115    <option name="subsequent-author-substitute" value="---"/>
116     <layout suffix=".">
117      <text macro="author" suffix="."/>
118      <choose>
119        <if type="thesis">
120          <group suffix=".">
121            <text macro="title" prefix=" "/>
122          </group>
123          <text value=" PhD diss., "/>
124          <text variable="publisher" prefix=" " suffix=", "/>
125          <date variable="issued">
126            <date-part name="year"/>
127          </date>
128        </if>
129        <else-if type="chapter">
130          <text macro="title" prefix=" "/>
131          <group class="container" prefix=". ">
132            <text term="in" text-transform="capitalize"/>
133            <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
134            <text variable="collection-title" prefix=" " suffix="."/>
135            <text term="editor" form="verb" text-transform="capitalize" prefix=" "/>
136            <names variable="editor translator" prefix=" " suffix="," delimiter=", ">
137               <name and="symbol" sort-separator=", " />
138            </names>
139            <group suffix=".">
140              <text variable="page" prefix=" "/>
141            </group>
142            <group>
143              <text macro="publisher" prefix=" "/>
144            <date variable="issued" prefix=", ">
145             <date-part name="year"/>
146            </date>
147            </group>
148          </group>
149        </else-if>
150        <else-if type="article-journal">
151                  <group suffix=".">
152            <text macro="title" prefix=" "/>
153            <text macro="editor-translator" prefix=" "/>
154          </group>
155          <group class="container" prefix=" " suffix="">
156            <text variable="container-title" font-style="italic" prefix=" "/>
157            <text variable="issue"  prefix=" "/>
158            <text variable="page" prefix=": "/>
159          </group>
160        </else-if>
161        <else-if type="article-newspaper">
162                  <group suffix=".">
163            <text macro="title" prefix=" "/>
164            <text macro="editor-translator" prefix=" "/>
165          </group>
166          <group suffix="">
167            <text variable="container-title" font-style="italic" prefix=" "/>
168            <text variable="issue"  prefix=", " suffix="."/>
169                        <date variable="issued">
170                <date-part name="month" form="long"/>
171                <date-part name="day" form="numeric" prefix=" " suffix=", "/>
172                <date-part name="year"/>
173                </date>         
174          </group>
175        </else-if>
176        <else-if type="paper-conference">
177                  <group suffix=".">
178            <text macro="title" prefix=" "/>
179            <text macro="editor-translator" prefix=" "/>
180          </group>
181          <group suffix="">
182                <text term="paper presented at" text-transform="capitalize"/>
183            <text variable="event" prefix=" "/>
184            <text variable="event-place"  prefix=", "/>
185                        <date variable="event">
186                <date-part name="month" form="long"/>
187                <date-part name="day" form="numeric" prefix=" " suffix=", "/>
188                <date-part name="year"/>
189                </date>         
190          </group>
191        </else-if>
192        <else-if type="book">
193          <group suffix=".">
194            <text macro="title" prefix=" " suffix="."/>
195            <text macro="editor-translator" prefix=""/>
196          </group>
197          <text prefix=" " suffix="," macro="publisher"/>
198          <date variable="issued" prefix=" " suffix="">
199            <date-part name="year"/>
200          </date>
201        </else-if>
202        <else>
203          <group suffix=".">
204            <text macro="title" prefix=" "/>
205            <text macro="editor-translator" prefix=" "/>
206          </group>
207          <group class="container" prefix=" " suffix="">
208            <text variable="container-title" font-style="italic"/>
209            <group prefix=", ">
210              <text variable="volume" font-style="italic"/>
211              <text variable="issue" prefix="(" suffix=")"/>
212            </group>
213            <text variable="page" prefix=", "/>
214          </group>
215        </else>
216      </choose>
217      <text prefix=" " macro="access"/>
218    </layout>
219  </bibliography>
220</style>