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

Updated OSCOLA CSL style that uses journal abbreviations, if they are… #7452

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions oscola.csl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="never" default-locale="en-GB">
<!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
<info>
<title>OSCOLA (Oxford University Standard for Citation of Legal Authorities)</title>
<title-short>OSCOLA</title-short>
Expand All @@ -10,10 +11,13 @@
<author>
<name>Sebastian Karcher</name>
</author>
<contributor>
<name>Aaron Timoshanko</name>
</contributor>
<category citation-format="note"/>
<category field="law"/>
<summary>The OSCOLA Standards. For a Zotero Group showing data-entry in Zotero see: https://www.zotero.org/groups/oscola_samples/items/order/itemType</summary>
<updated>2013-11-15T01:14:57+00:00</updated>
<updated>2025-02-23T10:56:32+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>
Expand All @@ -38,9 +42,7 @@
<term name="et-al">and others</term>
</terms>
</locale>
<!--Authors and Persons-->
<macro name="author-note">
<!--for bills & hearing this should start with jurisdiction once available-->
<choose>
<if type="interview">
<group delimiter=", ">
Expand Down Expand Up @@ -123,7 +125,6 @@
</choose>
</macro>
<macro name="author">
<!--for bills & hearing this should start with jurisdiction once available-->
<choose>
<if type="interview">
<group delimiter=", ">
Expand Down Expand Up @@ -184,7 +185,6 @@
</names>
</group>
</macro>
<!-- Titles -->
<macro name="title">
<choose>
<if type="book motion_picture treaty" match="any">
Expand Down Expand Up @@ -224,7 +224,6 @@
</else>
</choose>
</macro>
<!--Dates-->
<macro name="issued-year">
<date variable="issued" form="text" date-parts="year"/>
</macro>
Expand All @@ -242,7 +241,6 @@
<text macro="issued-year" prefix="(" suffix=")"/>
</else-if>
<else-if variable="container-title volume number" match="any">
<!--no year in square brackets for unreported case w/o medium neutral citation-->
<text macro="issued-year" prefix="[" suffix="]"/>
</else-if>
</choose>
Expand All @@ -252,10 +250,9 @@
</else-if>
</choose>
</macro>
<!--publication info -->
<macro name="publisher">
<choose>
<if type="book chapter broadcast personal_communication manuscript paper-conference article-newspaper report legislation motion_picture speech interview thesis entry-encyclopedia webpage post-weblog" match="any">
<if type="book chapter broadcast personal_communication manuscript paper-conference article-newspaper report legislation motion_picture speech interview thesis entry-encyclopedia webpage post-weblog article" match="any">
<group delimiter=" ">
<group prefix="(" suffix=")" delimiter=", ">
<choose>
Expand All @@ -267,18 +264,15 @@
<date variable="issued" form="text"/>
</else-if>
<else-if type="legislation bill" match="any">
<!--this should be jurisdiction we use code instead-->
<text variable="container-title" strip-periods="true"/>
</else-if>
<else>
<!--this won't work in Zotero yet, but does no harm -->
<names variable="director">
<label form="verb" text-case="capitalize-first" suffix=" "/>
<name delimiter-precedes-last="never" and="text" delimiter=", " initialize="false" initialize-with=""/>
</names>
<text macro="editor"/>
<choose>
<!--if none of these, this we don't want edition either. Might be Loose-Leaf-->
<if variable="publisher issued genre container-title" match="any">
<text macro="edition"/>
</if>
Expand All @@ -303,6 +297,10 @@
<else-if type="interview" match="any">
<text macro="issued-full"/>
</else-if>
<else-if type="article" match="any">
<text variable="publisher" strip-periods="true"/>
<text macro="issued-full"/>
</else-if>
<else>
<group delimiter=" ">
<text variable="publisher" strip-periods="true"/>
Expand Down Expand Up @@ -395,7 +393,6 @@
<choose>
<if type="article-journal article-magazine article-newspaper legal_case" match="any">
<group delimiter=", ">
<!--Assume that only cases with a Medium Neutral Citation have a docket number -->
<choose>
<if variable="authority number" match="all">
<group delimiter=" ">
Expand All @@ -414,6 +411,16 @@
</if>
</choose>
</if>
<else-if type="article-journal" match="any">
<choose>
<if match="any" variable="container-title-short">
<text variable="container-title-short" form="short" strip-periods="true"/>
</if>
<else>
<text variable="container-title" strip-periods="true"/>
</else>
</choose>
</else-if>
<else-if type="article-magazine article-newspaper" match="any">
<text variable="container-title" font-style="italic"/>
</else-if>
Expand Down Expand Up @@ -500,7 +507,6 @@
</else-if>
</choose>
</macro>
<!--Others -->
<macro name="treaty-catchall">
<choose>
<if type="treaty">
Expand Down Expand Up @@ -534,7 +540,6 @@
</names>
</macro>
<macro name="sort-type">
<!--This should just sort secondary sources first. I'm leaving the rest from AGLC for simplicity-->
<choose>
<if type="book chapter paper-conference article-magazine article-newspaper article-journal manuscript report speech entry-encyclopedia" match="any">
<text value="1"/>
Expand Down Expand Up @@ -574,7 +579,6 @@
<else-if position="subsequent">
<choose>
<if type="legal_case bill legislation treaty" match="any">
<!--don't use short form and above note for legal citations -->
<group delimiter=" ">
<text macro="author-note"/>
<text macro="title-short"/>
Expand Down Expand Up @@ -604,7 +608,6 @@
</choose>
</else-if>
<else>
<!--general whole citation -->
<group delimiter=" ">
<group delimiter=", ">
<group delimiter=" ">
Expand Down Expand Up @@ -641,7 +644,7 @@
</choose>
</layout>
</citation>
<bibliography et-al-min="4" et-al-use-first="1" subsequent-author-substitute="&#8212;&#8212;">
<bibliography et-al-min="4" et-al-use-first="1" subsequent-author-substitute="——">
<sort>
<key macro="sort-type"/>
<key macro="author" names-min="1" names-use-first="1"/>
Expand Down
Loading