citeproc-0.1: test/csl/bugreports_BadDelimiterBeforeCollapse.txt
>>==== MODE ====>>
citation
<<==== MODE ====<<
>>==== RESULT ====>>
(Jones 2000; Smith 2000a,b)
<<==== RESULT ====<<
>>==== CITATION-ITEMS ====>>
[
[
{
"id": "ITEM-1"
},
{
"id": "ITEM-2"
},
{
"id": "ITEM-3"
}
]
]
<<==== CITATION-ITEMS ====<<
>>==== CSL ====>>
<?xml version="1.0" encoding="utf-8"?>
<style class="in-text" version="1.0" default-locale="en-US" xmlns="http://purl.org/net/xbiblio/csl">
<info>
<title>Herpetological Conservation and Biology</title>
<title-short>HCB</title-short>
<id>http://csl.mendeley.com/styles/13393491/herpetological-conservation-and-biology</id>
<link href="http://www.herpconbio.org/InstructionsForAuthors.pdf" rel="documentation"/>
<author>
<name>Matthew H. Shirley</name>
</author>
<category citation-format="author-date"/>
<category field="biology"/>
<issn>1931-7603</issn>
<eissn>1931-7603</eissn>
<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>
<macro name="author">
<names variable="author" suffix=".">
<name and="text" delimiter-precedes-last="always" et-al-min="11" et-al-use-first="10" initialize-with="." name-as-sort-order="first"/>
<label form="short" text-case="capitalize-first" prefix=" (" suffix=")"/>
<substitute>
<names variable="editor"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name and="text" delimiter-precedes-last="always" et-al-min="11" et-al-use-first="10" initialize-with="." name-as-sort-order="first"/>
<label form="short" text-case="capitalize-first" prefix=" (" suffix=")"/>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" delimiter="" and="text" et-al-min="3" et-al-use-first="1" initialize="false" initialize-with="" sort-separator=""/>
<substitute>
<names variable="editor"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="author-count">
<names variable="author">
<name form="count"/>
<substitute>
<names variable="editor"/>
</substitute>
</names>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
<text variable="year-suffix" font-style="normal"/>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="chapter-info">
<group delimiter=" ">
<choose>
<if type="chapter paper-conference" match="any">
<group delimiter=" ">
<label text-case="capitalize-first" variable="page" form="short"/>
<text variable="page"/>
<text term="in" text-case="capitalize-first" font-style="italic"/>
</group>
</if>
</choose>
<text macro="editor"/>
</group>
</macro>
<macro name="container">
<choose>
<if type="article-journal article-magazine" match="any">
<group delimiter=" ">
<text variable="container-title"/>
<group delimiter=":">
<text variable="volume"/>
<text variable="page"/>
</group>
</group>
</if>
<else-if type="thesis">
<text variable="genre"/>
</else-if>
<else>
<text variable="container-title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<group delimiter=" ">
<text variable="collection-title"/>
<text variable="collection-number"/>
</group>
<text variable="genre"/>
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number text-case="capitalize-first" variable="edition" form="ordinal"/>
<text term="edition" text-case="capitalize-first"/>
</group>
</if>
<else>
<text variable="edition"/>
<number text-case="capitalize-first" variable="edition" form="ordinal"/>
<text term="edition" text-case="capitalize-first"/>
</else>
</choose>
</macro>
<macro name="volume">
<choose>
<if type="article-journal article-magazine" match="none">
<choose>
<if variable="volume">
<group delimiter=" ">
<text term="volume" text-case="capitalize-first"/>
<text variable="volume"/>
</group>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="pages">
<choose>
<if type="thesis report" match="any">
<text variable="number-of-pages" suffix=" p."/>
</if>
</choose>
</macro>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year-suffix" year-suffix-delimiter="," after-collapse-delimiter="; " disambiguate-add-givenname="true" givenname-disambiguation-rule="by-cite">
<sort>
<key macro="year-date"/>
<key macro="author-short"/>
</sort>
<layout delimiter="; " prefix="(" suffix=")">
<group delimiter=":">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text variable="locator"/>
</group>
</layout>
</citation>
<bibliography entry-spacing="0" hanging-indent="true">
<sort>
<key macro="author" names-min="1" names-use-first="1"/>
<key macro="author-count" names-min="1" names-use-first="3"/>
<key macro="author" names-min="3" names-use-first="1"/>
<key macro="year-date" sort="descending"/>
</sort>
<layout suffix=".">
<group delimiter=". ">
<text macro="author"/>
<text macro="year-date"/>
<text variable="title" text-case="capitalize-first" text-decoration="none"/>
<text macro="chapter-info"/>
<text macro="container"/>
<text macro="edition"/>
<text macro="volume"/>
<text macro="publisher"/>
<text macro="pages"/>
</group>
</layout>
</bibliography>
</style>
<<==== CSL ====<<
>>==== INPUT ====>>
[
{
"author": [
{
"family": "Smith",
"given": "John"
}
],
"id": "ITEM-1",
"issued": {
"date-parts": [
[
2000
]
]
},
"title": "Book One",
"type": "book"
},
{
"author": [
{
"family": "Smith",
"given": "John"
}
],
"id": "ITEM-2",
"issued": {
"date-parts": [
[
2000
]
]
},
"title": "Book Two",
"type": "book"
},
{
"author": [
{
"family": "Jones",
"given": "Richard"
}
],
"id": "ITEM-3",
"issued": {
"date-parts": [
[
2000
]
]
},
"title": "Book Three",
"type": "book"
}
]
<<==== INPUT ====<<
>>===== VERSION =====>>
1.0
<<===== VERSION =====<<