Created
October 20, 2017 20:24
-
-
Save bwiernik/8e0dca577d7ebf4c9fd6a77a9445f0d6 to your computer and use it in GitHub Desktop.
Custom citation style based on Antiquity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="never" page-range-format="chicago" default-locale="en-GB"> | |
<info> | |
<title>Antiquity</title> | |
<id>http://www.zotero.org/styles/antiquity</id> | |
<link href="http://www.zotero.org/styles/antiquity" rel="self"/> | |
<link href="http://www.zotero.org/styles/chicago-author-date" rel="template"/> | |
<link href="http://journal.antiquity.ac.uk/contribute" rel="documentation"/> | |
<author> | |
<name>Sebastian Karcher</name> | |
</author> | |
<category citation-format="author-date"/> | |
<category field="anthropology"/> | |
<issn>0003-598X</issn> | |
<updated>2014-03-02T18:37:55+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> | |
<terms> | |
<term name="editor" form="verb-short">ed.</term> | |
<term name="container-author" form="verb">by</term> | |
<term name="translator" form="verb-short">trans.</term> | |
<term name="editortranslator" form="verb"> | |
<single>edited and translated by</single> | |
<multiple>edited and translated by</multiple> | |
</term> | |
<term name="translator" form="short">trans.</term> | |
</terms> | |
</locale> | |
<macro name="secondary-contributors"> | |
<choose> | |
<if type="chapter paper-conference" match="none"> | |
<names variable="editor translator" delimiter=". "> | |
<label form="short" prefix=" (" suffix=")" plural="never"/> | |
<name initialize-with="." and="symbol" delimiter=", "/> | |
</names> | |
</if> | |
</choose> | |
</macro> | |
<macro name="container-contributors"> | |
<choose> | |
<if type="chapter paper-conference" match="any"> | |
<text macro="container-prefix" suffix=" " prefix=", "/> | |
<group delimiter=", "> | |
<names variable="container-author" delimiter=", "> | |
<name initialize-with="." and="symbol" delimiter=", "/> | |
<label form="short" prefix=" (" suffix=")" plural="never"/> | |
</names> | |
<names variable="editor translator" delimiter=", "> | |
<name initialize-with="." and="symbol" delimiter=", "/> | |
<label form="short" prefix=" (" suffix=")" plural="never"/> | |
</names> | |
</group> | |
</if> | |
</choose> | |
</macro> | |
<macro name="recipient"> | |
<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> | |
<names variable="recipient" delimiter=", "> | |
<label form="verb" prefix=" " text-case="lowercase" suffix=" "/> | |
<name initialize-with="." and="symbol" delimiter=", "/> | |
</names> | |
</macro> | |
<macro name="contributors"> | |
<group delimiter=". "> | |
<names variable="author"> | |
<name initialize-with="." and="symbol" name-as-sort-order="first" sort-separator=", " delimiter=", " delimiter-precedes-last="never" suffix="."> | |
<name-part name="family" font-variant="small-caps"/> | |
</name> | |
<label form="short" prefix=" (" suffix=")" plural="never"/> | |
<substitute> | |
<names variable="editor"/> | |
<names variable="translator"/> | |
<text macro="title"/> | |
</substitute> | |
</names> | |
<text macro="recipient"/> | |
</group> | |
</macro> | |
<macro name="contributors-short"> | |
<names variable="author"> | |
<name initialize-with="." form="short" and="symbol" delimiter=", "/> | |
<et-al font-style="italic"/> | |
<substitute> | |
<names variable="editor"/> | |
<names variable="translator"/> | |
<text macro="title"/> | |
</substitute> | |
</names> | |
</macro> | |
<macro name="interviewer"> | |
<names variable="interviewer" delimiter=", "> | |
<label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/> | |
<name initialize-with="." and="symbol" delimiter=", "/> | |
</names> | |
</macro> | |
<macro name="archive"> | |
<group delimiter=". "> | |
<text variable="archive_location" text-case="capitalize-first"/> | |
<text variable="archive"/> | |
<text variable="archive-place"/> | |
</group> | |
</macro> | |
<macro name="access"> | |
<group delimiter=". "> | |
<text macro="archive"/> | |
<choose> | |
<if variable="DOI"> | |
<text variable="DOI" prefix="https://doi.org/"/> | |
</if> | |
<else-if variable="PMCID"> | |
<text variable="PMCID" prefix="https://www.ncbi.nlm.nih.gov/articles/" /> | |
</else-if> | |
<else-if variable="PMID"> | |
<text variable="PMID" prefix="https://www.ncbi.nlm.nih.gov/pubmed/" /> | |
</else-if> | |
<else> | |
<group delimiter=". "> | |
<group delimiter=" "> | |
<text term="accessed" text-case="capitalize-first"/> | |
<date variable="accessed" delimiter=" "> | |
<date-part name="month"/> | |
<date-part name="day"/> | |
<date-part name="year"/> | |
</date> | |
</group> | |
<text variable="URL"/> | |
</group> | |
</else> | |
</choose> | |
</group> | |
</macro> | |
<macro name="title"> | |
<choose> | |
<if variable="title" match="none"> | |
<choose> | |
<if type="personal_communication" match="none"> | |
<text variable="genre" text-case="capitalize-first"/> | |
</if> | |
</choose> | |
</if> | |
<else-if type="bill book graphic legal_case legislation motion_picture song" match="any"> | |
<text variable="title" font-style="italic"/> | |
</else-if> | |
<else> | |
<text variable="title"/> | |
</else> | |
</choose> | |
</macro> | |
<macro name="edition"> | |
<choose> | |
<if type="bill book graphic legal_case legislation motion_picture report song" match="any"> | |
<choose> | |
<if is-numeric="edition"> | |
<group delimiter=" " prefix=". "> | |
<number variable="edition" form="ordinal"/> | |
<text term="edition" form="short" strip-periods="true"/> | |
</group> | |
</if> | |
<else> | |
<text variable="edition" prefix=". "/> | |
</else> | |
</choose> | |
</if> | |
<else-if type="chapter paper-conference" match="any"> | |
<choose> | |
<if is-numeric="edition"> | |
<group delimiter=" " prefix=", "> | |
<number variable="edition" form="ordinal"/> | |
<text term="edition" form="short"/> | |
</group> | |
</if> | |
<else> | |
<text variable="edition" prefix=", "/> | |
</else> | |
</choose> | |
</else-if> | |
</choose> | |
</macro> | |
<macro name="locators"> | |
<choose> | |
<if type="article-journal"> | |
<text variable="volume" prefix=" "/> | |
</if> | |
<else-if type="legal_case"> | |
<text variable="volume" prefix=", "/> | |
<text variable="container-title" prefix=" "/> | |
<text variable="page" prefix=" "/> | |
</else-if> | |
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any"> | |
<group prefix=". " delimiter=". "> | |
<group> | |
<text term="volume" form="short" text-case="capitalize-first" suffix=" "/> | |
<number variable="volume" form="numeric"/> | |
</group> | |
<group> | |
<number variable="number-of-volumes" form="numeric"/> | |
<text term="volume" form="short" prefix=" " plural="true"/> | |
</group> | |
</group> | |
</else-if> | |
<else-if type="chapter paper-conference" match="any"> | |
<choose> | |
<if variable="page" match="none"> | |
<group prefix=". "> | |
<text term="volume" form="short" text-case="capitalize-first" suffix=" "/> | |
<number variable="volume" form="numeric"/> | |
</group> | |
</if> | |
</choose> | |
</else-if> | |
</choose> | |
</macro> | |
<macro name="locators-chapter"> | |
<choose> | |
<if type="chapter paper-conference" match="any"> | |
<choose> | |
<if variable="page"> | |
<text variable="volume" prefix=", "/> | |
<text variable="page" prefix=": "/> | |
</if> | |
</choose> | |
</if> | |
</choose> | |
</macro> | |
<macro name="locators-article"> | |
<choose> | |
<if type="article-newspaper"> | |
<group prefix=", " delimiter=", "> | |
<group delimiter=" "> | |
<text variable="edition"/> | |
<text term="edition"/> | |
</group> | |
<group> | |
<text term="section" form="short" suffix=" "/> | |
<text variable="section"/> | |
</group> | |
</group> | |
</if> | |
<else-if type="article-journal"> | |
<choose> | |
<if variable="volume issue" match="any"> | |
<text variable="page" prefix=": "/> | |
</if> | |
<else> | |
<text variable="page" prefix=", "/> | |
</else> | |
</choose> | |
</else-if> | |
</choose> | |
</macro> | |
<macro name="point-locators"> | |
<choose> | |
<if variable="locator"> | |
<choose> | |
<if locator="page" match="none"> | |
<choose> | |
<if type="bill book graphic legal_case legislation motion_picture report song" match="any"> | |
<choose> | |
<if variable="volume"> | |
<group> | |
<text term="volume" form="short" suffix=" "/> | |
<number variable="volume" form="numeric"/> | |
<label variable="locator" form="short" prefix=", " suffix=" "/> | |
</group> | |
</if> | |
<else> | |
<label variable="locator" form="short" suffix=" "/> | |
</else> | |
</choose> | |
</if> | |
<else> | |
<label variable="locator" form="short" suffix=" "/> | |
</else> | |
</choose> | |
</if> | |
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any"> | |
<number variable="volume" form="numeric" suffix=":"/> | |
</else-if> | |
</choose> | |
<text variable="locator"/> | |
</if> | |
</choose> | |
</macro> | |
<macro name="container-prefix"> | |
<text term="in"/> | |
</macro> | |
<macro name="container-title"> | |
<choose> | |
<if type="legal_case" match="none"> | |
<text variable="container-title" font-style="italic"/> | |
</if> | |
</choose> | |
</macro> | |
<macro name="publisher"> | |
<group delimiter=": "> | |
<text variable="publisher-place"/> | |
<text variable="publisher"/> | |
</group> | |
</macro> | |
<macro name="date"> | |
<choose> | |
<if variable="issued"> | |
<date variable="issued"> | |
<date-part name="year"/> | |
</date> | |
</if> | |
<else-if variable="accessed"> | |
<date variable="accessed"> | |
<date-part name="year"/> | |
</date> | |
</else-if> | |
</choose> | |
</macro> | |
<macro name="day-month"> | |
<date variable="issued"> | |
<date-part name="month"/> | |
<date-part name="day" prefix=" "/> | |
</date> | |
</macro> | |
<macro name="collection-title"> | |
<text variable="collection-title" text-case="title"/> | |
<text variable="collection-number" prefix=" "/> | |
</macro> | |
<macro name="event"> | |
<group> | |
<text term="presented at" suffix=" "/> | |
<text variable="event"/> | |
</group> | |
</macro> | |
<macro name="description"> | |
<choose> | |
<if type="interview"> | |
<group delimiter=". "> | |
<text macro="interviewer"/> | |
<text variable="medium" text-case="capitalize-first"/> | |
</group> | |
</if> | |
<else> | |
<text variable="medium" text-case="capitalize-first" prefix=". "/> | |
</else> | |
</choose> | |
<choose> | |
<if variable="title" match="none"/> | |
<else-if type="thesis personal_communication" match="any"/> | |
<else> | |
<group delimiter=" " prefix=". "> | |
<text variable="genre" text-case="capitalize-first"/> | |
<choose> | |
<if type="report"> | |
<text variable="number"/> | |
</if> | |
</choose> | |
</group> | |
</else> | |
</choose> | |
<!--This is for computer programs only. Localization new to 1.0.1, so may be missing in many locales--> | |
<group delimiter=" " prefix=" (" suffix=")"> | |
<text term="version"/> | |
<text variable="version"/> | |
</group> | |
</macro> | |
<macro name="issue"> | |
<choose> | |
<if type="legal_case"> | |
<text variable="authority" prefix=". "/> | |
</if> | |
<else-if type="speech"> | |
<group prefix=" " delimiter=", "> | |
<text macro="event"/> | |
<text macro="day-month"/> | |
<text variable="event-place"/> | |
</group> | |
</else-if> | |
<else-if type="article-newspaper article-magazine personal_communication" match="any"> | |
<text macro="day-month" prefix=", "/> | |
</else-if> | |
<else> | |
<group prefix=". " delimiter=", "> | |
<choose> | |
<if type="thesis"> | |
<text variable="genre" text-case="capitalize-first"/> | |
</if> | |
</choose> | |
<text macro="publisher"/> | |
</group> | |
</else> | |
</choose> | |
</macro> | |
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name"> | |
<layout prefix="(" suffix=")" delimiter="; "> | |
<group delimiter=": "> | |
<group delimiter=" "> | |
<text macro="contributors-short"/> | |
<text macro="date"/> | |
</group> | |
<text macro="point-locators"/> | |
</group> | |
</layout> | |
</citation> | |
<bibliography hanging-indent="true" et-al-min="99" et-al-use-first="20" subsequent-author-substitute="—" entry-spacing="0"> | |
<sort> | |
<key macro="contributors"/> | |
<key variable="issued"/> | |
</sort> | |
<layout suffix="."> | |
<group delimiter=" "> | |
<text macro="contributors"/> | |
<group delimiter=". "> | |
<text macro="date"/> | |
<text macro="title"/> | |
</group> | |
</group> | |
<text macro="description"/> | |
<text macro="secondary-contributors" prefix=". "/> | |
<text macro="container-contributors"/> | |
<text macro="container-title" prefix=" "/> | |
<text macro="edition"/> | |
<text macro="locators-chapter"/> | |
<text macro="locators"/> | |
<text macro="collection-title" prefix=". "/> | |
<text macro="issue"/> | |
<text macro="locators-article"/> | |
<text macro="access" prefix=". "/> | |
</layout> | |
</bibliography> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment