/*
 * Copyright (c) 2009-2013 Frank G. Bennett, Jr. All Rights
 * Reserved.
 *
 * The contents of this file are subject to the Common Public
 * Attribution License Version 1.0 (the “License”); you may not use
 * this file except in compliance with the License. You may obtain a
 * copy of the License at:
 *
 * http://bitbucket.org/fbennett/citeproc-js/src/tip/LICENSE.
 *
 * The License is based on the Mozilla Public License Version 1.1 but
 * Sections 1.13, 14 and 15 have been added to cover use of software over a
 * computer network and provide for limited attribution for the
 * Original Developer. In addition, Exhibit A has been modified to be
 * consistent with Exhibit B.
 *
 * Software distributed under the License is distributed on an “AS IS”
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 * the License for the specific language governing rights and limitations
 * under the License.
 *
 * The Original Code is the citation formatting software known as
 * "citeproc-js" (an implementation of the Citation Style Language
 * [CSL]), including the original test fixtures and software located
 * under the ./tests subdirectory of the distribution archive.
 *
 * The Original Developer is not the Initial Developer and is
 * __________. If left blank, the Original Developer is the Initial
 * Developer.
 *
 * The Initial Developer of the Original Code is Frank G. Bennett,
 * Jr. All portions of the code written by Frank G. Bennett, Jr. are
 * Copyright (c) 2009-2013 Frank G. Bennett, Jr. All Rights Reserved.
 *
 * Alternatively, the contents of this file may be used under the
 * terms of the GNU Affero General Public License (the [AGPLv3]
 * License), in which case the provisions of [AGPLv3] License are
 * applicable instead of those above. If you wish to allow use of your
 * version of this file only under the terms of the [AGPLv3] License
 * and not to allow others to use your version of this file under the
 * CPAL, indicate your decision by deleting the provisions above and
 * replace them with the notice and other provisions required by the
 * [AGPLv3] License. If you do not delete the provisions above, a
 * recipient may use your version of this file under either the CPAL
 * or the [AGPLv3] License.”
 */

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

>>===== RESULT =====>>
..[0] (Spivak, <i>A Critique</i>)
..[1] (Spivak, “Cultural Talks”)
>>[2] (Spivak, <i>Death of a Discipline</i>)
<<===== RESULT===== <<

>>===== CITATIONS =====>>
[
  [
    {
      "citationItems": [
        {
          "id": 55
        }
      ],
      "properties": {
        "noteIndex": 0,
        "index": 0
      },
      "citationID": "14eia8mbkt"
    },
    [],
    []
  ],
  [
    {
      "citationItems": [
        {
          "id": 53
        }
      ],
      "properties": {
        "noteIndex": 0,
        "index": 1
      },
      "citationID": "6vv2a1gh3"
    },
    [
      [
        "14eia8mbkt",
        0
      ]
    ],
    []
  ],
  [
    {
      "citationID": "1p1h161do",
      "citationItems": [
        {
          "id": 59
        }
      ],
      "properties": {
        "noteIndex": 0,
        "index": 2
      }
    },
    [
      [
        "14eia8mbkt",
        0
      ],
      [
        "6vv2a1gh3",
        0
      ]
    ],
    []
  ]
]
<<===== CITATIONS===== <<

