Skip to content

Commit

Permalink
Create new-harts-rules-the-oxford-style-guide-author-date.csl (#6163)
Browse files Browse the repository at this point in the history
  • Loading branch information
POBrien333 committed Sep 4, 2022
1 parent 49ab318 commit e503477
Showing 1 changed file with 354 additions and 0 deletions.
354 changes: 354 additions & 0 deletions new-harts-rules-the-oxford-style-guide-author-date.csl
Original file line number Diff line number Diff line change
@@ -0,0 +1,354 @@
<?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" page-range-format="chicago" default-locale="en-GB">
<info>
<title>New Hart's Rules: The Oxford Style Guide (author-date)</title>
<id>http://www.zotero.org/styles/new-harts-rules-the-oxford-style-guide-author-date</id>
<link href="http://www.zotero.org/styles/new-harts-rules-the-oxford-style-guide-author-date" rel="self"/>
<link href="http://www.zotero.org/styles/new-harts-rules-the-oxford-style-guide" rel="template"/>
<link href="http://www.oxforddictionaries.com/secondary/harts_rules/" rel="documentation"/>
<link href="https://forums.zotero.org/discussion/comment/399498/#Comment_399498" rel="documentation"/>
<author>
<name>Patrick O'Brien</name>
</author>
<category citation-format="author-date"/>
<category field="generic-base"/>
<updated>2022-07-28T12:23:02+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">
<terms>
<term name="editor" form="verb-short">ed. by</term>
<term name="edition" form="short">edn</term>
<term name="translator" form="verb-short">trans. by</term>
</terms>
</locale>
<macro name="author">
<group delimiter=". ">
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " suffix="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
<text macro="recipient"/>
</group>
</macro>
<macro name="recipient">
<group delimiter=" ">
<choose>
<if type="personal_communication">
<choose>
<if variable="genre">
<text variable="genre" text-case="capitalize-first"/>
</if>
<else>
<text term="letter" text-case="capitalize-first"/>
</else>
</choose>
</if>
</choose>
<text macro="recipient-name"/>
</group>
</macro>
<macro name="contributors">
<names variable="author">
<name form="short" and="text" delimiter-precedes-last="never"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text variable="title" form="short"/>
</substitute>
</names>
<text macro="recipient"/>
</macro>
<macro name="title">
<choose>
<if variable="title" match="none">
<text variable="genre"/>
</if>
<else-if type="bill book graphic legislation motion_picture report song" match="any">
<text variable="title" text-case="title" font-style="italic"/>
<group delimiter=" " prefix=", ">
<text term="version"/>
<text variable="version"/>
</group>
</else-if>
<else-if type="legal_case interview" match="any">
<text variable="title"/>
</else-if>
<else-if variable="reviewed-author">
<text variable="title" font-style="italic" prefix="review of "/>
</else-if>
<else>
<text variable="title" text-case="title" quotes="true"/>
</else>
</choose>
</macro>
<macro name="editor-translator">
<group delimiter=", ">
<group delimiter=" ">
<choose>
<if variable="container-author reviewed-author" match="any">
<group>
<names variable="container-author reviewed-author">
<label form="verb-short" text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</group>
</if>
</choose>
</group>
<names variable="editor translator" delimiter=", ">
<label form="verb-short" text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</group>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="chapter paper-conference" match="none">
<text macro="editor-translator"/>
</if>
</choose>
</macro>
<macro name="container-contributors">
<choose>
<if type="chapter paper-conference" match="any">
<text macro="editor-translator"/>
</if>
</choose>
</macro>
<macro name="collection-title">
<group delimiter=", ">
<choose>
<if type="article-journal">
<text variable="collection-title"/>
<text variable="collection-number"/>
</if>
<else>
<text variable="collection-title" text-case="title"/>
<text variable="collection-number"/>
</else>
</choose>
</group>
</macro>
<macro name="volume">
<choose>
<if type="article-journal article-magazine" match="any">
<group delimiter="/">
<text variable="volume"/>
<text variable="issue"/>
</group>
</if>
<else-if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
<group delimiter=", ">
<text macro="edition"/>
<group>
<number variable="number-of-volumes" form="numeric"/>
<text term="volume" form="short" prefix=" " plural="true"/>
</group>
</group>
</else-if>
</choose>
</macro>
<macro name="issue">
<choose>
<if type="article-journal">
<choose>
<if variable="volume">
<text macro="issued" prefix=" (" suffix=")"/>
</if>
<else>
<text macro="issued" prefix=", "/>
</else>
</choose>
</if>
<else-if variable="publisher-place publisher" match="any">
<group prefix=" (" suffix=")" delimiter=", ">
<group delimiter=" ">
<choose>
<if variable="title" match="none"/>
<else-if type="thesis speech" match="any">
<text variable="genre" prefix="unpublished "/>
</else-if>
</choose>
<text macro="event"/>
</group>
<text macro="publisher"/>
<text macro="issued"/>
</group>
</else-if>
<else>
<text macro="issued" prefix=", "/>
</else>
</choose>
</macro>
<macro name="locators-specific">
<choose>
<if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
<choose>
<if is-numeric="volume">
<number variable="volume" form="roman" font-variant="small-caps"/>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="container-title">
<choose>
<if type="chapter paper-conference" match="any">
<text term="in" suffix=" "/>
</if>
</choose>
<text variable="container-title" font-style="italic" text-case="title"/>
</macro>
<macro name="edition">
<choose>
<if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="recipient-name">
<names variable="recipient" delimiter=", ">
<label form="verb" prefix=" " suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="locators-newspaper">
<choose>
<if type="article-newspaper">
<group delimiter=", ">
<group delimiter=" ">
<text variable="edition"/>
<text term="edition"/>
</group>
<group>
<text term="section" suffix=" "/>
<text variable="section"/>
</group>
</group>
</if>
</choose>
</macro>
<macro name="event">
<group>
<text term="presented at" suffix=" "/>
<text variable="event"/>
</group>
</macro>
<macro name="publisher">
<choose>
<if type="thesis">
<text variable="publisher"/>
</if>
<else-if type="article-magazine article-newspaper" match="none">
<text variable="publisher-place"/>
</else-if>
</choose>
</macro>
<macro name="issued">
<choose>
<if type="graphic report article-newspaper article-magazine personal_communication" match="any">
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</if>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</macro>
<macro name="pages">
<text variable="page" prefix=", "/>
</macro>
<macro name="point-locators">
<group delimiter=" ">
<choose>
<if locator="page" match="none">
<label variable="locator" form="short"/>
</if>
</choose>
<text variable="locator"/>
</group>
</macro>
<macro name="archive">
<group delimiter=", ">
<text variable="archive_location"/>
<text variable="archive"/>
<text variable="archive-place"/>
</group>
</macro>
<macro name="access">
<group delimiter=", ">
<choose>
<if type="article-journal bill chapter legal_case legislation paper-conference" match="none">
<text macro="archive" prefix=", "/>
</if>
</choose>
</group>
<choose>
<if variable="URL">
<text variable="URL" prefix=" &lt;" suffix="&gt;"/>
<group prefix=" [" suffix="]">
<text term="accessed"/>
<date variable="accessed">
<date-part name="day" prefix=" "/>
<date-part name="month" prefix=" "/>
<date-part name="year" prefix=" "/>
</date>
</group>
</if>
</choose>
</macro>
<citation et-al-min="4" et-al-use-first="1" disambiguate-add-names="true" disambiguate-add-givenname="true">
<layout delimiter=", " prefix="(" suffix=")">
<group delimiter=", ">
<group delimiter=" ">
<text macro="contributors"/>
<text macro="issued"/>
</group>
<text macro="point-locators"/>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="7" et-al-use-first="6" subsequent-author-substitute="&#8212;&#8212;&#8212;">
<sort>
<key macro="author"/>
<key variable="title"/>
</sort>
<layout>
<group delimiter=", ">
<text macro="author"/>
<text macro="title"/>
<text macro="secondary-contributors"/>
<text macro="container-title"/>
<text macro="container-contributors"/>
<text macro="collection-title"/>
<text macro="volume"/>
</group>
<text macro="issue"/>
<text macro="locators-specific" prefix=", "/>
<text macro="locators-newspaper" prefix=", "/>
<text macro="pages"/>
<text macro="access"/>
</layout>
</bibliography>
</style>

0 comments on commit e503477

Please sign in to comment.