Skip to content

Commit

Permalink
Add original date and publisher to all Chicago-note styles. Also fix …
Browse files Browse the repository at this point in the history
…presentations without title and note format for presentations
  • Loading branch information
adam3smith committed Mar 2, 2015
1 parent 72d2f35 commit edd45b7
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 94 deletions.
95 changes: 79 additions & 16 deletions chicago-annotated-bibliography.csl
Expand Up @@ -21,6 +21,10 @@
<name>Frank Bennett</name>
<email>biercenator@gmail.com</email>
</contributor>
<contributor>
<name>Andrew Dunning</name>
<email>andrew.dunning@utoronto.ca</email>
</contributor>
<category citation-format="note"/>
<category field="generic-base"/>
<summary>Chicago format with short notes and annotated bibliography</summary>
Expand Down Expand Up @@ -345,7 +349,7 @@
<group delimiter=" ">
<choose>
<if type="chapter paper-conference" match="any">
<text term="in" text-case="lowercase"/>
<text term="in"/>
</if>
</choose>
<choose>
Expand Down Expand Up @@ -600,17 +604,63 @@
</if>
</choose>
</macro>
<macro name="event-note">
<text variable="event"/>
</macro>
<macro name="event">
<group delimiter=" ">
<text term="presented at"/>
<text variable="event"/>
<choose>
<if variable="title">
<group delimiter=" ">
<text term="presented at"/>
<text variable="event"/>
</group>
</if>
<else>
<group delimiter=" ">
<text term="presented at" text-case="capitalize-first"/>
<text variable="event"/>
</group>
</else>
</choose>
</macro>
<macro name="originally-published">
<group delimiter=", ">
<group delimiter=": ">
<text variable="original-publisher-place"/>
<text variable="original-publisher"/>
</group>
<date variable="original-date" form="text" date-parts="year"/>
</group>
</macro>
<macro name="reprint-note">
<!--needs localization-->
<choose>
<if variable="original-date issued" match="all">
<choose>
<!--for whatever reason in notes, when we have both original and new publishers, reprint doesn't appear-->
<if variable="original-publisher original-publisher-place" match="none">
<text value="repr."/>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="reprint">
<!--needs localization-->
<choose>
<if variable="original-date issued" match="all">
<text value="reprint" text-case="capitalize-first"/>
</if>
</choose>
</macro>
<macro name="publisher">
<choose>
<if type="thesis">
<text variable="publisher"/>
</if>
<else-if type="speech">
<text variable="event-place"/>
</else-if>
<else>
<group delimiter=": ">
<text variable="publisher-place"/>
Expand Down Expand Up @@ -644,6 +694,9 @@
</else>
</choose>
</if>
<else-if variable="status">
<text variable="status"/>
</else-if>
<else-if variable="accessed URL" match="all"/>
<else>
<text term="no date" form="short"/>
Expand All @@ -662,7 +715,7 @@
<if variable="volume">
<group delimiter=", ">
<group delimiter=" ">
<text term="volume" form="short" text-case="lowercase"/>
<text term="volume" form="short"/>
<number variable="volume" form="numeric"/>
</group>
<label variable="locator" form="short"/>
Expand Down Expand Up @@ -877,18 +930,22 @@
<else-if type="article-newspaper">
<text macro="issued"/>
</else-if>
<else-if variable="publisher-place publisher" match="any">
<else-if variable="publisher-place event-place publisher genre" match="any">
<group prefix="(" suffix=")" delimiter=", ">
<group delimiter=" ">
<choose>
<if variable="title" match="none"/>
<else-if type="thesis speech" match="any">
<text variable="genre"/>
</else-if>
</choose>
<text macro="event"/>
<choose>
<if variable="title" match="none"/>
<else-if type="thesis speech" match="any">
<text variable="genre"/>
</else-if>
</choose>
<text macro="event-note"/>
<group delimiter="; ">
<text macro="originally-published"/>
<group delimiter=", ">
<text macro="reprint-note"/>
<text macro="publisher"/>
</group>
</group>
<text macro="publisher"/>
<text macro="issued"/>
</group>
</else-if>
Expand Down Expand Up @@ -974,7 +1031,13 @@
<text variable="genre" text-case="capitalize-first"/>
</if>
</choose>
<text macro="publisher"/>
<group delimiter=". ">
<text macro="originally-published"/>
<group delimiter=", ">
<text macro="reprint"/>
<text macro="publisher"/>
</group>
</group>
<text macro="issued"/>
</group>
</else-if>
Expand Down
91 changes: 75 additions & 16 deletions chicago-fullnote-bibliography-no-ibid.csl
Expand Up @@ -349,7 +349,7 @@
<group delimiter=" ">
<choose>
<if type="chapter paper-conference" match="any">
<text term="in" text-case="lowercase"/>
<text term="in"/>
</if>
</choose>
<choose>
Expand Down Expand Up @@ -604,17 +604,63 @@
</if>
</choose>
</macro>
<macro name="event-note">
<text variable="event"/>
</macro>
<macro name="event">
<group delimiter=" ">
<text term="presented at"/>
<text variable="event"/>
<choose>
<if variable="title">
<group delimiter=" ">
<text term="presented at"/>
<text variable="event"/>
</group>
</if>
<else>
<group delimiter=" ">
<text term="presented at" text-case="capitalize-first"/>
<text variable="event"/>
</group>
</else>
</choose>
</macro>
<macro name="originally-published">
<group delimiter=", ">
<group delimiter=": ">
<text variable="original-publisher-place"/>
<text variable="original-publisher"/>
</group>
<date variable="original-date" form="text" date-parts="year"/>
</group>
</macro>
<macro name="reprint-note">
<!--needs localization-->
<choose>
<if variable="original-date issued" match="all">
<choose>
<!--for whatever reason in notes, when we have both original and new publishers, reprint doesn't appear-->
<if variable="original-publisher original-publisher-place" match="none">
<text value="repr."/>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="reprint">
<!--needs localization-->
<choose>
<if variable="original-date issued" match="all">
<text value="reprint" text-case="capitalize-first"/>
</if>
</choose>
</macro>
<macro name="publisher">
<choose>
<if type="thesis">
<text variable="publisher"/>
</if>
<else-if type="speech">
<text variable="event-place"/>
</else-if>
<else>
<group delimiter=": ">
<text variable="publisher-place"/>
Expand Down Expand Up @@ -648,6 +694,9 @@
</else>
</choose>
</if>
<else-if variable="status">
<text variable="status"/>
</else-if>
<else-if variable="accessed URL" match="all"/>
<else>
<text term="no date" form="short"/>
Expand All @@ -666,7 +715,7 @@
<if variable="volume">
<group delimiter=", ">
<group delimiter=" ">
<text term="volume" form="short" text-case="lowercase"/>
<text term="volume" form="short"/>
<number variable="volume" form="numeric"/>
</group>
<label variable="locator" form="short"/>
Expand Down Expand Up @@ -881,18 +930,22 @@
<else-if type="article-newspaper">
<text macro="issued"/>
</else-if>
<else-if variable="publisher-place publisher" match="any">
<else-if variable="publisher-place event-place publisher genre" match="any">
<group prefix="(" suffix=")" delimiter=", ">
<group delimiter=" ">
<choose>
<if variable="title" match="none"/>
<else-if type="thesis speech" match="any">
<text variable="genre"/>
</else-if>
</choose>
<text macro="event"/>
<choose>
<if variable="title" match="none"/>
<else-if type="thesis speech" match="any">
<text variable="genre"/>
</else-if>
</choose>
<text macro="event-note"/>
<group delimiter="; ">
<text macro="originally-published"/>
<group delimiter=", ">
<text macro="reprint-note"/>
<text macro="publisher"/>
</group>
</group>
<text macro="publisher"/>
<text macro="issued"/>
</group>
</else-if>
Expand Down Expand Up @@ -978,7 +1031,13 @@
<text variable="genre" text-case="capitalize-first"/>
</if>
</choose>
<text macro="publisher"/>
<group delimiter=". ">
<text macro="originally-published"/>
<group delimiter=", ">
<text macro="reprint"/>
<text macro="publisher"/>
</group>
</group>
<text macro="issued"/>
</group>
</else-if>
Expand Down

2 comments on commit edd45b7

@dhacker29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been trying for most of a day to add this feature to the SBL2 full note style https://github.com/citation-style-language/styles/blob/master/society-of-biblical-literature-fullnote-bibliography.cs l but without success. The citation format is almost identical except for Reprint is abbreviated to Repr. in the bibliography.
Any help would be appreciated.
Thanks,

Here is the SBL Handbook entry:
6.2.17 Reprint of a Recent Title

5. John Van Seters, In Search of History: Historiography in the Ancient World and the Origins of Biblical History (New Haven: Yale University Press, 1983; repr., Winona Lake, IN: Eisenbrauns, 1997), 35.

  Van Seters, John. In Search of History: Historiography in the Ancient World and the Origins of Biblical History. New Haven: Yale University Press, 1983. Repr., Winona Lake, IN: Eisenbrauns, 1997.

@adam3smith
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.