Skip to content
Browse files

Update Birmingham style.

  • Loading branch information...
1 parent 6d9c2d0 commit 3afe8670c40c4f6d786e4a8777526af1ffc5e221 @rmzelle rmzelle committed Nov 2, 2012
View
2 dependent/emerging-infectious-diseases.csl
@@ -11,4 +11,4 @@
<updated>2012-11-02T12:00:00+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>
-</style>
+</style>
View
93 harvard-university-of-birmingham.csl
@@ -28,6 +28,12 @@
<name form="short" and="text" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
</names>
</macro>
+ <!-- for sorting - as editor but with no label -->
+ <macro name="editor-sort">
+ <names variable="editor" delimiter=", ">
+ <name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
+ </names>
+ </macro>
<macro name="bookauthor">
<names variable="container-author">
<name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
@@ -69,9 +75,12 @@
<text macro="editor"/>
<!-- for anonymous works, use title -->
<choose>
- <if variable="container-title">
- <text variable="title" font-weight="normal"/>
+ <if type="webpage">
+ <text variable="title" font-weight="bold"/>
</if>
+ <else-if variable="container-title">
+ <text variable="title" font-weight="normal"/>
+ </else-if>
<else>
<text variable="title" font-weight="bold"/>
</else>
@@ -108,13 +117,52 @@
</else>
</choose>
</macro>
+ <!-- as author but with no label. Used to sort references -->
+ <macro name="author-sort">
+ <choose>
+ <!--UoB requires title rather than author for videos, films and broadcasts -->
+ <if type="broadcast motion_picture" match="any">
+ <choose>
+ <if variable="container-title">
+ <text variable="container-title" font-weight="bold"/>
+ </if>
+ <else-if variable="title">
+ <text variable="title" font-weight="bold"/>
+ </else-if>
+ </choose>
+ </if>
+ <else-if type="bill legislation" match="any">
+ <text variable="title" font-weight="bold"/>
+ </else-if>
+ <else>
+ <names variable="author">
+ <name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
+ <substitute>
+ <text macro="editor-sort"/>
+ <!-- for anonymous works, use title -->
+ <choose>
+ <if type="webpage">
+ <text variable="title" font-weight="bold"/>
+ </if>
+ <else-if variable="container-title">
+ <text variable="title" font-weight="normal"/>
+ </else-if>
+ <else>
+ <text variable="title" font-weight="bold"/>
+ </else>
+ </choose>
+ </substitute>
+ </names>
+ </else>
+ </choose>
+ </macro>
<macro name="access">
<group delimiter=". ">
<group>
<text value="Available from: "/>
<!-- UoB like the name of the elibrary for books - store it in archive -->
<choose>
- <if type="book" match="any">
+ <if type="book chapter" match="any">
<text variable="archive" suffix=". "/>
</if>
</choose>
@@ -240,7 +288,7 @@
</citation>
<bibliography hanging-indent="false" et-al-min="3" et-al-use-first="3" et-al-subsequent-min="3" et-al-subsequent-use-first="3">
<sort>
- <key macro="author"/>
+ <key macro="author-sort"/>
<key macro="year-date" sort="ascending"/>
<key variable="title"/>
</sort>
@@ -299,14 +347,6 @@
<text macro="online"/>
<text macro="edition"/>
</group>
- <group prefix=" " delimiter=". " suffix="">
- <date variable="issued">
- <date-part name="day" suffix=" "/>
- <date-part name="month" suffix=" "/>
- <date-part name="year"/>
- </date>
- <text variable="container-title"/>
- </group>
</group>
</else-if>
<else-if type="manuscript">
@@ -321,7 +361,7 @@
<text macro="publisher"/>
</group>
</else-if>
- <else-if type="article-journal article-magazine article-newspaper interview manuscript map patent personal_communication song speech thesis webpage" match="any">
+ <else-if type="article-journal article-magazine article-newspaper interview map patent personal_communication song speech" match="any">
<group>
<group suffix=".">
<text macro="title" prefix=" "/>
@@ -368,14 +408,15 @@
</group>
</group>
</else-if>
- <else-if type="bill book graphic legal_case legislation report" match="any">
+ <else-if type="bill book graphic legal_case report" match="any">
<group>
<group delimiter=". ">
<group prefix=" " delimiter="">
<text macro="title"/>
<group delimiter=" " prefix=". ">
<text variable="collection-title"/>
<text variable="collection-number"/>
+ <text variable="number"/>
</group>
<group delimiter=". " prefix=". ">
<text macro="volumes"/>
@@ -394,7 +435,7 @@
<text macro="title" prefix="" suffix=".”"/>
<group prefix=" " delimiter=" ">
<text term="in" text-case="capitalize-first" suffix=" " text-decoration="underline"/>
- <text macro="bookauthor" suffix="."/>
+ <text macro="bookauthor" suffix=""/>
<group delimiter=" " prefix=" " suffix=".">
<text variable="container-title" font-weight="bold"/>
<text variable="collection-title"/>
@@ -411,17 +452,19 @@
<else-if type="paper-conference" match="any">
<group>
<text macro="title" prefix="" suffix=".”"/>
- <group prefix=" " delimiter=" ">
- <text term="in" text-case="capitalize-first" suffix=" " text-decoration="underline"/>
- <text macro="editor" suffix="."/>
- <text variable="container-title" font-weight="bold" suffix="."/>
- <text variable="collection-title" suffix="."/>
- <text macro="online" suffix="." prefix=""/>
- <group suffix="." delimiter=". ">
- <text variable="publisher-place" font-weight="bold"/>
- <text macro="issued" font-weight="bold"/>
+ <group delimiter=". ">
+ <group prefix=" " delimiter=" ">
+ <text term="in" text-case="capitalize-first" suffix=" " text-decoration="underline"/>
+ <text macro="editor" suffix="."/>
+ <text variable="container-title" font-weight="bold" suffix="."/>
+ <text variable="collection-title"/>
+ <group suffix="" delimiter=". ">
+ <text variable="publisher-place" font-weight="bold"/>
+ <text macro="issued" font-weight="bold"/>
+ </group>
+ <text macro="online" suffix="" prefix=""/>
</group>
- <group>
+ <group delimiter=". " prefix="">
<text variable="publisher" prefix=""/>
<text macro="pages"/>
</group>
View
2 national-science-foundation-grant-proposals.csl
@@ -16,7 +16,7 @@
</info>
<citation>
<layout prefix="[" suffix="]" delimiter=", ">
- <text variable="citation-number"/>
+ <text variable="citation-number"/>
</layout>
</citation>
<bibliography>

0 comments on commit 3afe867

Please sign in to comment.
Something went wrong with that request. Please try again.