Skip to content

Commit

Permalink
Add test for style category based textual citation formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andras-simonyi committed Mar 7, 2024
1 parent 23b0ff4 commit 74abfff
Showing 1 changed file with 97 additions and 0 deletions.
97 changes: 97 additions & 0 deletions test/human/citation_TextualDontApplyForNumericOrLabel.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
>>===== MODE =====>>
citation
<<===== MODE =====<<


>>===== RESULT =====>>
[1]
[1]
<<===== RESULT =====<<


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

]
<<===== CITATIONS =====<<



>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
version="1.0">
<info>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
<category citation-format="numeric"/>
</info>
<citation>
<sort>
<key variable="citation-number"/>
</sort>
<layout delimiter=", ">
<group prefix="[" suffix="]" delimiter=", ">
<text variable="citation-number"/>
</group>
</layout>
</citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
{
"author": [
{
"family": "Smith",
"given": "John"
}
],
"issued": {
"date-parts": [
[
1986
]
]
},
"type": "book",
"id": "ITEM-1"
}
]
<<===== INPUT =====<<

0 comments on commit 74abfff

Please sign in to comment.