>>===== CSL =====>>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
  <info>
    <title>Modern Language Association</title>
    <id>http://www.zotero.org/styles/mla</id>
    <link href="http://www.zotero.org/styles/mla" rel="self"/>
    <author>
      <name>Ilouise S. Bradford</name>
      <email>isbradford@gmail.com</email>
    </author>
    <contributor>
      <name>Sarah Ficke</name>
      <email>sficke@email.unc.edu</email>
    </contributor>
    <contributor>
      <name>Sebastian Karcher</name>
      <email>karcher@u.northwestern.edu</email>
    </contributor>
    <contributor>
      <name>Christian Werthschulte</name>
      <email>Christian.Werthschulte@rub.de</email>
    </contributor>
    <contributor>
      <name>Simon Kornblith</name>
      <email>simon@simonster.com</email>
    </contributor>
    <contributor>
      <name>James Johnston</name>
      <email>thejamesjohnston@gmail.com</email>
    </contributor>
    <category field="generic-base"/>
    <category citation-format="author"/>
    <link href="http://owl.english.purdue.edu/owl/section/2/11/" rel="documentation"/>
    <updated>2011-05-28T18:16:02+00:00</updated>
    <summary>This style adheres to the MLA 7th edition handbook and contains modifications to these types of sources: e-mail, forum posts, interviews, manuscripts, maps, presentations, TV broadcasts, and web pages.</summary>
    <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>
  <macro name="author-short">
    <names variable="author">
      <name form="short" and="text" delimiter=", " initialize-with=". "/>
      <substitute>
        <names variable="editor"/>
        <names variable="translator"/>
        <text macro="title-short"/>
      </substitute>
    </names>
  </macro>
  <macro name="title-short">
    <choose>
      <if type="bill book graphic legal_case manuscript motion_picture report song" match="any">
        <text variable="title" form="short" font-style="italic"/>
      </if>
      <else>
        <text variable="title" form="short" quotes="true"/>
      </else>
    </choose>
  </macro>
  <citation disambiguate-add-names="true">
    <layout prefix="(" suffix=")" delimiter="; ">
      <group delimiter=", ">
        <text macro="author-short"/>
        <choose>
          <if disambiguate="true">
            <text macro="title-short"/>
          </if>
        </choose>
      </group>
    </layout>
  </citation>
</style>
<<===== CSL===== <<

>>===== INPUT =====>>
[
  {
    "id": 55,
    "type": "book",
    "multi": {
      "_keys": {}
    },
    "title": "A Critique of Postcolonial Reason: Toward a History of the Vanishing Present",
    "publisher": "Harvard University Press",
    "publisher-place": "Cambridge, Mass.",
    "event-place": "Cambridge, Mass.",
    "note": "Gayatri Chakravorty Spivak. 25 cm.",
    "shortTitle": "A Critique",
    "author": [
      {
        "family": "Spivak",
        "given": "Gayatri Chakravorty",
        "isInstitution": ""
      }
    ],
    "issued": {
      "date-parts": [
        [
          1999
        ]
      ]
    }
  },
  {
    "id": 53,
    "type": "chapter",
    "multi": {
      "_keys": {}
    },
    "title": "Cultural Talks in the 'Hot Peace': Revisiting the Global Village",
    "container-title": "Cosmopolitics: Thinking and Feeling Beyond the Nation",
    "publisher": "University of Minnesota Press",
    "publisher-place": "Minneapolis",
    "page": "329 - 348",
    "event-place": "Minneapolis",
    "shortTitle": "Cultural Talks",
    "author": [
      {
        "family": "Spivak",
        "given": "Gayatri Chakravorty",
        "isInstitution": ""
      }
    ],
    "editor": [
      {
        "family": "Cheah",
        "given": "Pheng",
        "isInstitution": ""
      },
      {
        "family": "Robbins",
        "given": "Bruce",
        "isInstitution": ""
      }
    ],
    "issued": {
      "date-parts": [
        [
          1998
        ]
      ]
    }
  },
  {
    "id": 59,
    "type": "book",
    "multi": {
      "_keys": {}
    },
    "title": "Death of a Discipline",
    "publisher": "Columbia University Press",
    "publisher-place": "New York",
    "event-place": "New York",
    "note": "Gayatri Chakravorty Spivak. Crossing borders â€• Collectivities â€• Planetarity.",
    "author": [
      {
        "family": "Spivak",
        "given": "Gayatri Chakravorty",
        "isInstitution": ""
      }
    ],
    "issued": {
      "date-parts": [
        [
          2003
        ]
      ]
    }
  }
]
<<===== INPUT===== <<
