Skip to content

Commit

Permalink
Update harvard-university-of-bath.csl (#5299)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ball authored Feb 26, 2021
1 parent 5fce84f commit 51e3f4c
Showing 1 changed file with 77 additions and 22 deletions.
99 changes: 77 additions & 22 deletions harvard-university-of-bath.csl
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<!-- This style was edited with the Visual CSL Editor (http://editor.citationstyles.org/visualEditor/) -->
<info>
<title>University of Bath - Harvard</title>
<id>http://www.zotero.org/styles/harvard-university-of-bath</id>
<link href="http://www.zotero.org/styles/harvard-university-of-bath" rel="self"/>
<link href="http://www.zotero.org/styles/harvard-bournemouth-university" rel="template"/>
<link href="https://library.bath.ac.uk/referencing/harvard-bath" rel="documentation"/>
<link href="https://github.com/alex-ball/bathbib/" rel="documentation"/>
<author>
<name>Rob Fuller</name>
<email>rob.fuller1@gmail.com</email>
</author>
<author>
<name>Alex Ball</name>
<email>ab318@bath.ac.uk</email>
</author>
<author>
<name>Rob Fuller</name>
<email>rob.fuller1@gmail.com</email>
</author>
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>Adaptation of Harvard referencing style used at the University of Bath.</summary>
<updated>2019-09-13T15:00:00+00:00</updated>
<updated>2021-02-24T15: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>
<locale xml:lang="en">
Expand All @@ -45,25 +44,40 @@
<label form="short" prefix=", " text-case="lowercase"/>
</names>
</macro>
<macro name="byeditor">
<names variable="editor">
<label form="verb-short" text-case="capitalize-first" suffix=" "/>
<name and="text" delimiter-precedes-last="never" initialize-with="."/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all"/>
<label form="short" prefix=" " text-case="lowercase"/>
<substitute>
<names variable="editor">
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all"/>
<label form="short" prefix=", " text-case="lowercase"/>
</names>
<text macro="title"/>
<choose>
<if type="entry"/>
<else>
<names variable="editor">
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all"/>
<label form="short" prefix=", " text-case="lowercase"/>
</names>
</else>
</choose>
<text macro="title-label"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter-precedes-last="never" initialize-with="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="entry"/>
<else>
<names variable="editor"/>
</else>
</choose>
<text macro="title-short"/>
</substitute>
</names>
Expand Down Expand Up @@ -127,7 +141,7 @@
<if type="bill broadcast book dataset graphic legal_case map motion_picture musical_score patent report song speech webpage thesis" match="any">
<text variable="title" font-style="italic"/>
</if>
<else-if type="legislation">
<else-if type="legislation legal_case" match="any">
<choose>
<if variable="container-title">
<text variable="title"/>
Expand All @@ -150,16 +164,43 @@
<if type="thesis motion_picture broadcast" match="any"/>
<else-if type="report" variable="number"/>
<else-if type="patent" variable="number"/>
<else-if type="bill" variable="number"/>
<else>
<text variable="genre" prefix=" [" suffix="]"/>
</else>
</choose>
</macro>
<macro name="title-short">
<choose>
<if type="bill broadcast book dataset graphic map motion_picture musical_score patent report song webpage thesis" match="any">
<text variable="title" font-style="italic"/>
<if type="bill broadcast dataset graphic map motion_picture musical_score patent report song webpage thesis" match="any">
<text variable="title" form="short" font-style="italic"/>
</if>
<else-if type="legislation legal_case" match="any">
<choose>
<if variable="container-title">
<text variable="title" form="short"/>
</if>
<else>
<text variable="title" form="short" font-style="italic"/>
</else>
</choose>
</else-if>
<else-if type="entry">
<text variable="container-title" form="short"/>
</else-if>
<else>
<text variable="title" form="short"/>
</else>
</choose>
</macro>
<macro name="title-label">
<choose>
<if type="entry">
<text variable="container-title"/>
</if>
<else-if type="bill broadcast dataset graphic legal_case map motion_picture musical_score patent report song speech webpage thesis" match="any">
<text variable="title" font-style="italic"/>
</else-if>
<else-if type="legislation legal_case" match="any">
<choose>
<if variable="container-title">
Expand All @@ -171,7 +212,7 @@
</choose>
</else-if>
<else>
<text variable="title-short"/>
<text variable="title"/>
</else>
</choose>
</macro>
Expand Down Expand Up @@ -449,6 +490,19 @@
</group>
<text prefix=" " suffix="." macro="publisher"/>
</else-if>
<else-if type="entry">
<group prefix=" " suffix="." delimiter=". ">
<text macro="byeditor"/>
<text macro="edition"/>
<group delimiter=" ">
<text variable="title" font-style="italic"/>
<text macro="online"/>
</group>
<text macro="series"/>
<text macro="status"/>
<text macro="publisher"/>
</group>
</else-if>
<else-if type="article-journal" match="any">
<group prefix=" " suffix="." delimiter=". ">
<text macro="title"/>
Expand Down Expand Up @@ -565,12 +619,12 @@
</group>
</else-if>
<else-if type="graphic map" match="any">
<group prefix=" " suffix="." delimiter=" ">
<group delimiter=", ">
<group prefix=" " suffix="." delimiter=", ">
<group delimiter=" ">
<text macro="title"/>
<text variable="scale"/>
<text macro="online"/>
</group>
<text macro="online"/>
<text variable="scale"/>
</group>
<group prefix=" " suffix="." delimiter=". ">
<text macro="edition"/>
Expand Down Expand Up @@ -616,9 +670,10 @@
</choose>
</group>
<group prefix=" " suffix="." delimiter=". ">
<text macro="editor"/>
<text macro="edition"/>
<text macro="series"/>
<text macro="status"/>
<text macro="editor"/>
</group>
<group prefix=" " suffix="." delimiter=", ">
<choose>
Expand Down

0 comments on commit 51e3f4c

Please sign in to comment.