Skip to content

Commit

Permalink
Add volume-title support
Browse files Browse the repository at this point in the history
  • Loading branch information
adunning authored Feb 2, 2025
1 parent 6562f4a commit cf32f6d
Showing 1 changed file with 26 additions and 19 deletions.
45 changes: 26 additions & 19 deletions modern-humanities-research-association.csl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" and="text" class="note" demote-non-dropping-particle="sort-only" et-al-min="4" et-al-use-first="1" names-delimiter=", " page-range-format="minimal-two" version="1.0" default-locale="en-GB">
<style xmlns="http://purl.org/net/xbiblio/csl" and="text" class="note" delimiter-precedes-et-al="after-inverted-name" demote-non-dropping-particle="sort-only" et-al-min="4" et-al-use-first="1" names-delimiter=", " page-range-format="minimal-two" version="1.0" default-locale="en-GB">
<info>
<title>Modern Humanities Research Association Style Guide, 4th edition (note with bibliography)</title>
<title-short>MHRA</title-short>
Expand All @@ -25,7 +25,7 @@
<category field="generic-base"/>
<category field="humanities"/>
<summary>MHRA format with full notes and bibliography</summary>
<updated>2025-02-02T21:52:07+00:00</updated>
<updated>2025-02-02T22:26:03+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">
Expand All @@ -43,7 +43,7 @@
<macro name="author">
<group delimiter=", ">
<names variable="author">
<name delimiter-precedes-last="always" name-as-sort-order="first"/>
<name/>
<label form="short" prefix=", "/>
<substitute>
<names variable="editor"/>
Expand Down Expand Up @@ -149,14 +149,14 @@
</macro>
<macro name="secondary-contributors-note">
<choose>
<if match="none" type="chapter paper-conference">
<if match="none" type="chapter entry-dictionary entry-encyclopedia paper-conference">
<text macro="editor-translator"/>
</if>
</choose>
</macro>
<macro name="container-contributors-note">
<choose>
<if match="any" type="chapter paper-conference">
<if match="any" type="chapter entry-dictionary entry-encyclopedia paper-conference">
<text macro="editor-translator"/>
</if>
</choose>
Expand All @@ -183,7 +183,7 @@
<text variable="issue"/>
</group>
</if>
<else-if match="any" type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song">
<else-if match="any" type="bill book chapter entry-dictionary entry-encyclopedia graphic legal_case legislation motion_picture paper-conference report song">
<group delimiter=", ">
<text macro="edition-note"/>
<group delimiter=" ">
Expand All @@ -202,7 +202,7 @@
<text variable="issue"/>
</group>
</if>
<else-if match="any" type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song">
<else-if match="any" type="bill book chapter entry-dictionary entry-encyclopedia graphic legal_case legislation motion_picture paper-conference report song">
<group delimiter=", ">
<text macro="edition-note"/>
<group delimiter=" ">
Expand Down Expand Up @@ -247,22 +247,29 @@
</macro>
<macro name="locators-specific-note">
<choose>
<if match="any" type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song">
<choose>
<if is-numeric="volume">
<number font-variant="small-caps" form="roman" variable="volume"/>
</if>
<else>
<text font-variant="small-caps" variable="volume"/>
</else>
</choose>
<if match="any" type="book legislation motion_picture report">
<group delimiter=", ">
<choose>
<if is-numeric="volume">
<number font-variant="small-caps" form="roman" variable="volume"/>
</if>
<else>
<text font-variant="small-caps" variable="volume"/>
</else>
</choose>
<choose>
<if position="first">
<text font-style="italic" text-case="title" variable="volume-title"/>
</if>
</choose>
</group>
</if>
</choose>
</macro>
<macro name="container-title-note">
<group delimiter=" ">
<choose>
<if match="any" type="chapter paper-conference">
<if match="any" type="chapter entry-dictionary entry-encyclopedia paper-conference">
<text term="in"/>
</if>
</choose>
Expand All @@ -271,7 +278,7 @@
</macro>
<macro name="edition-note">
<choose>
<if match="any" type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song">
<if match="any" type="bill book chapter entry-dictionary entry-encyclopedia graphic legal_case legislation motion_picture paper-conference report song">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
Expand Down Expand Up @@ -499,7 +506,7 @@
</choose>
</layout>
</citation>
<bibliography hanging-indent="true" subsequent-author-substitute="&#8212;&#8212;">
<bibliography delimiter-precedes-last="always" hanging-indent="true" name-as-sort-order="first" subsequent-author-substitute="&#8212;&#8212;">
<sort>
<key macro="author"/>
<key variable="title"/>
Expand Down

0 comments on commit cf32f6d

Please sign in to comment.