>>===== MODE =====>>
citation
<<===== MODE =====<<



>>===== RESULT =====>>
..[0] <i>Australian Competition and Consumer Commission v Metcash Trading Ltd</i> (2011) 282 ALR 464, 198 FCR 297.
..[1] ‘My Other Book’.
>>[2] Metcash I (2011) 282 ALR 464.
<<===== RESULT =====<<

>>===== CITATIONS =====>>
[
    [
        {
            "citationID": "CITATION-1", 
            "citationItems": [
                {
                    "id": "ITEM-1"
                }, 
                {
                    "id": "ITEM-2"
                }
            ], 
            "properties": {
                "noteIndex": 1
            }
        }, 
        [], 
        []
    ], 
    [
        {
            "citationID": "CITATION-2", 
            "citationItems": [
                {
                    "id": "ITEM-3"
                }
            ], 
            "properties": {
                "noteIndex": 2
            }
        }, 
        [
            [
                "CITATION-1", 
                1
            ]
        ], 
        []
    ], 
    [
        {
            "citationID": "CITATION-3", 
            "citationItems": [
                {
                    "id": "ITEM-1"
                }
            ], 
            "properties": {
                "noteIndex": 3
            }
        }, 
        [
            [
                "CITATION-1", 
                1
            ], 
            [
                "CITATION-2", 
                2
            ]
        ], 
        []
    ]
]
<<===== CITATIONS =====<<


>>===== CSL =====>>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.1mlz1" demote-non-dropping-particle="sort-only" default-locale="en-GB">
  <info>
    <title>Test fixture</title>
    <id>http://citationstyles.org/tests/fixture</id>
    <link href="http://citationstyles.org/tests/fixture" rel="self"/>
    <link href="http://citationstyles.org/documentation/text" rel="documentation"/>
    <category citation-format="author-date"/>
    <updated>2014-04-30T13:19:38+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="et-al">et al</term>
    </terms>
  </locale>
  <!-- Titles -->
  <macro name="title">
    <choose>
      <if match="all" type="legal_case">
        <text variable="title" font-style="italic" strip-periods="true"/>
      </if>
      <else>
        <text variable="title" quotes="true" text-case="title"/>
      </else>
    </choose>
  </macro>
  <macro name="issued-year">
    <date variable="issued" form="text" date-parts="year"/>
  </macro>
  <macro name="issued-full">
    <date variable="issued" form="text"/>
  </macro>
  <macro name="date-parenthesis">
    <choose>
      <if type="legal_case article-journal article-magazine">
        <choose>
          <if variable="volume">
            <text macro="issued-year" prefix="(" suffix=")"/>
          </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>
      </if>
    </choose>
  </macro>
  <macro name="article-case-info">
    <choose>
      <if type="article-journal article-magazine article-newspaper legal_case">
        <group delimiter=" ">
          <number variable="volume"/>
          <choose>
            <if type="legal_case">
              <choose>
                <if variable="container-title">
                  <text variable="container-title" form="short"/>
                </if>
                <else-if variable="authority number" match="all">
                  <!--Assume that only cases with a Medium Neutral Citation have a docket number -->
                  <group delimiter=" ">
                    <names variable="authority">
                      <name form="short"/>
                    </names>
                    <number variable="number"/>
                    <text macro="issued-full" prefix="(" suffix=")"/>
                  </group>
                </else-if>
                <else>
                  <group delimiter=", " prefix="(" suffix=")">
                    <text value="Unreported"/>
                    <names variable="authority">
                      <name/>
                    </names>
                    <names variable="author">
                      <name name-as-sort-order="all" delimiter-precedes-last="never" and="text" delimiter=", " sort-separator=" "/>
                    </names>
                    <text macro="issued-full"/>
                  </group>
                </else>
              </choose>
            </if>
            <else>
              <text variable="container-title" font-style="italic"/>
            </else>
          </choose>
        </group>
      </if>
    </choose>
  </macro>
  <macro name="page-first">
    <number variable="page-first"/>
  </macro>
  <citation et-al-min="4" et-al-use-first="1">
    <layout suffix="." delimiter="; ">
      <choose>
        <if position="subsequent">
          <choose>
            <if type="legal_case bill legislation manuscript" match="any">
              <group delimiter=" ">
              <group parallel-delimiter-override=", " parallel-first="title-short">
                <text variable="title-short"/>
              </group>
              <group delimiter=" ">
                <group parallel-first="issued">
                  <text macro="date-parenthesis"/>
                </group>
                <text macro="article-case-info"/>
              </group>
              <group delimiter=", ">
                <text macro="page-first"/>
              </group>
              </group>
            </if>
          </choose>
        </if>
        <else>
          <!--general whole citation -->
          <group delimiter=" ">
            <group delimiter=", ">
              <group delimiter=" ">
                <group parallel-delimiter-override=", " parallel-first="title">
                  <text macro="title"/>
                </group>
                <group delimiter=" ">
                  <group parallel-first="issued">
                    <text macro="date-parenthesis"/>
                  </group>
                  <text macro="article-case-info"/>
                </group>
              </group>
            </group>
            <group delimiter=", ">
              <text macro="page-first"/>
            </group>
          </group>
        </else>
      </choose>
    </layout>
  </citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
	{
		"id": "ITEM-1",
		"type": "legal_case",
		"multi": {
			"main": {},
			"_keys": {}
		},
		"system_id": "0_QVMNDUV3",
		"title": "Australian Competition and Consumer Commission v Metcash Trading Ltd",
		"container-title": "ALR",
		"page": "464",
		"volume": "282",
		"title-short": "Metcash I",
		"jurisdiction": "us",
		"issued": {
			"raw": "2011"
		},
        "seeAlso": ["ITEM-1", "ITEM-2"]
	},
	{
		"id": "ITEM-2",
		"type": "legal_case",
		"multi": {
			"main": {},
			"_keys": {}
		},
		"system_id": "0_TTV4E8HM",
		"title": "Australian Competition and Consumer Commission v Metcash Trading Ltd",
		"container-title": "FCR",
		"page": "297",
		"volume": "198",
		"title-short": "Metcash I",
		"jurisdiction": "us",
		"issued": {
			"raw": "2011"
		},
        "seeAlso": ["ITEM-1", "ITEM-2"]
	},
    {
        "id": "ITEM-3",
        "title": "My Other Book",
        "issued": { "raw": "2011" }
    }
]
<<===== INPUT =====<<
