citeproc-js / attic / bluebook_BookWithUnSalesNumber.txt

/*
 * Copyright (c) 2009 and 2010 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 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 ./std 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 and 2010 Frank G. Bennett, Jr. All Rights Reserved.
 */

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



>>===== RESULT =====>>
<span style="font-variant:small-caps;">Osvaldo Rosales & Mikio Kuwayama</span>, <span style="font-variant:small-caps;">América latina y china e india: hacia una nueva alianza de comercio e inversión</span>, U.N. Doc. LC/L.2656-P, U.N. Sales No. S.07.II.G.6 (United Nations - ECLAC, Santiago, Serie de Comercio Internacional No. 81, Jan. 2007).
<<===== RESULT =====<<


>>===== CSL =====>>
<style 
      xmlns="http://purl.org/net/xbiblio/csl"
      class="in-text"
      version="1.1x"
      default-locale="en">
  <info>
    <id />
    <title />
    <updated>2009-08-10T04:49:00+09:00</updated>
  </info>
  <macro name="un-sales-number-identifier">
    <group delimiter=" ">
      <text term="un-sales-number-label"/>
      <text variable="un-sales-number"/>
    </group>
  </macro>
  <macro name="document-number-identifier">
    <choose>
      <if variable="authority">
        <group delimiter=" ">
          <text variable="authority" form="short"/>
          <text term="document-number-authority-suffix"/>
          <text variable="number"/>
        </group>
      </if>
      <else>
        <group delimiter=" ">
          <text term="document-number-label"/>
          <text variable="number"/>
        </group>
      </else>
    </choose>
  </macro>
  <macro name="publisher">
    <names variable="publisher">
      <name/>
      <institution delimiter=" - " reverse-order="true" institution-parts="short">
        <institution-part name="long"/>
      </institution>
    </names>
  </macro>
  <macro name="publisher-place">
    <text variable="publisher-place"/>
  </macro>
  <macro name="collection-identifier">
    <group delimiter=" ">
      <text variable="collection-title"/>
      <text term="collection-number-label" />
      <text variable="collection-number"/>
    </group>
  </macro>
  <macro name="title-smallcaps">
    <text variable="title" font-variant="small-caps"/>
  </macro>
  <macro name="issued-yearmonth">
    <date variable="issued" form="text" date-parts="year-month">
      <date-part name="month" form="short"/>
    </date>
  </macro>
  <macro name="author-full-smallcaps-symboland">
    <names variable="author">
      <name and="symbol" delimiter-precedes-last="never" font-variant="small-caps"/>
    </names>
  </macro>
  <citation>
    <layout>
      <group delimiter=", " suffix=".">
        <group delimiter=" ">
          <group delimiter=", ">
            <text macro="author-full-smallcaps-symboland"/>
            <text macro="title-smallcaps"/>
            <text macro="document-number-identifier"/>
            <text macro="un-sales-number-identifier"/>
          </group>
          <group delimiter=", " prefix="(" suffix=")">
            <text macro="publisher"/>
            <text macro="publisher-place"/>
            <text macro="collection-identifier"/>
            <text macro="issued-yearmonth"/>
          </group>
        </group>
      </group>
    </layout>
  </citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
    {
        "author": [
            {
                "family": "Rosales", 
                "given": "Osvaldo", 
                "static-ordering": false
            }, 
            {
                "family": "Kuwayama", 
                "given": "Mikio", 
                "static-ordering": false
            }
        ], 
        "authority": "United Nations", 
        "collection-number": "81", 
        "collection-title": "Serie de Comercio Internacional", 
        "id": "ITEM-1", 
        "issued": {
            "date-parts": [
                [
                    "2007", 
                    "1"
                ]
            ]
        }, 
        "number": "LC/L.2656-P", 
        "publisher": [
            {
                "literal": "Economic Commission for Latin America and the Carribean, United Nations"
            }
        ], 
        "publisher-place": "Santiago de Chile :en:Santiago", 
        "title": "América latina y china e india: hacia una nueva alianza de comercio e inversión", 
        "type": "book", 
        "un-sales-number": "S.07.II.G.6"
    }
]
<<===== INPUT =====<<
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.