Debian Codegraph @

tests/local/condition_LocatorVariables.txt

raw
1 >>===== MODE =====>>
2 citation
3 <<===== MODE =====<<
4
5
6 >>===== DESCRIPTION =====>>
7 <https://github.com/citeproc-py/citeproc-py/issues/142>
8 <<===== DESCRIPTION =====<<
9
10
11 >>===== RESULT =====>>
12 (Doe)
13 (Doe 23)
14 <<===== RESULT =====<<
15
16
17 >>===== CITATION-ITEMS =====>>
18 [
19 [
20 {
21 "id": "ITEM-1"
22 }
23 ],
24 [
25 {
26 "id": "ITEM-1",
27 "label": "page",
28 "locator": 23
29 }
30 ]
31 ]
32 <<===== CITATION-ITEMS =====<<
33
34
35 >>===== CSL =====>>
36 <style
37 xmlns="http://purl.org/net/xbiblio/csl"
38 class="note"
39 version="1.0">
40 <info>
41 <id />
42 <title />
43 <updated>2024-07-26T21:37:09+08:00</updated>
44 </info>
45 <macro name="author-short">
46 <group delimiter=", ">
47 <names variable="author">
48 <name form="short" initialize-with=". " and="text"/>
49 <substitute>
50 <names variable="editor"/>
51 <names variable="translator"/>
52 <text variable="title" form="short"/>
53 </substitute>
54 </names>
55 </group>
56 </macro>
57 <citation>
58 <layout prefix="(" suffix=")" delimiter="; ">
59 <choose>
60 <if locator="page line" match="any">
61 <group delimiter=" ">
62 <text macro="author-short"/>
63 <text variable="locator"/>
64 </group>
65 </if>
66 <else>
67 <group delimiter=", ">
68 <text macro="author-short"/>
69 <group>
70 <label variable="locator" form="short"/>
71 <text variable="locator"/>
72 </group>
73 </group>
74 </else>
75 </choose>
76 </layout>
77 </citation>
78 </style>
79 <<===== CSL =====<<
80
81
82 >>===== INPUT =====>>
83 [
84 {
85 "id": "ITEM-1",
86 "type": "book",
87 "author": [
88 {
89 "family": "Doe",
90 "given": "John"
91 }
92 ],
93 "issued": {
94 "date-parts": [
95 [
96 "1984"
97 ]
98 ]
99 },
100 "title": "Title"
101 }
102 ]
103 <<===== INPUT =====<<
104
105
106 >>===== VERSION =====>>
107 1.0
108 <<===== VERSION =====<<