Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OU Harvard improvements #2079

Merged
124 changes: 80 additions & 44 deletions the-open-university-harvard.csl
Expand Up @@ -4,15 +4,18 @@
<title>The Open University (Harvard)</title>
<id>http://www.zotero.org/styles/the-open-university-harvard</id>
<link href="http://www.zotero.org/styles/the-open-university-harvard" rel="self"/>
<link href="http://www.open.ac.uk/library/help-and-support/referencing-styles" rel="documentation"/>
<link href="http://www.open.ac.uk/library/help-and-support/referencing-and-plagiarism" rel="documentation"/>
<author>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>
</author>
<contributor>
<name>Pablo Melchor</name>
</contributor>
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The Open University Harvard author-date style</summary>
<updated>2015-06-26T15:51:02+00:00</updated>
<updated>2016-05-25T07:13: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>
<macro name="editor">
Expand Down Expand Up @@ -50,19 +53,24 @@
<name and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
</names>
</macro>
<macro name="director">
<names variable="author" prefix="Directed by "/>
</macro>
<macro name="access">
<choose>
<if variable="URL">
<text term="online" prefix="[" suffix="]" text-case="capitalize-first"/>
<text value=" Available at: "/>
<text variable="URL"/>
<group prefix=" (" delimiter=" " suffix=").">
<text term="accessed" text-case="capitalize-first"/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
<group delimiter=" ">
<text term="online" prefix="[" suffix="]." text-case="capitalize-first"/>
<text term="available at" suffix=":" text-case="capitalize-first"/>
<text variable="URL"/>
<group prefix="(" delimiter=" " suffix=").">
<text term="accessed" text-case="capitalize-first"/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</group>
</if>
</choose>
Expand Down Expand Up @@ -151,16 +159,28 @@
<key macro="author-short"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group>
<text term="page" form="short" suffix=" "/>
<text variable="locator"/>
</group>
</group>
<choose>
<!-- Specific formats (citation) -->
<if type="motion_picture">
<group delimiter=", ">
<text macro="title"/>
<text macro="year-date"/>
</group>
</if>
<!-- Generic/fallback format (citation) -->
<else>
<group delimiter=", ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group>
<label variable="locator" form="short" suffix=" "/>
<text variable="locator"/>
</group>
</group>
</else>
</choose>
</layout>
</citation>
<bibliography>
Expand All @@ -170,27 +190,43 @@
<key variable="title"/>
</sort>
<layout suffix=".">
<group delimiter=" ">
<text macro="author"/>
<text macro="year-date" prefix="(" suffix=")"/>
<group delimiter=" " suffix=",">
<text macro="title"/>
<text macro="translator" prefix="(" suffix=")"/>
</group>
<text macro="edition"/>
<text macro="container-prefix"/>
<group delimiter=", ">
<text macro="editor"/>
<text variable="container-title" font-style="italic"/>
<text variable="collection-title"/>
<text variable="genre"/>
<text macro="publisher"/>
<text macro="locators"/>
<text macro="published-date"/>
<text macro="pages"/>
<text macro="access"/>
</group>
</group>
<choose>
<!-- Specific formats (bibliography) -->
<if type="motion_picture">
<group delimiter=" ">
<group delimiter=" " suffix=" [Film].">
<text macro="title"/>
<text macro="year-date" prefix="(" suffix=")"/>
<text macro="director"/>
</group>
<text macro="publisher"/>
</group>
</if>
<!-- Generic/fallback format (bibliography) -->
<else>
<group delimiter=" ">
<text macro="author"/>
<text macro="year-date" prefix="(" suffix=")"/>
<group delimiter=" " suffix=",">
<text macro="title"/>
<text macro="translator" prefix="(" suffix=")"/>
</group>
<text macro="edition"/>
<text macro="container-prefix"/>
<group delimiter=", ">
<text macro="editor"/>
<text variable="container-title" font-style="italic"/>
<text variable="collection-title"/>
<text variable="genre"/>
<text macro="publisher"/>
<text macro="locators"/>
<text macro="published-date"/>
<text macro="pages"/>
</group>
<text macro="access"/>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
</style>