Skip to content

Instantly share code, notes, and snippets.

@JoshCraig
Created September 6, 2016 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshCraig/46f07e0aa0534bb9a60b7a4310f856b1 to your computer and use it in GitHub Desktop.
Save JoshCraig/46f07e0aa0534bb9a60b7a4310f856b1 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" default-locale="en-GB" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="expanded"><!-- Productivity Commission 2013 (Harvard-based author-date system)
NOTES
- Originated from the http://www.zotero.org/styles/UniSA-Harvard3 style
- Last updated 12 July 2016
TO DO
- Incorporate more exotic resource types from the style manual
-->
<info>
<title>Productivity Commission (Harvard-based author-date system)</title>
<id>http://www.zotero.org/styles/unisa-harvard</id>
<link href="http://www.zotero.org/styles/unisa-harvard" rel="self"/>
<author>
<name>Josh Craig</name>
<email>jcraig@pc.gov.au</email>
</author>
<category citation-format="author-date"/>
<category field="generic-base"/>
<updated>2013-06-07T15:58:59+00:00</updated>
<summary>Productivity Commission Citation Style based on University of South Austalia 2011 citation style</summary>
<link href="http://www.unisa.edu.au/ltu/students/study/referencing/harvard.pdf" rel="documentation"/>
<rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
</info>
<locale xml:lang="en">
<terms>
<term name="editor" form="short">
<single> (ed.)</single>
<multiple> (eds)</multiple>
</term>
<term name="translator" form="short">
<single></single>
<multiple></multiple>
</term>
<term name="edition" form="short">edn</term>
<term name="volume" form="short">vol.</term>
<term name="issue" form="short">no.&#160;</term>
<term name="no date" form="short">nd</term>
<!-- Unlike the en-US locale, inner and outer quotation marks are swapped here -->
<term name="open-quote">&#8216;</term>
<term name="close-quote">&#8217;</term>
<term name="open-inner-quote">&#8220;</term>
<term name="close-inner-quote">&#8221;</term>
</terms>
<style-options punctuation-in-quote="false"/>
</locale>
<macro name="editor">
<choose>
<if type="chapter">
<text term="in" text-case="lowercase"/>
<names variable="editor" delimiter=", " prefix=" ">
<name name-as-sort-order="all" and="text" initialize-with="." delimiter=", " delimiter-precedes-last="never"/>
<label form="short" suffix="" strip-periods="true"/>
</names>
</if>
<else>
<names variable="editor" delimiter=", ">
<name name-as-sort-order="all" and="text" initialize-with="." delimiter=", " delimiter-precedes-last="never"/>
<label form="short" suffix="" strip-periods="true"/>
</names>
</else>
</choose>
</macro>
<macro name="noauthor_title">
<!-- This macro is only called when author is empty and the trick with substitute automatically suppresses repeating elements -->
<names variable="author">
<name/>
<substitute>
<text variable="container-title" font-style="italic"/>
</substitute>
</names>
</macro>
<macro name="author">
<choose>
<if variable="translator" match="any">
<names variable="translator">
<name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")" strip-periods="true"/>
</names>
<names variable="author" prefix=" (" suffix=")">
<name form="short" name-as-sort-order="all" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never" initialize-with="."/>
</names>
</if>
<else>
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")" strip-periods="true"/>
<substitute>
<text macro="editor"/>
<text macro="noauthor_title"/>
</substitute>
</names>
</else>
</choose>
</macro>
<macro name="author-short">
<choose>
<if variable="translator" match="all">
<names variable="translator">
<label form="short" prefix="" suffix=" ;" strip-periods="true"/>
<name form="short" name-as-sort-order="all" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never" initialize-with="."/>
</names>
</if>
<else>
<names variable="author">
<label form="short" prefix="" suffix=" ;" strip-periods="true"/>
<name form="short" name-as-sort-order="all" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never" initialize-with="."/>
<substitute>
<names variable="editor"/>
<text macro="noauthor_title"/>
</substitute>
</names>
</else>
</choose>
</macro>
<macro name="access">
<choose>
<if variable="URL accessed" match="all">
<text variable="URL" prefix=" " suffix=""/>
<date variable="accessed" prefix=" (accessed " suffix=")">
<date-part name="day" form="numeric" suffix=" "/>
<date-part name="month" form="long" suffix=" "/>
<date-part name="year" form="long"/>
</date>
</if>
</choose>
</macro>
<macro name="title">
<choose>
<if type="chapter paper-conference article-journal article-magazine article-newspaper broadcast interview manuscript map personal_communication speech thesis map song" match="none"><!-- book, webpage, document -->
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title" quotes="true"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher"/>
<!-- The special treatment of event is due to the "place" field being shared (e.g. in a "conference paper") for both "event-place" and "publisher-place" in Zotero -->
<choose>
<if variable="container-title">
<text variable="publisher-place"/>
</if>
<else-if variable="event" match="none">
<text variable="publisher-place"/>
</else-if>
</choose>
</group>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short" strip-periods="true"/>
</else>
</choose>
</macro>
<macro name="day-month-date">
<choose>
<!-- "post" and "post-weblog" are currently not mapped by Zotero 2.1, "podcast" could be worked around as a report -->
<if type="article-newspaper report post post-weblog paper-conference" match="any">
<date variable="issued">
<date-part name="day" form="numeric" suffix=" "/>
<date-part name="month" form="long"/>
</date>
</if>
</choose>
</macro>
<macro name="pages">
<label variable="page" form="short" suffix=".&#160;" strip-periods="true"/>
<text variable="page"/>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" strip-periods="true"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<macro name="issue">
<choose>
<if is-numeric="issue">
<group delimiter="">
<text term="issue" form="short"/>
<number variable="issue"/>
</group>
</if>
<else>
<text variable="issue"/>
</else>
</choose>
</macro>
<macro name="volume">
<group delimiter=" ">
<text term="volume" form="short" strip-periods="true"/>
<text variable="volume"/>
</group>
</macro>
<macro name="genre">
<choose>
<if type="thesis">
<text variable="genre" suffix=" thesis"/>
</if>
<else>
<text variable="genre"/>
</else>
</choose>
</macro>
<macro name="container">
<choose>
<if type="paper-conference">
<choose>
<if variable="container-title">
<text term="presented at" text-case="lowercase"/>
<text variable="container-title" font-style="italic" prefix=" "/>
</if>
<else-if variable="event">
<text value="presented at "/>
<text variable="event"/>
<text variable="event-place" prefix=", "/>
</else-if>
</choose>
</if>
<else-if type="webpage">
<text variable="container-title"/>
</else-if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
</macro>
<citation et-al-min="4" et-al-use-first="1" et-al-subsequent-min="4" et-al-subsequent-use-first="1" disambiguate-add-givenname="false" givenname-disambiguation-rule="by-cite" disambiguate-add-year-suffix="true" collapse="year">
<sort>
<key macro="author-short"/>
<key macro="year-date"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<group delimiter="&#160;">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group>
<label variable="locator" suffix=".&#160;" form="short" strip-periods="true"/>
<text variable="locator"/>
</group>
</group>
</layout>
</citation>
<bibliography et-al-min="99" et-al-use-first="99" hanging-indent="true" entry-spacing="1" line-spacing="1" subsequent-author-substitute="&#8212;&#8212;" subsequent-author-substitute-rule="partial-each">
<sort>
<key macro="author"/>
<key macro="year-date"/>
<key macro="title"/>
</sort>
<layout>
<choose>
<if type="personal_communication" match="none">
<text macro="author"/>
<group prefix=" " delimiter=", " suffix=".">
<text macro="year-date"/>
<text macro="title"/>
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<group delimiter=", ">
<text macro="container"/>
<text macro="edition"/>
<text macro="editor"/>
<text macro="genre"/>
<text macro="day-month-date"/>
<text macro="volume"/>
<text macro="issue"/>
<text variable="number"/>
<text variable="collection-title"/>
<text variable="collection-number"/>
<text macro="publisher"/>
<text variable="medium"/>
</group>
</if>
<else-if type="chapter">
<group delimiter=", ">
<text macro="editor"/>
<text macro="container"/>
<text macro="edition"/>
<text macro="genre"/>
<text macro="day-month-date"/>
<text macro="volume"/>
<text macro="issue"/>
<text variable="collection-title"/>
<text macro="publisher"/>
<text variable="medium"/>
</group>
</else-if>
<else-if type="paper-conference">
<group delimiter=", ">
<text macro="editor"/>
<text macro="volume"/>
<text macro="issue"/>
<text macro="container"/>
<text macro="edition"/>
<text macro="genre"/>
<text variable="medium"/>
<text macro="publisher"/>
<text macro="day-month-date"/>
</group>
</else-if>
<else>
<group delimiter=", ">
<text macro="editor"/>
<text macro="genre"/>
<text macro="publisher"/>
<text macro="container"/>
<text macro="day-month-date"/>
<text variable="medium"/>
<text variable="volume" prefix="vol.&#160;"/>
<text macro="issue"/>
</group>
</else>
</choose>
<text macro="pages"/>
<text macro="access"/>
</group>
</if>
</choose>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment