@citestyle/styles 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ama.js +1139 -0
- package/apa.js +3707 -0
- package/build.js +97 -0
- package/chicago-author-date.js +6125 -0
- package/harvard.js +1235 -0
- package/ieee.js +1316 -0
- package/mla.js +2349 -0
- package/nature.js +1035 -0
- package/package.json +3 -4
- package/science.js +1070 -0
- package/vancouver.js +993 -0
package/apa.js
ADDED
|
@@ -0,0 +1,3707 @@
|
|
|
1
|
+
// Generated by @citestyle/compiler — do not edit
|
|
2
|
+
// Source: APA Style 7th edition
|
|
3
|
+
import { formatNames, formatDate, escapeHtml, stripFormatting, toHtml, titleCase, sentenceCase, capitalize, applyTextCase, stripNocaseSpans, ordinal, roman, pageRange } from '@citestyle/core'
|
|
4
|
+
|
|
5
|
+
export const meta = {
|
|
6
|
+
"id": "apa",
|
|
7
|
+
"title": "APA Style 7th edition",
|
|
8
|
+
"class": "in-text",
|
|
9
|
+
"version": "1.0",
|
|
10
|
+
"compiledWith": "@citestyle/compiler@0.1.0",
|
|
11
|
+
"disambiguateAddYearSuffix": true,
|
|
12
|
+
"disambiguateAddNames": true,
|
|
13
|
+
"disambiguateAddGivenname": true,
|
|
14
|
+
"givennameDisambiguationRule": "primary-name-with-initials",
|
|
15
|
+
"collapse": "year",
|
|
16
|
+
"citationLayoutDelimiter": "; ",
|
|
17
|
+
"citationLayoutPrefix": "(",
|
|
18
|
+
"citationLayoutSuffix": ")"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const T = {
|
|
22
|
+
"accessed": "accessed",
|
|
23
|
+
"advance-online-publication": "advance online publication",
|
|
24
|
+
"album": "album",
|
|
25
|
+
"and": "and",
|
|
26
|
+
"and others": "and others",
|
|
27
|
+
"anonymous": "anonymous",
|
|
28
|
+
"at": "at",
|
|
29
|
+
"audio-recording": "audio recording",
|
|
30
|
+
"available at": "available at",
|
|
31
|
+
"by": "by",
|
|
32
|
+
"circa": "circa",
|
|
33
|
+
"cited": "cited",
|
|
34
|
+
"et-al": "et al.",
|
|
35
|
+
"film": "film",
|
|
36
|
+
"forthcoming": "forthcoming",
|
|
37
|
+
"from": "from",
|
|
38
|
+
"henceforth": "henceforth",
|
|
39
|
+
"ibid": "ibid.",
|
|
40
|
+
"in": "in",
|
|
41
|
+
"in press": "in press",
|
|
42
|
+
"internet": "internet",
|
|
43
|
+
"letter": "letter",
|
|
44
|
+
"loc-cit": "loc. cit.",
|
|
45
|
+
"no date": "no date",
|
|
46
|
+
"no-place": "no place",
|
|
47
|
+
"no-publisher": "no publisher",
|
|
48
|
+
"on": "on",
|
|
49
|
+
"online": "online",
|
|
50
|
+
"op-cit": "op. cit.",
|
|
51
|
+
"original-work-published": "original work published",
|
|
52
|
+
"personal-communication": "personal communication",
|
|
53
|
+
"podcast": "podcast",
|
|
54
|
+
"podcast-episode": "podcast episode",
|
|
55
|
+
"preprint": "preprint",
|
|
56
|
+
"presented at": "presented at the",
|
|
57
|
+
"radio-broadcast": "radio broadcast",
|
|
58
|
+
"radio-series": "radio series",
|
|
59
|
+
"radio-series-episode": "radio series episode",
|
|
60
|
+
"reference": {
|
|
61
|
+
"single": "reference",
|
|
62
|
+
"multiple": "references"
|
|
63
|
+
},
|
|
64
|
+
"retrieved": "retrieved",
|
|
65
|
+
"review-of": "review of",
|
|
66
|
+
"scale": "scale",
|
|
67
|
+
"special-issue": "special issue",
|
|
68
|
+
"special-section": "special section",
|
|
69
|
+
"television-broadcast": "television broadcast",
|
|
70
|
+
"television-series": "television series",
|
|
71
|
+
"television-series-episode": "television series episode",
|
|
72
|
+
"video": "video",
|
|
73
|
+
"working-paper": "working paper",
|
|
74
|
+
"advance-online-publication:short": "adv. online pub.",
|
|
75
|
+
"anonymous:short": "anon.",
|
|
76
|
+
"audio-recording:short": "au. rec.",
|
|
77
|
+
"available at:short": "avail. at",
|
|
78
|
+
"circa:short": "c.",
|
|
79
|
+
"cited:short": "cit.",
|
|
80
|
+
"film:short": "flm.",
|
|
81
|
+
"from:short": "fr.",
|
|
82
|
+
"letter:short": "let.",
|
|
83
|
+
"no date:short": "n.d.",
|
|
84
|
+
"no-place:short": "n.p.",
|
|
85
|
+
"no-publisher:short": "n.p.",
|
|
86
|
+
"original-work-published:short": "orig. pub.",
|
|
87
|
+
"personal-communication:short": "pers. comm.",
|
|
88
|
+
"podcast-episode:short": "podcast ep.",
|
|
89
|
+
"radio-broadcast:short": "radio bdcst.",
|
|
90
|
+
"radio-series:short": "radio ser.",
|
|
91
|
+
"radio-series-episode:short": "radio ser. ep.",
|
|
92
|
+
"reference:short": {
|
|
93
|
+
"single": "ref.",
|
|
94
|
+
"multiple": "refs."
|
|
95
|
+
},
|
|
96
|
+
"retrieved:short": "rtvd.",
|
|
97
|
+
"review-of:short": "rev. of",
|
|
98
|
+
"scale:short": "sc.",
|
|
99
|
+
"special-issue:short": "spec. iss.",
|
|
100
|
+
"special-section:short": "spec. sec.",
|
|
101
|
+
"television-broadcast:short": "TV bdcst.",
|
|
102
|
+
"television-series:short": "TV ser.",
|
|
103
|
+
"television-series-episode:short": "TV ser. ep.",
|
|
104
|
+
"video:short": "vid.",
|
|
105
|
+
"working-paper:short": "wkg. paper",
|
|
106
|
+
"and:symbol": "&",
|
|
107
|
+
"at:symbol": "@",
|
|
108
|
+
"article": "preprint",
|
|
109
|
+
"article-journal": "journal article",
|
|
110
|
+
"article-magazine": "magazine article",
|
|
111
|
+
"article-newspaper": "newspaper article",
|
|
112
|
+
"bill": "bill",
|
|
113
|
+
"broadcast": "broadcast",
|
|
114
|
+
"classic": "classical work",
|
|
115
|
+
"collection": "archival collection",
|
|
116
|
+
"dataset": "dataset",
|
|
117
|
+
"document": "document",
|
|
118
|
+
"entry": "entry",
|
|
119
|
+
"entry-dictionary": "dictionary entry",
|
|
120
|
+
"entry-encyclopedia": "encyclopedia entry",
|
|
121
|
+
"event": "event",
|
|
122
|
+
"graphic": "graphic",
|
|
123
|
+
"hearing": "hearing",
|
|
124
|
+
"interview": "interview",
|
|
125
|
+
"legal_case": "legal case",
|
|
126
|
+
"legislation": "legislation",
|
|
127
|
+
"manuscript": "manuscript",
|
|
128
|
+
"map": "map",
|
|
129
|
+
"motion_picture": "video recording",
|
|
130
|
+
"musical_score": "musical score",
|
|
131
|
+
"pamphlet": "pamphlet",
|
|
132
|
+
"paper-conference": "conference paper",
|
|
133
|
+
"patent": "patent",
|
|
134
|
+
"performance": "performance",
|
|
135
|
+
"periodical": "periodical",
|
|
136
|
+
"personal_communication": "personal communication",
|
|
137
|
+
"post": "post",
|
|
138
|
+
"post-weblog": "blog post",
|
|
139
|
+
"regulation": "regulation",
|
|
140
|
+
"report": "report",
|
|
141
|
+
"review": "review",
|
|
142
|
+
"review-book": "book review",
|
|
143
|
+
"software": "software",
|
|
144
|
+
"song": "audio recording",
|
|
145
|
+
"speech": "presentation",
|
|
146
|
+
"standard": "standard",
|
|
147
|
+
"thesis": "thesis",
|
|
148
|
+
"treaty": "treaty",
|
|
149
|
+
"webpage": "webpage",
|
|
150
|
+
"article-journal:short": "jour. art.",
|
|
151
|
+
"article-magazine:short": "mag. art.",
|
|
152
|
+
"article-newspaper:short": "newspaper art.",
|
|
153
|
+
"broadcast:short": "bdcst.",
|
|
154
|
+
"classic:short": "class. wk.",
|
|
155
|
+
"collection:short": "arch. coll.",
|
|
156
|
+
"document:short": "doc.",
|
|
157
|
+
"entry-dictionary:short": "dict. entry",
|
|
158
|
+
"entry-encyclopedia:short": "ency. entry",
|
|
159
|
+
"graphic:short": "gr.",
|
|
160
|
+
"interview:short": "int.",
|
|
161
|
+
"legal_case:short": "leg. case",
|
|
162
|
+
"legislation:short": "legis.",
|
|
163
|
+
"manuscript:short": {
|
|
164
|
+
"single": "MS",
|
|
165
|
+
"multiple": "MSS"
|
|
166
|
+
},
|
|
167
|
+
"motion_picture:short": "vid. rec.",
|
|
168
|
+
"musical_score:short": "mus. score",
|
|
169
|
+
"pamphlet:short": "pam.",
|
|
170
|
+
"paper-conference:short": "conf. paper",
|
|
171
|
+
"patent:short": "pat.",
|
|
172
|
+
"performance:short": "prfm.",
|
|
173
|
+
"personal_communication:short": "pers. comm.",
|
|
174
|
+
"regulation:short": "reg.",
|
|
175
|
+
"report:short": "rep.",
|
|
176
|
+
"review:short": "rev.",
|
|
177
|
+
"review-book:short": "bk. rev.",
|
|
178
|
+
"software:short": "sftw.",
|
|
179
|
+
"song:short": "au. rec.",
|
|
180
|
+
"standard:short": "std.",
|
|
181
|
+
"thesis:short": "thes.",
|
|
182
|
+
"webpage:short": "webpg.",
|
|
183
|
+
"hearing:verb": "testimony of",
|
|
184
|
+
"review:verb": "review of",
|
|
185
|
+
"review-book:verb": "review of the book",
|
|
186
|
+
"hearing:verb-short": "test. of",
|
|
187
|
+
"review:verb-short": "rev. of",
|
|
188
|
+
"review-book:verb-short": "rev. of the bk.",
|
|
189
|
+
"ad": "AD",
|
|
190
|
+
"bc": "BC",
|
|
191
|
+
"bce": "BCE",
|
|
192
|
+
"ce": "CE",
|
|
193
|
+
"open-quote": "“",
|
|
194
|
+
"close-quote": "”",
|
|
195
|
+
"open-inner-quote": "‘",
|
|
196
|
+
"close-inner-quote": "’",
|
|
197
|
+
"page-range-delimiter": "–",
|
|
198
|
+
"colon": ":",
|
|
199
|
+
"comma": ",",
|
|
200
|
+
"semicolon": ";",
|
|
201
|
+
"ordinal": "th",
|
|
202
|
+
"ordinal-01": "st",
|
|
203
|
+
"ordinal-02": "nd",
|
|
204
|
+
"ordinal-03": "rd",
|
|
205
|
+
"ordinal-11": "th",
|
|
206
|
+
"ordinal-12": "th",
|
|
207
|
+
"ordinal-13": "th",
|
|
208
|
+
"long-ordinal-01": "first",
|
|
209
|
+
"long-ordinal-02": "second",
|
|
210
|
+
"long-ordinal-03": "third",
|
|
211
|
+
"long-ordinal-04": "fourth",
|
|
212
|
+
"long-ordinal-05": "fifth",
|
|
213
|
+
"long-ordinal-06": "sixth",
|
|
214
|
+
"long-ordinal-07": "seventh",
|
|
215
|
+
"long-ordinal-08": "eighth",
|
|
216
|
+
"long-ordinal-09": "ninth",
|
|
217
|
+
"long-ordinal-10": "tenth",
|
|
218
|
+
"act": {
|
|
219
|
+
"single": "act",
|
|
220
|
+
"multiple": "acts"
|
|
221
|
+
},
|
|
222
|
+
"appendix": {
|
|
223
|
+
"single": "appendix",
|
|
224
|
+
"multiple": "appendices"
|
|
225
|
+
},
|
|
226
|
+
"article-locator": {
|
|
227
|
+
"single": "article",
|
|
228
|
+
"multiple": "articles"
|
|
229
|
+
},
|
|
230
|
+
"book": {
|
|
231
|
+
"single": "book",
|
|
232
|
+
"multiple": "books"
|
|
233
|
+
},
|
|
234
|
+
"canon": {
|
|
235
|
+
"single": "canon",
|
|
236
|
+
"multiple": "canons"
|
|
237
|
+
},
|
|
238
|
+
"chapter": {
|
|
239
|
+
"single": "chapter",
|
|
240
|
+
"multiple": "chapters"
|
|
241
|
+
},
|
|
242
|
+
"column": {
|
|
243
|
+
"single": "column",
|
|
244
|
+
"multiple": "columns"
|
|
245
|
+
},
|
|
246
|
+
"elocation": {
|
|
247
|
+
"single": "location",
|
|
248
|
+
"multiple": "locations"
|
|
249
|
+
},
|
|
250
|
+
"equation": {
|
|
251
|
+
"single": "equation",
|
|
252
|
+
"multiple": "equations"
|
|
253
|
+
},
|
|
254
|
+
"figure": {
|
|
255
|
+
"single": "figure",
|
|
256
|
+
"multiple": "figures"
|
|
257
|
+
},
|
|
258
|
+
"folio": {
|
|
259
|
+
"single": "folio",
|
|
260
|
+
"multiple": "folios"
|
|
261
|
+
},
|
|
262
|
+
"issue": {
|
|
263
|
+
"single": "issue",
|
|
264
|
+
"multiple": "issues"
|
|
265
|
+
},
|
|
266
|
+
"line": {
|
|
267
|
+
"single": "line",
|
|
268
|
+
"multiple": "lines"
|
|
269
|
+
},
|
|
270
|
+
"note": {
|
|
271
|
+
"single": "note",
|
|
272
|
+
"multiple": "notes"
|
|
273
|
+
},
|
|
274
|
+
"opus": {
|
|
275
|
+
"single": "opus",
|
|
276
|
+
"multiple": "opera"
|
|
277
|
+
},
|
|
278
|
+
"page": {
|
|
279
|
+
"single": "page",
|
|
280
|
+
"multiple": "pages"
|
|
281
|
+
},
|
|
282
|
+
"paragraph": {
|
|
283
|
+
"single": "paragraph",
|
|
284
|
+
"multiple": "paragraphs"
|
|
285
|
+
},
|
|
286
|
+
"part": {
|
|
287
|
+
"single": "part",
|
|
288
|
+
"multiple": "parts"
|
|
289
|
+
},
|
|
290
|
+
"rule": {
|
|
291
|
+
"single": "rule",
|
|
292
|
+
"multiple": "rules"
|
|
293
|
+
},
|
|
294
|
+
"scene": {
|
|
295
|
+
"single": "scene",
|
|
296
|
+
"multiple": "scenes"
|
|
297
|
+
},
|
|
298
|
+
"section": {
|
|
299
|
+
"single": "section",
|
|
300
|
+
"multiple": "sections"
|
|
301
|
+
},
|
|
302
|
+
"sub-verbo": {
|
|
303
|
+
"single": "sub verbo",
|
|
304
|
+
"multiple": "sub verbis"
|
|
305
|
+
},
|
|
306
|
+
"supplement": {
|
|
307
|
+
"single": "supplement",
|
|
308
|
+
"multiple": "supplements"
|
|
309
|
+
},
|
|
310
|
+
"table": {
|
|
311
|
+
"single": "table",
|
|
312
|
+
"multiple": "tables"
|
|
313
|
+
},
|
|
314
|
+
"timestamp": "",
|
|
315
|
+
"title-locator": {
|
|
316
|
+
"single": "title",
|
|
317
|
+
"multiple": "titles"
|
|
318
|
+
},
|
|
319
|
+
"verse": {
|
|
320
|
+
"single": "verse",
|
|
321
|
+
"multiple": "verses"
|
|
322
|
+
},
|
|
323
|
+
"volume": {
|
|
324
|
+
"single": "volume",
|
|
325
|
+
"multiple": "volumes"
|
|
326
|
+
},
|
|
327
|
+
"appendix:short": {
|
|
328
|
+
"single": "app.",
|
|
329
|
+
"multiple": "apps."
|
|
330
|
+
},
|
|
331
|
+
"article-locator:short": {
|
|
332
|
+
"single": "art.",
|
|
333
|
+
"multiple": "arts."
|
|
334
|
+
},
|
|
335
|
+
"book:short": {
|
|
336
|
+
"single": "bk.",
|
|
337
|
+
"multiple": "bks."
|
|
338
|
+
},
|
|
339
|
+
"canon:short": {
|
|
340
|
+
"single": "can.",
|
|
341
|
+
"multiple": "cann."
|
|
342
|
+
},
|
|
343
|
+
"chapter:short": {
|
|
344
|
+
"single": "chap.",
|
|
345
|
+
"multiple": "chaps."
|
|
346
|
+
},
|
|
347
|
+
"column:short": {
|
|
348
|
+
"single": "col.",
|
|
349
|
+
"multiple": "cols."
|
|
350
|
+
},
|
|
351
|
+
"elocation:short": {
|
|
352
|
+
"single": "loc.",
|
|
353
|
+
"multiple": "locs."
|
|
354
|
+
},
|
|
355
|
+
"equation:short": {
|
|
356
|
+
"single": "eq.",
|
|
357
|
+
"multiple": "eqq."
|
|
358
|
+
},
|
|
359
|
+
"figure:short": {
|
|
360
|
+
"single": "fig.",
|
|
361
|
+
"multiple": "figs."
|
|
362
|
+
},
|
|
363
|
+
"folio:short": {
|
|
364
|
+
"single": "fol.",
|
|
365
|
+
"multiple": "fols."
|
|
366
|
+
},
|
|
367
|
+
"issue:short": {
|
|
368
|
+
"single": "no.",
|
|
369
|
+
"multiple": "nos."
|
|
370
|
+
},
|
|
371
|
+
"line:short": {
|
|
372
|
+
"single": "l.",
|
|
373
|
+
"multiple": "ll."
|
|
374
|
+
},
|
|
375
|
+
"note:short": {
|
|
376
|
+
"single": "n.",
|
|
377
|
+
"multiple": "nn."
|
|
378
|
+
},
|
|
379
|
+
"opus:short": {
|
|
380
|
+
"single": "op.",
|
|
381
|
+
"multiple": "opp."
|
|
382
|
+
},
|
|
383
|
+
"page:short": {
|
|
384
|
+
"single": "p.",
|
|
385
|
+
"multiple": "pp."
|
|
386
|
+
},
|
|
387
|
+
"paragraph:short": {
|
|
388
|
+
"single": "para.",
|
|
389
|
+
"multiple": "paras."
|
|
390
|
+
},
|
|
391
|
+
"part:short": {
|
|
392
|
+
"single": "pt.",
|
|
393
|
+
"multiple": "pts."
|
|
394
|
+
},
|
|
395
|
+
"rule:short": {
|
|
396
|
+
"single": "r.",
|
|
397
|
+
"multiple": "rr."
|
|
398
|
+
},
|
|
399
|
+
"scene:short": {
|
|
400
|
+
"single": "sc.",
|
|
401
|
+
"multiple": "scs."
|
|
402
|
+
},
|
|
403
|
+
"section:short": {
|
|
404
|
+
"single": "sec.",
|
|
405
|
+
"multiple": "secs."
|
|
406
|
+
},
|
|
407
|
+
"sub-verbo:short": {
|
|
408
|
+
"single": "s.v.",
|
|
409
|
+
"multiple": "s.vv."
|
|
410
|
+
},
|
|
411
|
+
"supplement:short": {
|
|
412
|
+
"single": "supp.",
|
|
413
|
+
"multiple": "supps."
|
|
414
|
+
},
|
|
415
|
+
"table:short": {
|
|
416
|
+
"single": "tbl.",
|
|
417
|
+
"multiple": "tbls."
|
|
418
|
+
},
|
|
419
|
+
"title-locator:short": {
|
|
420
|
+
"single": "tit.",
|
|
421
|
+
"multiple": "titt."
|
|
422
|
+
},
|
|
423
|
+
"verse:short": {
|
|
424
|
+
"single": "v.",
|
|
425
|
+
"multiple": "vv."
|
|
426
|
+
},
|
|
427
|
+
"volume:short": {
|
|
428
|
+
"single": "vol.",
|
|
429
|
+
"multiple": "vols."
|
|
430
|
+
},
|
|
431
|
+
"chapter:symbol": {
|
|
432
|
+
"single": "c.",
|
|
433
|
+
"multiple": "cc."
|
|
434
|
+
},
|
|
435
|
+
"paragraph:symbol": {
|
|
436
|
+
"single": "¶",
|
|
437
|
+
"multiple": "¶¶"
|
|
438
|
+
},
|
|
439
|
+
"section:symbol": {
|
|
440
|
+
"single": "§",
|
|
441
|
+
"multiple": "§§"
|
|
442
|
+
},
|
|
443
|
+
"chapter-number": {
|
|
444
|
+
"single": "chapter",
|
|
445
|
+
"multiple": "chapters"
|
|
446
|
+
},
|
|
447
|
+
"citation-number": {
|
|
448
|
+
"single": "citation",
|
|
449
|
+
"multiple": "citations"
|
|
450
|
+
},
|
|
451
|
+
"collection-number": {
|
|
452
|
+
"single": "number",
|
|
453
|
+
"multiple": "numbers"
|
|
454
|
+
},
|
|
455
|
+
"edition": {
|
|
456
|
+
"single": "edition",
|
|
457
|
+
"multiple": "editions"
|
|
458
|
+
},
|
|
459
|
+
"first-reference-note-number": {
|
|
460
|
+
"single": "reference",
|
|
461
|
+
"multiple": "references"
|
|
462
|
+
},
|
|
463
|
+
"number": {
|
|
464
|
+
"single": "number",
|
|
465
|
+
"multiple": "numbers"
|
|
466
|
+
},
|
|
467
|
+
"number-of-pages": {
|
|
468
|
+
"single": "page",
|
|
469
|
+
"multiple": "pages"
|
|
470
|
+
},
|
|
471
|
+
"number-of-volumes": {
|
|
472
|
+
"single": "volume",
|
|
473
|
+
"multiple": "volumes"
|
|
474
|
+
},
|
|
475
|
+
"page-first": {
|
|
476
|
+
"single": "page",
|
|
477
|
+
"multiple": "pages"
|
|
478
|
+
},
|
|
479
|
+
"printing": {
|
|
480
|
+
"single": "printing",
|
|
481
|
+
"multiple": "printings"
|
|
482
|
+
},
|
|
483
|
+
"version": {
|
|
484
|
+
"single": "version",
|
|
485
|
+
"multiple": "versions"
|
|
486
|
+
},
|
|
487
|
+
"chapter-number:short": {
|
|
488
|
+
"single": "chap.",
|
|
489
|
+
"multiple": "chaps."
|
|
490
|
+
},
|
|
491
|
+
"citation-number:short": {
|
|
492
|
+
"single": "cit.",
|
|
493
|
+
"multiple": "cits."
|
|
494
|
+
},
|
|
495
|
+
"collection-number:short": {
|
|
496
|
+
"single": "no.",
|
|
497
|
+
"multiple": "nos."
|
|
498
|
+
},
|
|
499
|
+
"edition:short": {
|
|
500
|
+
"single": "ed.",
|
|
501
|
+
"multiple": "eds."
|
|
502
|
+
},
|
|
503
|
+
"first-reference-note-number:short": {
|
|
504
|
+
"single": "ref.",
|
|
505
|
+
"multiple": "refs."
|
|
506
|
+
},
|
|
507
|
+
"number:short": {
|
|
508
|
+
"single": "no.",
|
|
509
|
+
"multiple": "nos."
|
|
510
|
+
},
|
|
511
|
+
"number-of-pages:short": {
|
|
512
|
+
"single": "p.",
|
|
513
|
+
"multiple": "pp."
|
|
514
|
+
},
|
|
515
|
+
"number-of-volumes:short": {
|
|
516
|
+
"single": "vol.",
|
|
517
|
+
"multiple": "vols."
|
|
518
|
+
},
|
|
519
|
+
"page-first:short": {
|
|
520
|
+
"single": "p.",
|
|
521
|
+
"multiple": "pp."
|
|
522
|
+
},
|
|
523
|
+
"printing:short": {
|
|
524
|
+
"single": "ptg.",
|
|
525
|
+
"multiple": "ptgs."
|
|
526
|
+
},
|
|
527
|
+
"version:short": "v.",
|
|
528
|
+
"author": "",
|
|
529
|
+
"chair": {
|
|
530
|
+
"single": "chair",
|
|
531
|
+
"multiple": "chairs"
|
|
532
|
+
},
|
|
533
|
+
"collection-editor": {
|
|
534
|
+
"single": "editor",
|
|
535
|
+
"multiple": "editors"
|
|
536
|
+
},
|
|
537
|
+
"compiler": {
|
|
538
|
+
"single": "compiler",
|
|
539
|
+
"multiple": "compilers"
|
|
540
|
+
},
|
|
541
|
+
"composer": "",
|
|
542
|
+
"container-author": "",
|
|
543
|
+
"contributor": {
|
|
544
|
+
"single": "contributor",
|
|
545
|
+
"multiple": "contributors"
|
|
546
|
+
},
|
|
547
|
+
"curator": {
|
|
548
|
+
"single": "curator",
|
|
549
|
+
"multiple": "curators"
|
|
550
|
+
},
|
|
551
|
+
"director": {
|
|
552
|
+
"single": "director",
|
|
553
|
+
"multiple": "directors"
|
|
554
|
+
},
|
|
555
|
+
"editor": {
|
|
556
|
+
"single": "editor",
|
|
557
|
+
"multiple": "editors"
|
|
558
|
+
},
|
|
559
|
+
"editor-translator": {
|
|
560
|
+
"single": "editor & translator",
|
|
561
|
+
"multiple": "editors & translators"
|
|
562
|
+
},
|
|
563
|
+
"editortranslator": {
|
|
564
|
+
"single": "editor & translator",
|
|
565
|
+
"multiple": "editors & translators"
|
|
566
|
+
},
|
|
567
|
+
"editorial-director": {
|
|
568
|
+
"single": "editor",
|
|
569
|
+
"multiple": "editors"
|
|
570
|
+
},
|
|
571
|
+
"executive-producer": {
|
|
572
|
+
"single": "executive producer",
|
|
573
|
+
"multiple": "executive producers"
|
|
574
|
+
},
|
|
575
|
+
"guest": {
|
|
576
|
+
"single": "guest",
|
|
577
|
+
"multiple": "guests"
|
|
578
|
+
},
|
|
579
|
+
"host": {
|
|
580
|
+
"single": "host",
|
|
581
|
+
"multiple": "hosts"
|
|
582
|
+
},
|
|
583
|
+
"illustrator": {
|
|
584
|
+
"single": "illustrator",
|
|
585
|
+
"multiple": "illustrators"
|
|
586
|
+
},
|
|
587
|
+
"interviewer": "",
|
|
588
|
+
"narrator": {
|
|
589
|
+
"single": "narrator",
|
|
590
|
+
"multiple": "narrators"
|
|
591
|
+
},
|
|
592
|
+
"organizer": {
|
|
593
|
+
"single": "organizer",
|
|
594
|
+
"multiple": "organizers"
|
|
595
|
+
},
|
|
596
|
+
"original-author": "",
|
|
597
|
+
"performer": {
|
|
598
|
+
"single": "performer",
|
|
599
|
+
"multiple": "performers"
|
|
600
|
+
},
|
|
601
|
+
"producer": {
|
|
602
|
+
"single": "producer",
|
|
603
|
+
"multiple": "producers"
|
|
604
|
+
},
|
|
605
|
+
"recipient": "",
|
|
606
|
+
"reviewed-author": "",
|
|
607
|
+
"script-writer": {
|
|
608
|
+
"single": "writer",
|
|
609
|
+
"multiple": "writers"
|
|
610
|
+
},
|
|
611
|
+
"series-creator": {
|
|
612
|
+
"single": "series creator",
|
|
613
|
+
"multiple": "series creators"
|
|
614
|
+
},
|
|
615
|
+
"translator": {
|
|
616
|
+
"single": "translator",
|
|
617
|
+
"multiple": "translators"
|
|
618
|
+
},
|
|
619
|
+
"collection-editor:short": {
|
|
620
|
+
"single": "ed.",
|
|
621
|
+
"multiple": "eds."
|
|
622
|
+
},
|
|
623
|
+
"compiler:short": {
|
|
624
|
+
"single": "comp.",
|
|
625
|
+
"multiple": "comps."
|
|
626
|
+
},
|
|
627
|
+
"contributor:short": {
|
|
628
|
+
"single": "contrib.",
|
|
629
|
+
"multiple": "contribs."
|
|
630
|
+
},
|
|
631
|
+
"curator:short": {
|
|
632
|
+
"single": "cur.",
|
|
633
|
+
"multiple": "curs."
|
|
634
|
+
},
|
|
635
|
+
"director:short": {
|
|
636
|
+
"single": "dir.",
|
|
637
|
+
"multiple": "dirs."
|
|
638
|
+
},
|
|
639
|
+
"editor:short": {
|
|
640
|
+
"single": "ed.",
|
|
641
|
+
"multiple": "eds."
|
|
642
|
+
},
|
|
643
|
+
"editor-translator:short": {
|
|
644
|
+
"single": "ed. & trans.",
|
|
645
|
+
"multiple": "eds. & trans."
|
|
646
|
+
},
|
|
647
|
+
"editortranslator:short": {
|
|
648
|
+
"single": "ed. & trans.",
|
|
649
|
+
"multiple": "eds. & trans."
|
|
650
|
+
},
|
|
651
|
+
"editorial-director:short": {
|
|
652
|
+
"single": "ed.",
|
|
653
|
+
"multiple": "eds."
|
|
654
|
+
},
|
|
655
|
+
"executive-producer:short": {
|
|
656
|
+
"single": "exec. prod.",
|
|
657
|
+
"multiple": "exec. prods."
|
|
658
|
+
},
|
|
659
|
+
"illustrator:short": {
|
|
660
|
+
"single": "ill.",
|
|
661
|
+
"multiple": "ills."
|
|
662
|
+
},
|
|
663
|
+
"narrator:short": {
|
|
664
|
+
"single": "narr.",
|
|
665
|
+
"multiple": "narrs."
|
|
666
|
+
},
|
|
667
|
+
"organizer:short": {
|
|
668
|
+
"single": "org.",
|
|
669
|
+
"multiple": "orgs."
|
|
670
|
+
},
|
|
671
|
+
"performer:short": {
|
|
672
|
+
"single": "perf.",
|
|
673
|
+
"multiple": "perfs."
|
|
674
|
+
},
|
|
675
|
+
"producer:short": {
|
|
676
|
+
"single": "prod.",
|
|
677
|
+
"multiple": "prods."
|
|
678
|
+
},
|
|
679
|
+
"script-writer:short": {
|
|
680
|
+
"single": "wrtr.",
|
|
681
|
+
"multiple": "wrtrs."
|
|
682
|
+
},
|
|
683
|
+
"series-creator:short": {
|
|
684
|
+
"single": "ser. creator",
|
|
685
|
+
"multiple": "ser. creators"
|
|
686
|
+
},
|
|
687
|
+
"translator:short": "trans.",
|
|
688
|
+
"chair:verb": "chaired by",
|
|
689
|
+
"collection-editor:verb": "edited by",
|
|
690
|
+
"compiler:verb": "compiled by",
|
|
691
|
+
"composer:verb": "composed by",
|
|
692
|
+
"container-author:verb": "by",
|
|
693
|
+
"contributor:verb": "with",
|
|
694
|
+
"curator:verb": "curated by",
|
|
695
|
+
"director:verb": "directed by",
|
|
696
|
+
"editor:verb": "edited by",
|
|
697
|
+
"editor-translator:verb": "edited & translated by",
|
|
698
|
+
"editortranslator:verb": "edited & translated by",
|
|
699
|
+
"editorial-director:verb": "edited by",
|
|
700
|
+
"executive-producer:verb": "executive produced by",
|
|
701
|
+
"guest:verb": {
|
|
702
|
+
"single": "with guest",
|
|
703
|
+
"multiple": "with guests"
|
|
704
|
+
},
|
|
705
|
+
"host:verb": "hosted by",
|
|
706
|
+
"illustrator:verb": "illustrated by",
|
|
707
|
+
"interviewer:verb": "interview by",
|
|
708
|
+
"narrator:verb": "narrated by",
|
|
709
|
+
"organizer:verb": "organized by",
|
|
710
|
+
"original-author:verb": "by",
|
|
711
|
+
"performer:verb": "performed by",
|
|
712
|
+
"producer:verb": "produced by",
|
|
713
|
+
"recipient:verb": "to",
|
|
714
|
+
"reviewed-author:verb": "by",
|
|
715
|
+
"script-writer:verb": "written by",
|
|
716
|
+
"series-creator:verb": "created by",
|
|
717
|
+
"translator:verb": "translated by",
|
|
718
|
+
"collection-editor:verb-short": "ed. by",
|
|
719
|
+
"compiler:verb-short": "comp. by",
|
|
720
|
+
"composer:verb-short": "comp. by",
|
|
721
|
+
"curator:verb-short": "cur. by",
|
|
722
|
+
"director:verb-short": "dir. by",
|
|
723
|
+
"editor:verb-short": "ed. by",
|
|
724
|
+
"editor-translator:verb-short": "ed. & trans. by",
|
|
725
|
+
"editortranslator:verb-short": "ed. & trans. by",
|
|
726
|
+
"editorial-director:verb-short": "ed. by",
|
|
727
|
+
"executive-producer:verb-short": "exec. prod. by",
|
|
728
|
+
"illustrator:verb-short": "ill. by",
|
|
729
|
+
"narrator:verb-short": "narr. by",
|
|
730
|
+
"organizer:verb-short": "org. by",
|
|
731
|
+
"performer:verb-short": "perf. by",
|
|
732
|
+
"producer:verb-short": "prod. by",
|
|
733
|
+
"script-writer:verb-short": "writ. by",
|
|
734
|
+
"translator:verb-short": "trans. by",
|
|
735
|
+
"month-01": "January",
|
|
736
|
+
"month-02": "February",
|
|
737
|
+
"month-03": "March",
|
|
738
|
+
"month-04": "April",
|
|
739
|
+
"month-05": "May",
|
|
740
|
+
"month-06": "June",
|
|
741
|
+
"month-07": "July",
|
|
742
|
+
"month-08": "August",
|
|
743
|
+
"month-09": "September",
|
|
744
|
+
"month-10": "October",
|
|
745
|
+
"month-11": "November",
|
|
746
|
+
"month-12": "December",
|
|
747
|
+
"month-01:short": "Jan.",
|
|
748
|
+
"month-02:short": "Feb.",
|
|
749
|
+
"month-03:short": "Mar.",
|
|
750
|
+
"month-04:short": "Apr.",
|
|
751
|
+
"month-05:short": "May",
|
|
752
|
+
"month-06:short": "June",
|
|
753
|
+
"month-07:short": "July",
|
|
754
|
+
"month-08:short": "Aug.",
|
|
755
|
+
"month-09:short": "Sept.",
|
|
756
|
+
"month-10:short": "Oct.",
|
|
757
|
+
"month-11:short": "Nov.",
|
|
758
|
+
"month-12:short": "Dec.",
|
|
759
|
+
"season-01": "Spring",
|
|
760
|
+
"season-02": "Summer",
|
|
761
|
+
"season-03": "Autumn",
|
|
762
|
+
"season-04": "Winter"
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
const MONTHS = {"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"}
|
|
766
|
+
|
|
767
|
+
const NAME_OPTS = {"namesDelimiter":", ","initializeWith":". "}
|
|
768
|
+
|
|
769
|
+
function _nameConfig(ctx, el) {
|
|
770
|
+
const c = Object.assign({}, NAME_OPTS, ctx._secOpts || {}, el)
|
|
771
|
+
if (el.initialize === false || (ctx._secOpts || {}).initialize === false || NAME_OPTS.initialize === false) c.initialize = false
|
|
772
|
+
if (c.and === 'text') c.andTerm = T['and'] || 'and'
|
|
773
|
+
else if (c.and === 'symbol') c.andTerm = '&'
|
|
774
|
+
if (!c.etAlTerm) c.etAlTerm = T[el._etAlTerm || 'et-al'] || 'et al.'
|
|
775
|
+
if (ctx._disambig) c._disambig = ctx._disambig
|
|
776
|
+
return c
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
function macro_label_chapter_number(item, ctx) {
|
|
780
|
+
const _gp1 = []
|
|
781
|
+
if ((item.type === "song" && (item["chapter-number"] != null && /^\s*\d/.test(String(item["chapter-number"]))))) {
|
|
782
|
+
const _v2 = "track"
|
|
783
|
+
_gp1.push(applyTextCase(_v2, "capitalize-first"))
|
|
784
|
+
}
|
|
785
|
+
else if ((item["chapter-number"] != null && /^\s*\d/.test(String(item["chapter-number"])))) {
|
|
786
|
+
const _v3 = (() => {
|
|
787
|
+
const _val = item["chapter-number"]
|
|
788
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
789
|
+
const _term = T["chapter"]
|
|
790
|
+
if (_term == null) return ''
|
|
791
|
+
if (typeof _term === 'string') return _term
|
|
792
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
793
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
794
|
+
})()
|
|
795
|
+
_gp1.push(applyTextCase(_v3, "capitalize-first"))
|
|
796
|
+
}
|
|
797
|
+
const _v4 = (item["chapter-number"] != null && item["chapter-number"] !== '' ? String(item["chapter-number"]) : '')
|
|
798
|
+
_gp1.push((stripNocaseSpans(_v4) ? '\uE020chapter-number\uE021' + stripNocaseSpans(_v4) + '\uE022' : ''))
|
|
799
|
+
const _g0 = _gp1.filter(v => v !== '').join(" ")
|
|
800
|
+
return _g0
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
function macro_label_edition(item, ctx) {
|
|
804
|
+
const _gp6 = []
|
|
805
|
+
if ((item.edition != null && /^\s*\d/.test(String(item.edition)))) {
|
|
806
|
+
const _v7 = item.edition != null ? String(item.edition) : ''
|
|
807
|
+
_gp6.push(((_v7 && !isNaN(Number(_v7)) ? ordinal(Number(_v7)) : _v7) ? '\uE020edition\uE021' + (_v7 && !isNaN(Number(_v7)) ? ordinal(Number(_v7)) : _v7) + '\uE022' : ''))
|
|
808
|
+
const _v8 = (() => {
|
|
809
|
+
const _val = item.edition
|
|
810
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
811
|
+
const _term = T["edition:short"]
|
|
812
|
+
if (_term == null) return ''
|
|
813
|
+
if (typeof _term === 'string') return _term
|
|
814
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
815
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
816
|
+
})()
|
|
817
|
+
_gp6.push(_v8)
|
|
818
|
+
}
|
|
819
|
+
else {
|
|
820
|
+
const _v9 = (item.edition != null && item.edition !== '' ? String(item.edition) : '')
|
|
821
|
+
_gp6.push((stripNocaseSpans(_v9) ? '\uE020edition\uE021' + stripNocaseSpans(_v9) + '\uE022' : ''))
|
|
822
|
+
}
|
|
823
|
+
const _g5 = _gp6.filter(v => v !== '').join(" ")
|
|
824
|
+
return _g5
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
function macro_label_issue(item, ctx) {
|
|
828
|
+
const _v12 = (() => {
|
|
829
|
+
const _val = item.issue
|
|
830
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
831
|
+
const _term = T["issue"]
|
|
832
|
+
if (_term == null) return ''
|
|
833
|
+
if (typeof _term === 'string') return _term
|
|
834
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
835
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
836
|
+
})()
|
|
837
|
+
const _v13 = (item.issue != null && item.issue !== '' ? String(item.issue) : '')
|
|
838
|
+
const _g10 = ((item.issue == null || item.issue === '')) ? '' : [applyTextCase(_v12, "capitalize-first"), (stripNocaseSpans(_v13) ? '\uE020issue\uE021' + stripNocaseSpans(_v13) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
839
|
+
return _g10
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
function macro_label_locator(item, ctx) {
|
|
843
|
+
const _gp15 = []
|
|
844
|
+
if (ctx.locator === "page") {
|
|
845
|
+
const _v16 = (() => {
|
|
846
|
+
const _val = item.locator
|
|
847
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
848
|
+
const _term = T[(item._locatorLabel || 'page') + ":short"]
|
|
849
|
+
if (_term == null) return ''
|
|
850
|
+
if (typeof _term === 'string') return _term
|
|
851
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
852
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
853
|
+
})()
|
|
854
|
+
_gp15.push(_v16)
|
|
855
|
+
}
|
|
856
|
+
else if ((item.type === "bill" || item.type === "hearing" || item.type === "legal_case" || item.type === "legislation" || item.type === "regulation" || item.type === "treaty")) {
|
|
857
|
+
let _ch17 = ''
|
|
858
|
+
if ((ctx.locator === "chapter" || ctx.locator === "paragraph" || ctx.locator === "section")) {
|
|
859
|
+
const _v18 = (() => {
|
|
860
|
+
const _val = item.locator
|
|
861
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
862
|
+
const _term = T[(item._locatorLabel || 'page') + ":symbol"]
|
|
863
|
+
if (_term == null) return ''
|
|
864
|
+
if (typeof _term === 'string') return _term
|
|
865
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
866
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
867
|
+
})()
|
|
868
|
+
_ch17 = _v18
|
|
869
|
+
}
|
|
870
|
+
else {
|
|
871
|
+
const _v19 = (() => {
|
|
872
|
+
const _val = item.locator
|
|
873
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
874
|
+
const _term = T[(item._locatorLabel || 'page') + ""]
|
|
875
|
+
if (_term == null) return ''
|
|
876
|
+
if (typeof _term === 'string') return _term
|
|
877
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
878
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
879
|
+
})()
|
|
880
|
+
_ch17 = applyTextCase(_v19, "capitalize-first")
|
|
881
|
+
}
|
|
882
|
+
_gp15.push(_ch17)
|
|
883
|
+
}
|
|
884
|
+
else if (ctx.locator === "paragraph") {
|
|
885
|
+
const _v20 = (() => {
|
|
886
|
+
const _val = item.locator
|
|
887
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
888
|
+
const _term = T[(item._locatorLabel || 'page') + ":short"]
|
|
889
|
+
if (_term == null) return ''
|
|
890
|
+
if (typeof _term === 'string') return _term
|
|
891
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
892
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
893
|
+
})()
|
|
894
|
+
_gp15.push(_v20)
|
|
895
|
+
}
|
|
896
|
+
else if ((item.locator != null && /^\s*\d/.test(String(item.locator)))) {
|
|
897
|
+
const _v21 = (() => {
|
|
898
|
+
const _val = item.locator
|
|
899
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
900
|
+
const _term = T[(item._locatorLabel || 'page') + ""]
|
|
901
|
+
if (_term == null) return ''
|
|
902
|
+
if (typeof _term === 'string') return _term
|
|
903
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
904
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
905
|
+
})()
|
|
906
|
+
_gp15.push(applyTextCase(_v21, "capitalize-first"))
|
|
907
|
+
}
|
|
908
|
+
else if ((ctx.locator === "chapter" || ctx.locator === "line" || ctx.locator === "verse")) {
|
|
909
|
+
}
|
|
910
|
+
else {
|
|
911
|
+
const _v22 = (() => {
|
|
912
|
+
const _val = item.locator
|
|
913
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
914
|
+
const _term = T[(item._locatorLabel || 'page') + ""]
|
|
915
|
+
if (_term == null) return ''
|
|
916
|
+
if (typeof _term === 'string') return _term
|
|
917
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
918
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
919
|
+
})()
|
|
920
|
+
_gp15.push(applyTextCase(_v22, "capitalize-first"))
|
|
921
|
+
}
|
|
922
|
+
const _v23 = (item.locator != null && item.locator !== '' ? String(item.locator) : '')
|
|
923
|
+
_gp15.push((stripNocaseSpans(_v23) ? '\uE020locator\uE021' + stripNocaseSpans(_v23) + '\uE022' : ''))
|
|
924
|
+
const _g14 = _gp15.filter(v => v !== '').join(" ")
|
|
925
|
+
return _g14
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
function macro_label_number(item, ctx) {
|
|
929
|
+
const _gp25 = []
|
|
930
|
+
if (item.type === "standard") {
|
|
931
|
+
}
|
|
932
|
+
else if ((item.type === "legislation" || item.type === "patent" || item.type === "regulation" || (item.number != null && /^\s*\d/.test(String(item.number))))) {
|
|
933
|
+
const _v26 = (() => {
|
|
934
|
+
const _val = item.number
|
|
935
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
936
|
+
const _term = T["number:short"]
|
|
937
|
+
if (_term == null) return ''
|
|
938
|
+
if (typeof _term === 'string') return _term
|
|
939
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
940
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
941
|
+
})()
|
|
942
|
+
_gp25.push(applyTextCase(_v26, "capitalize-first"))
|
|
943
|
+
}
|
|
944
|
+
const _v27 = (item.number != null && item.number !== '' ? String(item.number) : '')
|
|
945
|
+
_gp25.push((applyTextCase(_v27, "capitalize-first") ? '\uE020number\uE021' + applyTextCase(_v27, "capitalize-first") + '\uE022' : ''))
|
|
946
|
+
const _g24 = _gp25.filter(v => v !== '').join(" ")
|
|
947
|
+
return _g24
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
function macro_label_number_capitalized(item, ctx) {
|
|
951
|
+
const _v28 = macro_label_number(item, ctx)
|
|
952
|
+
return _v28
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
function macro_label_number_article(item, ctx) {
|
|
956
|
+
const _v31 = (T["article-locator"] != null ? (typeof T["article-locator"] === 'string' ? T["article-locator"] : (T["article-locator"].single || '')) : '')
|
|
957
|
+
const _v32 = (item.number != null && item.number !== '' ? String(item.number) : '')
|
|
958
|
+
const _g29 = ((item.number == null || item.number === '')) ? '' : [applyTextCase(_v31, "capitalize-first"), (stripNocaseSpans(_v32) ? '\uE020number\uE021' + stripNocaseSpans(_v32) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
959
|
+
return _g29
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
function macro_label_number_of_volumes(item, ctx) {
|
|
963
|
+
const _gp34 = []
|
|
964
|
+
if ((item["number-of-volumes"] != null && /^\s*\d/.test(String(item["number-of-volumes"])))) {
|
|
965
|
+
const _v35 = (() => {
|
|
966
|
+
const _val = item["number-of-volumes"]
|
|
967
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
968
|
+
const _term = T["number-of-volumes:short"]
|
|
969
|
+
if (_term == null) return ''
|
|
970
|
+
if (typeof _term === 'string') return _term
|
|
971
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
972
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
973
|
+
})()
|
|
974
|
+
_gp34.push(applyTextCase(_v35, "capitalize-first"))
|
|
975
|
+
const _v38 = (T["page-range-delimiter"] != null ? (typeof T["page-range-delimiter"] === 'string' ? T["page-range-delimiter"] : (T["page-range-delimiter"].single || '')) : '')
|
|
976
|
+
const _v39 = item["number-of-volumes"] != null ? String(item["number-of-volumes"]) : ''
|
|
977
|
+
const _g36 = ((item["number-of-volumes"] == null || item["number-of-volumes"] === '')) ? '' : [(_v38 ? "1" + _v38 : ''), (_v39 ? '\uE020number-of-volumes\uE021' + _v39 + '\uE022' : '')].filter(v => v !== '').join('')
|
|
978
|
+
_gp34.push(_g36)
|
|
979
|
+
}
|
|
980
|
+
else {
|
|
981
|
+
const _v40 = (item["number-of-volumes"] != null && item["number-of-volumes"] !== '' ? String(item["number-of-volumes"]) : '')
|
|
982
|
+
_gp34.push((stripNocaseSpans(_v40) ? '\uE020number-of-volumes\uE021' + stripNocaseSpans(_v40) + '\uE022' : ''))
|
|
983
|
+
}
|
|
984
|
+
const _g33 = _gp34.filter(v => v !== '').join(" ")
|
|
985
|
+
return _g33
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
function macro_label_page(item, ctx) {
|
|
989
|
+
const _v43 = (() => {
|
|
990
|
+
const _val = item.page
|
|
991
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
992
|
+
const _term = T["page:short"]
|
|
993
|
+
if (_term == null) return ''
|
|
994
|
+
if (typeof _term === 'string') return _term
|
|
995
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
996
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
997
|
+
})()
|
|
998
|
+
const _v44 = (item.page != null && item.page !== '' ? pageRange(stripNocaseSpans(String(item.page)), "expanded") : '')
|
|
999
|
+
const _g41 = ((item.page == null || item.page === '')) ? '' : [_v43, (stripNocaseSpans(_v44) ? '\uE020page\uE021' + stripNocaseSpans(_v44) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
1000
|
+
return _g41
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
function macro_label_part_number(item, ctx) {
|
|
1004
|
+
const _gp46 = []
|
|
1005
|
+
if ((item["part-number"] != null && /^\s*\d/.test(String(item["part-number"])))) {
|
|
1006
|
+
const _v47 = (T["part:short"] != null ? (typeof T["part:short"] === 'string' ? T["part:short"] : (T["part:short"].single || '')) : '')
|
|
1007
|
+
_gp46.push(applyTextCase(_v47, "capitalize-first"))
|
|
1008
|
+
}
|
|
1009
|
+
const _v48 = (item["part-number"] != null && item["part-number"] !== '' ? String(item["part-number"]) : '')
|
|
1010
|
+
_gp46.push((applyTextCase(_v48, "capitalize-first") ? '\uE020part-number\uE021' + applyTextCase(_v48, "capitalize-first") + '\uE022' : ''))
|
|
1011
|
+
const _g45 = _gp46.filter(v => v !== '').join(" ")
|
|
1012
|
+
return _g45
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
function macro_label_section_symbol(item, ctx) {
|
|
1016
|
+
const _v51 = (() => {
|
|
1017
|
+
const _val = item.section
|
|
1018
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1019
|
+
const _term = T["section:symbol"]
|
|
1020
|
+
if (_term == null) return ''
|
|
1021
|
+
if (typeof _term === 'string') return _term
|
|
1022
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1023
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1024
|
+
})()
|
|
1025
|
+
const _v52 = (item.section != null && item.section !== '' ? String(item.section) : '')
|
|
1026
|
+
const _g49 = ((item.section == null || item.section === '')) ? '' : [_v51, (stripNocaseSpans(_v52) ? '\uE020section\uE021' + stripNocaseSpans(_v52) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
1027
|
+
return _g49
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
function macro_label_supplement_number(item, ctx) {
|
|
1031
|
+
const _gp54 = []
|
|
1032
|
+
if ((item["supplement-number"] != null && /^\s*\d/.test(String(item["supplement-number"])))) {
|
|
1033
|
+
const _v55 = (T["supplement:short"] != null ? (typeof T["supplement:short"] === 'string' ? T["supplement:short"] : (T["supplement:short"].single || '')) : '')
|
|
1034
|
+
_gp54.push(applyTextCase(_v55, "capitalize-first"))
|
|
1035
|
+
}
|
|
1036
|
+
const _v56 = (item["supplement-number"] != null && item["supplement-number"] !== '' ? String(item["supplement-number"]) : '')
|
|
1037
|
+
_gp54.push((applyTextCase(_v56, "capitalize-first") ? '\uE020supplement-number\uE021' + applyTextCase(_v56, "capitalize-first") + '\uE022' : ''))
|
|
1038
|
+
const _g53 = _gp54.filter(v => v !== '').join(" ")
|
|
1039
|
+
return _g53
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
function macro_label_version(item, ctx) {
|
|
1043
|
+
const _v59 = (() => {
|
|
1044
|
+
const _val = item.version
|
|
1045
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1046
|
+
const _term = T["version"]
|
|
1047
|
+
if (_term == null) return ''
|
|
1048
|
+
if (typeof _term === 'string') return _term
|
|
1049
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1050
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1051
|
+
})()
|
|
1052
|
+
const _v60 = (item.version != null && item.version !== '' ? String(item.version) : '')
|
|
1053
|
+
const _g57 = ((item.version == null || item.version === '')) ? '' : [applyTextCase(_v59, "capitalize-first"), (stripNocaseSpans(_v60) ? '\uE020version\uE021' + stripNocaseSpans(_v60) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
1054
|
+
return _g57
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
function macro_label_volume(item, ctx) {
|
|
1058
|
+
const _gp62 = []
|
|
1059
|
+
if ((item.volume != null && /^\s*\d/.test(String(item.volume)))) {
|
|
1060
|
+
const _v63 = (() => {
|
|
1061
|
+
const _val = item.volume
|
|
1062
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1063
|
+
const _term = T["volume:short"]
|
|
1064
|
+
if (_term == null) return ''
|
|
1065
|
+
if (typeof _term === 'string') return _term
|
|
1066
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1067
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1068
|
+
})()
|
|
1069
|
+
_gp62.push(applyTextCase(_v63, "capitalize-first"))
|
|
1070
|
+
}
|
|
1071
|
+
const _v64 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
1072
|
+
_gp62.push((applyTextCase(_v64, "capitalize-first") ? '\uE020volume\uE021' + applyTextCase(_v64, "capitalize-first") + '\uE022' : ''))
|
|
1073
|
+
const _g61 = _gp62.filter(v => v !== '').join(" ")
|
|
1074
|
+
return _g61
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
function macro_author(item, ctx) {
|
|
1078
|
+
let _n65 = ''
|
|
1079
|
+
if (item.composer && item.composer.length) {
|
|
1080
|
+
_n65 = formatNames(item.composer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1081
|
+
if (_n65) _n65 = '\uE020composer\uE021' + _n65 + '\uE022'
|
|
1082
|
+
}
|
|
1083
|
+
if (!_n65) {
|
|
1084
|
+
let _n66 = ''
|
|
1085
|
+
if (item.author && item.author.length) {
|
|
1086
|
+
_n66 = formatNames(item.author, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1087
|
+
if (_n66) _n66 = '\uE020author\uE021' + _n66 + '\uE022'
|
|
1088
|
+
}
|
|
1089
|
+
if (!_n65) _n65 = _n66
|
|
1090
|
+
let _n67 = ''
|
|
1091
|
+
if (item.illustrator && item.illustrator.length) {
|
|
1092
|
+
_n67 = formatNames(item.illustrator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1093
|
+
if (_n67) _n67 = '\uE020illustrator\uE021' + _n67 + '\uE022'
|
|
1094
|
+
}
|
|
1095
|
+
if (!_n65) _n65 = _n67
|
|
1096
|
+
let _ch68 = ''
|
|
1097
|
+
if (item.type === "broadcast") {
|
|
1098
|
+
let _n69 = ''
|
|
1099
|
+
if (item["script-writer"] && item["script-writer"].length) {
|
|
1100
|
+
_n69 = formatNames(item["script-writer"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1101
|
+
if (_n69) _n69 = '\uE020script-writer\uE021' + _n69 + '\uE022'
|
|
1102
|
+
}
|
|
1103
|
+
else if (item.director && item.director.length) {
|
|
1104
|
+
_n69 = formatNames(item.director, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1105
|
+
const _v70 = (() => {
|
|
1106
|
+
const _val = item.director
|
|
1107
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1108
|
+
const _term = T["director"]
|
|
1109
|
+
if (_term == null) return ''
|
|
1110
|
+
if (typeof _term === 'string') return _term
|
|
1111
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1112
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1113
|
+
})()
|
|
1114
|
+
if (_n69) _n69 += ' ' + (applyTextCase(_v70, "title") ? " (" + applyTextCase(_v70, "title") + ")" : '')
|
|
1115
|
+
if (_n69) _n69 = '\uE020director\uE021' + _n69 + '\uE022'
|
|
1116
|
+
}
|
|
1117
|
+
_ch68 = _n69
|
|
1118
|
+
}
|
|
1119
|
+
if (!_n65) _n65 = _ch68
|
|
1120
|
+
let _n71 = ''
|
|
1121
|
+
if (item.director && item.director.length) {
|
|
1122
|
+
_n71 = formatNames(item.director, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1123
|
+
if (_n71) _n71 = '\uE020director\uE021' + _n71 + '\uE022'
|
|
1124
|
+
}
|
|
1125
|
+
if (!_n65) _n65 = _n71
|
|
1126
|
+
let _n72 = ''
|
|
1127
|
+
if (item.guest && item.guest.length) {
|
|
1128
|
+
_n72 = formatNames(item.guest, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1129
|
+
if (_n72) _n72 = '\uE020guest\uE021' + _n72 + '\uE022'
|
|
1130
|
+
}
|
|
1131
|
+
else if (item.host && item.host.length) {
|
|
1132
|
+
_n72 = formatNames(item.host, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1133
|
+
const _v73 = (() => {
|
|
1134
|
+
const _val = item.host
|
|
1135
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1136
|
+
const _term = T["host"]
|
|
1137
|
+
if (_term == null) return ''
|
|
1138
|
+
if (typeof _term === 'string') return _term
|
|
1139
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1140
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1141
|
+
})()
|
|
1142
|
+
if (_n72) _n72 += ' ' + (applyTextCase(_v73, "title") ? " (" + applyTextCase(_v73, "title") + ")" : '')
|
|
1143
|
+
if (_n72) _n72 = '\uE020host\uE021' + _n72 + '\uE022'
|
|
1144
|
+
}
|
|
1145
|
+
if (!_n65) _n65 = _n72
|
|
1146
|
+
let _n74 = ''
|
|
1147
|
+
if (item.producer && item.producer.length) {
|
|
1148
|
+
_n74 = formatNames(item.producer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1149
|
+
if (_n74) _n74 = '\uE020producer\uE021' + _n74 + '\uE022'
|
|
1150
|
+
}
|
|
1151
|
+
if (!_n65) _n65 = _n74
|
|
1152
|
+
let _ch75 = ''
|
|
1153
|
+
if ((item.type === "entry-dictionary" || item.type === "entry-encyclopedia")) {
|
|
1154
|
+
const _v76 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
1155
|
+
_ch75 = (stripNocaseSpans(_v76) ? '\uE020publisher\uE021' + stripNocaseSpans(_v76) + '\uE022' : '')
|
|
1156
|
+
}
|
|
1157
|
+
if (!_n65) _n65 = _ch75
|
|
1158
|
+
let _ch77 = ''
|
|
1159
|
+
if (!((item["container-title"] != null && item["container-title"] !== ''))) {
|
|
1160
|
+
_ch77 = [].filter(v => v !== '').join('')
|
|
1161
|
+
}
|
|
1162
|
+
else if ((item.type === "book" || item.type === "classic" || item.type === "entry" || item.type === "entry-dictionary" || item.type === "entry-encyclopedia")) {
|
|
1163
|
+
const _v78 = macro_author_title_substitute(item, ctx)
|
|
1164
|
+
_ch77 = _v78
|
|
1165
|
+
}
|
|
1166
|
+
if (!_n65) _n65 = _ch77
|
|
1167
|
+
let _n79 = ''
|
|
1168
|
+
if (item["executive-producer"] && item["executive-producer"].length) {
|
|
1169
|
+
_n79 = formatNames(item["executive-producer"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1170
|
+
if (_n79) _n79 = '\uE020executive-producer\uE021' + _n79 + '\uE022'
|
|
1171
|
+
}
|
|
1172
|
+
if (!_n65) _n65 = _n79
|
|
1173
|
+
let _n80 = ''
|
|
1174
|
+
if (item["series-creator"] && item["series-creator"].length) {
|
|
1175
|
+
_n80 = formatNames(item["series-creator"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1176
|
+
if (_n80) _n80 = '\uE020series-creator\uE021' + _n80 + '\uE022'
|
|
1177
|
+
}
|
|
1178
|
+
if (!_n65) _n65 = _n80
|
|
1179
|
+
let _n81 = ''
|
|
1180
|
+
if (item["editor-translator"] && item["editor-translator"].length) {
|
|
1181
|
+
_n81 = formatNames(item["editor-translator"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1182
|
+
if (_n81) _n81 = '\uE020editor-translator\uE021' + _n81 + '\uE022'
|
|
1183
|
+
}
|
|
1184
|
+
if (!_n65) _n65 = _n81
|
|
1185
|
+
let _n82 = ''
|
|
1186
|
+
if (item.editor && item.editor.length) {
|
|
1187
|
+
_n82 = formatNames(item.editor, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1188
|
+
if (_n82) _n82 = '\uE020editor\uE021' + _n82 + '\uE022'
|
|
1189
|
+
}
|
|
1190
|
+
if (!_n65) _n65 = _n82
|
|
1191
|
+
let _n83 = ''
|
|
1192
|
+
if (item["editorial-director"] && item["editorial-director"].length) {
|
|
1193
|
+
_n83 = formatNames(item["editorial-director"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1194
|
+
if (_n83) _n83 = '\uE020editorial-director\uE021' + _n83 + '\uE022'
|
|
1195
|
+
}
|
|
1196
|
+
if (!_n65) _n65 = _n83
|
|
1197
|
+
let _n84 = ''
|
|
1198
|
+
if (item.compiler && item.compiler.length) {
|
|
1199
|
+
_n84 = formatNames(item.compiler, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1200
|
+
if (_n84) _n84 = '\uE020compiler\uE021' + _n84 + '\uE022'
|
|
1201
|
+
}
|
|
1202
|
+
if (!_n65) _n65 = _n84
|
|
1203
|
+
let _ch85 = ''
|
|
1204
|
+
if ((item.type === "event" || item.type === "performance" || item.type === "speech")) {
|
|
1205
|
+
let _n86 = ''
|
|
1206
|
+
if (item.chair && item.chair.length) {
|
|
1207
|
+
_n86 = formatNames(item.chair, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1208
|
+
if (_n86) _n86 = '\uE020chair\uE021' + _n86 + '\uE022'
|
|
1209
|
+
}
|
|
1210
|
+
let _n87 = ''
|
|
1211
|
+
if (item.organizer && item.organizer.length) {
|
|
1212
|
+
_n87 = formatNames(item.organizer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1213
|
+
if (_n87) _n87 = '\uE020organizer\uE021' + _n87 + '\uE022'
|
|
1214
|
+
}
|
|
1215
|
+
_ch85 = [_n86, _n87].filter(v => v !== '').join('')
|
|
1216
|
+
}
|
|
1217
|
+
if (!_n65) _n65 = _ch85
|
|
1218
|
+
let _n88 = ''
|
|
1219
|
+
if (item.curator && item.curator.length) {
|
|
1220
|
+
_n88 = formatNames(item.curator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1221
|
+
if (_n88) _n88 = '\uE020curator\uE021' + _n88 + '\uE022'
|
|
1222
|
+
}
|
|
1223
|
+
if (!_n65) _n65 = _n88
|
|
1224
|
+
let _n89 = ''
|
|
1225
|
+
if (item["collection-editor"] && item["collection-editor"].length) {
|
|
1226
|
+
_n89 = formatNames(item["collection-editor"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1227
|
+
if (_n89) _n89 = '\uE020collection-editor\uE021' + _n89 + '\uE022'
|
|
1228
|
+
}
|
|
1229
|
+
if (!_n65) _n65 = _n89
|
|
1230
|
+
let _ch90 = ''
|
|
1231
|
+
if ((item.type === "software" || item.type === "webpage")) {
|
|
1232
|
+
const _v91 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
1233
|
+
_ch90 = (stripNocaseSpans(_v91) ? '\uE020publisher\uE021' + stripNocaseSpans(_v91) + '\uE022' : '')
|
|
1234
|
+
}
|
|
1235
|
+
else if (item.type === "standard") {
|
|
1236
|
+
const _v92 = (item.authority != null && item.authority !== '' ? String(item.authority) : '')
|
|
1237
|
+
_ch90 = (stripNocaseSpans(_v92) ? '\uE020authority\uE021' + stripNocaseSpans(_v92) + '\uE022' : '')
|
|
1238
|
+
}
|
|
1239
|
+
if (!_n65) _n65 = _ch90
|
|
1240
|
+
const _v93 = macro_author_title_substitute(item, ctx)
|
|
1241
|
+
if (!_n65) _n65 = _v93
|
|
1242
|
+
}
|
|
1243
|
+
return _n65
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
function macro_author_and_contributors(item, ctx) {
|
|
1247
|
+
const _gp95 = []
|
|
1248
|
+
const _v96 = macro_author(item, ctx)
|
|
1249
|
+
_gp95.push(_v96)
|
|
1250
|
+
if (!((item.author != null && item.author !== '')) && !((item.compiler != null && item.compiler !== '')) && !((item.composer != null && item.composer !== '')) && !((item.editor != null && item.editor !== '')) && !((item["editor-translator"] != null && item["editor-translator"] !== '')) && !((item.illustrator != null && item.illustrator !== ''))) {
|
|
1251
|
+
}
|
|
1252
|
+
else if ((item.type === "book" || item.type === "musical_score" || item.type === "pamphlet" || item.type === "report" || item.type === "standard")) {
|
|
1253
|
+
let _n97 = ''
|
|
1254
|
+
if (item.contributor && item.contributor.length) {
|
|
1255
|
+
_n97 = formatNames(item.contributor, _nameConfig(ctx, {"and":"symbol","delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"nameAsSortOrder":"all","sortSeparator":", "}))
|
|
1256
|
+
if (_n97) _n97 = '\uE020contributor\uE021' + _n97 + '\uE022'
|
|
1257
|
+
}
|
|
1258
|
+
_gp95.push((_n97 ? "(" + _n97 + ")" : ''))
|
|
1259
|
+
}
|
|
1260
|
+
const _g94 = _gp95.filter(v => v !== '').join(" ")
|
|
1261
|
+
return _g94
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
function macro_author_short(item, ctx) {
|
|
1265
|
+
let _ch98 = ''
|
|
1266
|
+
if ((item.type === "bill" || item.type === "hearing" || item.type === "legal_case" || item.type === "legislation" || item.type === "regulation" || item.type === "treaty")) {
|
|
1267
|
+
const _v99 = macro_title_and_descriptions_short(item, ctx)
|
|
1268
|
+
_ch98 = _v99
|
|
1269
|
+
}
|
|
1270
|
+
else if ((item.type === "interview" || item.type === "personal_communication")) {
|
|
1271
|
+
let _ch100 = ''
|
|
1272
|
+
if (((item.archive != null && item.archive !== '') || (item["archive-place"] != null && item["archive-place"] !== '') || (item["container-title"] != null && item["container-title"] !== '') || (item.DOI != null && item.DOI !== '') || (item.number != null && item.number !== '') || (item.publisher != null && item.publisher !== '') || (item.references != null && item.references !== '') || (item.URL != null && item.URL !== ''))) {
|
|
1273
|
+
let _n101 = ''
|
|
1274
|
+
if (item.author && item.author.length) {
|
|
1275
|
+
_n101 = formatNames(item.author, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1276
|
+
if (_n101) _n101 = '\uE020author\uE021' + _n101 + '\uE022'
|
|
1277
|
+
}
|
|
1278
|
+
if (!_n101) {
|
|
1279
|
+
const _v102 = macro_title_and_descriptions_short(item, ctx)
|
|
1280
|
+
if (!_n101) _n101 = _v102
|
|
1281
|
+
}
|
|
1282
|
+
_ch100 = _n101
|
|
1283
|
+
}
|
|
1284
|
+
else {
|
|
1285
|
+
let _n105 = ''
|
|
1286
|
+
if (item.author && item.author.length) {
|
|
1287
|
+
_n105 = formatNames(item.author, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
1288
|
+
if (_n105) _n105 = '\uE020author\uE021' + _n105 + '\uE022'
|
|
1289
|
+
}
|
|
1290
|
+
if (!_n105) {
|
|
1291
|
+
const _v106 = macro_title_and_descriptions_short(item, ctx)
|
|
1292
|
+
if (!_n105) _n105 = _v106
|
|
1293
|
+
}
|
|
1294
|
+
const _v107 = (T["personal-communication"] != null ? (typeof T["personal-communication"] === 'string' ? T["personal-communication"] : (T["personal-communication"].single || '')) : '')
|
|
1295
|
+
const _g103 = ((item.author == null || item.author === '' || (Array.isArray(item.author) && item.author.length === 0))) ? '' : [_n105, _v107].filter(v => v !== '').join(", ")
|
|
1296
|
+
_ch100 = _g103
|
|
1297
|
+
}
|
|
1298
|
+
_ch98 = _ch100
|
|
1299
|
+
}
|
|
1300
|
+
else {
|
|
1301
|
+
let _n108 = ''
|
|
1302
|
+
if (item.composer && item.composer.length) {
|
|
1303
|
+
_n108 = formatNames(item.composer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1304
|
+
if (_n108) _n108 = '\uE020composer\uE021' + _n108 + '\uE022'
|
|
1305
|
+
}
|
|
1306
|
+
if (!_n108) {
|
|
1307
|
+
let _n109 = ''
|
|
1308
|
+
if (item.author && item.author.length) {
|
|
1309
|
+
_n109 = formatNames(item.author, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1310
|
+
if (_n109) _n109 = '\uE020author\uE021' + _n109 + '\uE022'
|
|
1311
|
+
}
|
|
1312
|
+
if (!_n108) _n108 = _n109
|
|
1313
|
+
let _n110 = ''
|
|
1314
|
+
if (item.illustrator && item.illustrator.length) {
|
|
1315
|
+
_n110 = formatNames(item.illustrator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1316
|
+
if (_n110) _n110 = '\uE020illustrator\uE021' + _n110 + '\uE022'
|
|
1317
|
+
}
|
|
1318
|
+
if (!_n108) _n108 = _n110
|
|
1319
|
+
let _ch111 = ''
|
|
1320
|
+
if (item.type === "broadcast") {
|
|
1321
|
+
let _n112 = ''
|
|
1322
|
+
if (item["script-writer"] && item["script-writer"].length) {
|
|
1323
|
+
_n112 = formatNames(item["script-writer"], _nameConfig(ctx, {}))
|
|
1324
|
+
if (_n112) _n112 = '\uE020script-writer\uE021' + _n112 + '\uE022'
|
|
1325
|
+
}
|
|
1326
|
+
_ch111 = _n112
|
|
1327
|
+
}
|
|
1328
|
+
if (!_n108) _n108 = _ch111
|
|
1329
|
+
let _n113 = ''
|
|
1330
|
+
if (item.director && item.director.length) {
|
|
1331
|
+
_n113 = formatNames(item.director, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1332
|
+
if (_n113) _n113 = '\uE020director\uE021' + _n113 + '\uE022'
|
|
1333
|
+
}
|
|
1334
|
+
if (!_n108) _n108 = _n113
|
|
1335
|
+
let _n114 = ''
|
|
1336
|
+
if (item.guest && item.guest.length) {
|
|
1337
|
+
_n114 = formatNames(item.guest, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1338
|
+
if (_n114) _n114 = '\uE020guest\uE021' + _n114 + '\uE022'
|
|
1339
|
+
}
|
|
1340
|
+
else if (item.host && item.host.length) {
|
|
1341
|
+
_n114 = formatNames(item.host, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1342
|
+
if (_n114) _n114 = '\uE020host\uE021' + _n114 + '\uE022'
|
|
1343
|
+
}
|
|
1344
|
+
if (!_n108) _n108 = _n114
|
|
1345
|
+
let _n115 = ''
|
|
1346
|
+
if (item.producer && item.producer.length) {
|
|
1347
|
+
_n115 = formatNames(item.producer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1348
|
+
if (_n115) _n115 = '\uE020producer\uE021' + _n115 + '\uE022'
|
|
1349
|
+
}
|
|
1350
|
+
if (!_n108) _n108 = _n115
|
|
1351
|
+
let _ch116 = ''
|
|
1352
|
+
if ((item.type === "entry-dictionary" || item.type === "entry-encyclopedia")) {
|
|
1353
|
+
const _v117 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
1354
|
+
_ch116 = (stripNocaseSpans(_v117) ? '\uE020publisher\uE021' + stripNocaseSpans(_v117) + '\uE022' : '')
|
|
1355
|
+
}
|
|
1356
|
+
if (!_n108) _n108 = _ch116
|
|
1357
|
+
let _ch118 = ''
|
|
1358
|
+
if (!((item["container-title"] != null && item["container-title"] !== ''))) {
|
|
1359
|
+
_ch118 = [].filter(v => v !== '').join('')
|
|
1360
|
+
}
|
|
1361
|
+
else if ((item.type === "book" || item.type === "classic" || item.type === "entry" || item.type === "entry-dictionary" || item.type === "entry-encyclopedia")) {
|
|
1362
|
+
const _v119 = macro_title_and_descriptions_short(item, ctx)
|
|
1363
|
+
_ch118 = _v119
|
|
1364
|
+
}
|
|
1365
|
+
if (!_n108) _n108 = _ch118
|
|
1366
|
+
let _n120 = ''
|
|
1367
|
+
if (item["executive-producer"] && item["executive-producer"].length) {
|
|
1368
|
+
_n120 = formatNames(item["executive-producer"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1369
|
+
if (_n120) _n120 = '\uE020executive-producer\uE021' + _n120 + '\uE022'
|
|
1370
|
+
}
|
|
1371
|
+
if (!_n108) _n108 = _n120
|
|
1372
|
+
let _n121 = ''
|
|
1373
|
+
if (item["series-creator"] && item["series-creator"].length) {
|
|
1374
|
+
_n121 = formatNames(item["series-creator"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1375
|
+
if (_n121) _n121 = '\uE020series-creator\uE021' + _n121 + '\uE022'
|
|
1376
|
+
}
|
|
1377
|
+
if (!_n108) _n108 = _n121
|
|
1378
|
+
let _n122 = ''
|
|
1379
|
+
if (item.editor && item.editor.length) {
|
|
1380
|
+
_n122 = formatNames(item.editor, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1381
|
+
if (_n122) _n122 = '\uE020editor\uE021' + _n122 + '\uE022'
|
|
1382
|
+
}
|
|
1383
|
+
if (!_n108) _n108 = _n122
|
|
1384
|
+
let _n123 = ''
|
|
1385
|
+
if (item["editorial-director"] && item["editorial-director"].length) {
|
|
1386
|
+
_n123 = formatNames(item["editorial-director"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1387
|
+
if (_n123) _n123 = '\uE020editorial-director\uE021' + _n123 + '\uE022'
|
|
1388
|
+
}
|
|
1389
|
+
if (!_n108) _n108 = _n123
|
|
1390
|
+
let _n124 = ''
|
|
1391
|
+
if (item.compiler && item.compiler.length) {
|
|
1392
|
+
_n124 = formatNames(item.compiler, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1393
|
+
if (_n124) _n124 = '\uE020compiler\uE021' + _n124 + '\uE022'
|
|
1394
|
+
}
|
|
1395
|
+
if (!_n108) _n108 = _n124
|
|
1396
|
+
let _ch125 = ''
|
|
1397
|
+
if ((item.type === "event" || item.type === "performance" || item.type === "speech")) {
|
|
1398
|
+
let _n126 = ''
|
|
1399
|
+
if (item.chair && item.chair.length) {
|
|
1400
|
+
_n126 = formatNames(item.chair, _nameConfig(ctx, {}))
|
|
1401
|
+
if (_n126) _n126 = '\uE020chair\uE021' + _n126 + '\uE022'
|
|
1402
|
+
}
|
|
1403
|
+
let _n127 = ''
|
|
1404
|
+
if (item.organizer && item.organizer.length) {
|
|
1405
|
+
_n127 = formatNames(item.organizer, _nameConfig(ctx, {}))
|
|
1406
|
+
if (_n127) _n127 = '\uE020organizer\uE021' + _n127 + '\uE022'
|
|
1407
|
+
}
|
|
1408
|
+
_ch125 = [_n126, _n127].filter(v => v !== '').join('')
|
|
1409
|
+
}
|
|
1410
|
+
if (!_n108) _n108 = _ch125
|
|
1411
|
+
let _n128 = ''
|
|
1412
|
+
if (item.curator && item.curator.length) {
|
|
1413
|
+
_n128 = formatNames(item.curator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1414
|
+
if (_n128) _n128 = '\uE020curator\uE021' + _n128 + '\uE022'
|
|
1415
|
+
}
|
|
1416
|
+
if (!_n108) _n108 = _n128
|
|
1417
|
+
let _n129 = ''
|
|
1418
|
+
if (item["collection-editor"] && item["collection-editor"].length) {
|
|
1419
|
+
_n129 = formatNames(item["collection-editor"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1420
|
+
if (_n129) _n129 = '\uE020collection-editor\uE021' + _n129 + '\uE022'
|
|
1421
|
+
}
|
|
1422
|
+
if (!_n108) _n108 = _n129
|
|
1423
|
+
let _ch130 = ''
|
|
1424
|
+
if ((item.type === "software" || item.type === "webpage")) {
|
|
1425
|
+
const _v131 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
1426
|
+
_ch130 = (stripNocaseSpans(_v131) ? '\uE020publisher\uE021' + stripNocaseSpans(_v131) + '\uE022' : '')
|
|
1427
|
+
}
|
|
1428
|
+
else if (item.type === "standard") {
|
|
1429
|
+
const _v132 = (item.authority != null && item.authority !== '' ? String(item.authority) : '')
|
|
1430
|
+
_ch130 = (stripNocaseSpans(_v132) ? '\uE020authority\uE021' + stripNocaseSpans(_v132) + '\uE022' : '')
|
|
1431
|
+
}
|
|
1432
|
+
if (!_n108) _n108 = _ch130
|
|
1433
|
+
const _v133 = macro_title_and_descriptions_short(item, ctx)
|
|
1434
|
+
if (!_n108) _n108 = _v133
|
|
1435
|
+
}
|
|
1436
|
+
_ch98 = _n108
|
|
1437
|
+
}
|
|
1438
|
+
return _ch98
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
function macro_author_sort(item, ctx) {
|
|
1442
|
+
let _ch134 = ''
|
|
1443
|
+
if ((item.type === "bill" || item.type === "hearing" || item.type === "legal_case" || item.type === "legislation" || item.type === "regulation" || item.type === "treaty")) {
|
|
1444
|
+
const _v135 = macro_legal_title(item, ctx)
|
|
1445
|
+
_ch134 = _v135
|
|
1446
|
+
}
|
|
1447
|
+
else {
|
|
1448
|
+
const _v136 = macro_author(item, ctx)
|
|
1449
|
+
_ch134 = _v136
|
|
1450
|
+
}
|
|
1451
|
+
return _ch134
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
function macro_author_title_substitute(item, ctx) {
|
|
1455
|
+
let _ch137 = ''
|
|
1456
|
+
if ((item.type === "review" || item.type === "review-book" || (item["reviewed-author"] != null && item["reviewed-author"] !== '') || (item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
1457
|
+
let _ch138 = ''
|
|
1458
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1459
|
+
const _v139 = macro_title(item, ctx)
|
|
1460
|
+
_ch138 = _v139
|
|
1461
|
+
}
|
|
1462
|
+
else if (((item["reviewed-title"] != null && item["reviewed-title"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1463
|
+
const _v140 = macro_title(item, ctx)
|
|
1464
|
+
_ch138 = _v140
|
|
1465
|
+
}
|
|
1466
|
+
else {
|
|
1467
|
+
const _v141 = macro_title_and_descriptions(item, ctx)
|
|
1468
|
+
_ch138 = _v141
|
|
1469
|
+
}
|
|
1470
|
+
_ch137 = _ch138
|
|
1471
|
+
}
|
|
1472
|
+
else if ((item.title != null && item.title !== '')) {
|
|
1473
|
+
const _v144 = macro_title(item, ctx)
|
|
1474
|
+
const _v145 = macro_identifier(item, ctx)
|
|
1475
|
+
const _g142 = (!macro_title(item, ctx) && !macro_identifier(item, ctx)) ? '' : [_v144, _v145].filter(v => v !== '').join(" ")
|
|
1476
|
+
_ch137 = _g142
|
|
1477
|
+
}
|
|
1478
|
+
else {
|
|
1479
|
+
const _v146 = macro_title_and_descriptions(item, ctx)
|
|
1480
|
+
_ch137 = _v146
|
|
1481
|
+
}
|
|
1482
|
+
return _ch137
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
function macro_date(item, ctx) {
|
|
1486
|
+
const _gp148 = []
|
|
1487
|
+
if ((item.issued != null && item.issued !== '')) {
|
|
1488
|
+
const _gp150 = []
|
|
1489
|
+
const _v153 = macro_date_issued_year(item, ctx)
|
|
1490
|
+
const _v154 = (item["year-suffix"] != null && item["year-suffix"] !== '' ? String(item["year-suffix"]) : '')
|
|
1491
|
+
const _g151 = (!macro_date_issued_year(item, ctx) && (item["year-suffix"] == null || item["year-suffix"] === '')) ? '' : [_v153, (stripNocaseSpans(_v154) ? '\uE020year-suffix\uE021' + stripNocaseSpans(_v154) + '\uE022' : '')].filter(v => v !== '').join('')
|
|
1492
|
+
_gp150.push(_g151)
|
|
1493
|
+
if ((item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "broadcast" || item.type === "collection" || item.type === "document" || item.type === "event" || item.type === "motion_picture" || item.type === "pamphlet" || item.type === "performance" || item.type === "personal_communication" || item.type === "post" || item.type === "post-weblog" || item.type === "song" || item.type === "speech" || item.type === "webpage")) {
|
|
1494
|
+
const _v155 = macro_date_issued_month_day(item, ctx)
|
|
1495
|
+
_gp150.push(_v155)
|
|
1496
|
+
}
|
|
1497
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== '') || (item.issue != null && item.issue !== '') || (item.page != null && item.page !== '') || (item["supplement-number"] != null && item["supplement-number"] !== '') || (item.volume != null && item.volume !== ''))) {
|
|
1498
|
+
}
|
|
1499
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
1500
|
+
const _v156 = macro_date_issued_month_day(item, ctx)
|
|
1501
|
+
_gp150.push(_v156)
|
|
1502
|
+
}
|
|
1503
|
+
const _g149 = _gp150.filter(v => v !== '').join(", ")
|
|
1504
|
+
_gp148.push(_g149)
|
|
1505
|
+
}
|
|
1506
|
+
else if ((item.status != null && item.status !== '')) {
|
|
1507
|
+
const _v157 = (item.status != null && item.status !== '' ? String(item.status) : '')
|
|
1508
|
+
_gp148.push((applyTextCase(_v157, "lowercase") ? '\uE020status\uE021' + applyTextCase(_v157, "lowercase") + '\uE022' : ''))
|
|
1509
|
+
const _v158 = (item["year-suffix"] != null && item["year-suffix"] !== '' ? String(item["year-suffix"]) : '')
|
|
1510
|
+
_gp148.push((stripNocaseSpans(_v158) ? '\uE020year-suffix\uE021' + stripNocaseSpans(_v158) + '\uE022' : ''))
|
|
1511
|
+
}
|
|
1512
|
+
else {
|
|
1513
|
+
const _v159 = (T["no date:short"] != null ? (typeof T["no date:short"] === 'string' ? T["no date:short"] : (T["no date:short"].single || '')) : '')
|
|
1514
|
+
_gp148.push(_v159)
|
|
1515
|
+
const _v160 = (item["year-suffix"] != null && item["year-suffix"] !== '' ? String(item["year-suffix"]) : '')
|
|
1516
|
+
_gp148.push((stripNocaseSpans(_v160) ? '\uE020year-suffix\uE021' + stripNocaseSpans(_v160) + '\uE022' : ''))
|
|
1517
|
+
}
|
|
1518
|
+
const _g147 = _gp148.filter(v => v !== '').join("-")
|
|
1519
|
+
return (_g147 ? "(" + _g147 + ")" : '')
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
function macro_date_short(item, ctx) {
|
|
1523
|
+
const _gp162 = []
|
|
1524
|
+
if ((item.issued != null && item.issued !== '')) {
|
|
1525
|
+
const _v165 = macro_date_original_year(item, ctx)
|
|
1526
|
+
const _gp167 = []
|
|
1527
|
+
if (((item.archive != null && item.archive !== '') || (item["archive-place"] != null && item["archive-place"] !== '') || (item["container-title"] != null && item["container-title"] !== '') || (item.DOI != null && item.DOI !== '') || (item.number != null && item.number !== '') || (item.publisher != null && item.publisher !== '') || (item.references != null && item.references !== '') || (item.URL != null && item.URL !== ''))) {
|
|
1528
|
+
const _v168 = macro_date_issued_year(item, ctx)
|
|
1529
|
+
_gp167.push(_v168)
|
|
1530
|
+
}
|
|
1531
|
+
else if ((item.type === "interview" || item.type === "personal_communication")) {
|
|
1532
|
+
const _v169 = macro_date_issued_full(item, ctx)
|
|
1533
|
+
_gp167.push(_v169)
|
|
1534
|
+
}
|
|
1535
|
+
else {
|
|
1536
|
+
const _v170 = macro_date_issued_year(item, ctx)
|
|
1537
|
+
_gp167.push(_v170)
|
|
1538
|
+
}
|
|
1539
|
+
const _v171 = (item["year-suffix"] != null && item["year-suffix"] !== '' ? String(item["year-suffix"]) : '')
|
|
1540
|
+
_gp167.push((stripNocaseSpans(_v171) ? '\uE020year-suffix\uE021' + stripNocaseSpans(_v171) + '\uE022' : ''))
|
|
1541
|
+
const _g166 = _gp167.filter(v => v !== '').join('')
|
|
1542
|
+
const _g163 = (!macro_date_original_year(item, ctx) && !macro_date_issued_year(item, ctx) && !macro_date_issued_full(item, ctx) && (item["year-suffix"] == null || item["year-suffix"] === '')) ? '' : [_v165, _g166].filter(v => v !== '').join("/")
|
|
1543
|
+
_gp162.push(_g163)
|
|
1544
|
+
}
|
|
1545
|
+
else if ((item.status != null && item.status !== '')) {
|
|
1546
|
+
const _v172 = (item.status != null && item.status !== '' ? String(item.status) : '')
|
|
1547
|
+
_gp162.push((applyTextCase(_v172, "lowercase") ? '\uE020status\uE021' + applyTextCase(_v172, "lowercase") + '\uE022' : ''))
|
|
1548
|
+
const _v173 = (item["year-suffix"] != null && item["year-suffix"] !== '' ? String(item["year-suffix"]) : '')
|
|
1549
|
+
_gp162.push((stripNocaseSpans(_v173) ? '\uE020year-suffix\uE021' + stripNocaseSpans(_v173) + '\uE022' : ''))
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
const _v174 = (T["no date:short"] != null ? (typeof T["no date:short"] === 'string' ? T["no date:short"] : (T["no date:short"].single || '')) : '')
|
|
1553
|
+
_gp162.push(_v174)
|
|
1554
|
+
const _v175 = (item["year-suffix"] != null && item["year-suffix"] !== '' ? String(item["year-suffix"]) : '')
|
|
1555
|
+
_gp162.push((stripNocaseSpans(_v175) ? '\uE020year-suffix\uE021' + stripNocaseSpans(_v175) + '\uE022' : ''))
|
|
1556
|
+
}
|
|
1557
|
+
const _g161 = _gp162.filter(v => v !== '').join("-")
|
|
1558
|
+
return _g161
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
function macro_date_sort(item, ctx) {
|
|
1562
|
+
let _ch176 = ''
|
|
1563
|
+
if ((item.type === "article" || item.type === "article-journal" || item.type === "book" || item.type === "chapter" || item.type === "entry" || item.type === "entry-dictionary" || item.type === "entry-encyclopedia" || item.type === "dataset" || item.type === "figure" || item.type === "graphic" || item.type === "manuscript" || item.type === "map" || item.type === "musical_score" || item.type === "patent" || item.type === "report" || item.type === "review" || item.type === "review-book" || item.type === "thesis")) {
|
|
1564
|
+
const _d177 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
1565
|
+
_ch176 = (_d177 ? '\uE020issued\uE021' + _d177 + '\uE022' : '')
|
|
1566
|
+
}
|
|
1567
|
+
else if (item.type === "paper-conference") {
|
|
1568
|
+
let _ch178 = ''
|
|
1569
|
+
if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== '') || (item.issue != null && item.issue !== '') || (item.page != null && item.page !== '') || (item["supplement-number"] != null && item["supplement-number"] !== '') || (item.volume != null && item.volume !== ''))) {
|
|
1570
|
+
const _d179 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
1571
|
+
_ch178 = (_d179 ? '\uE020issued\uE021' + _d179 + '\uE022' : '')
|
|
1572
|
+
}
|
|
1573
|
+
else {
|
|
1574
|
+
const _v180 = macro_date_issued_leading_zeros(item, ctx)
|
|
1575
|
+
_ch178 = _v180
|
|
1576
|
+
}
|
|
1577
|
+
_ch176 = _ch178
|
|
1578
|
+
}
|
|
1579
|
+
else {
|
|
1580
|
+
const _v181 = macro_date_issued_leading_zeros(item, ctx)
|
|
1581
|
+
_ch176 = _v181
|
|
1582
|
+
}
|
|
1583
|
+
return _ch176
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
function macro_date_sort_group(item, ctx) {
|
|
1587
|
+
let _ch182 = ''
|
|
1588
|
+
if ((item.issued != null && item.issued !== '')) {
|
|
1589
|
+
const _v183 = "1"
|
|
1590
|
+
_ch182 = _v183
|
|
1591
|
+
}
|
|
1592
|
+
else if ((item.status != null && item.status !== '')) {
|
|
1593
|
+
const _v184 = "2"
|
|
1594
|
+
_ch182 = _v184
|
|
1595
|
+
}
|
|
1596
|
+
else {
|
|
1597
|
+
const _v185 = "0"
|
|
1598
|
+
_ch182 = _v185
|
|
1599
|
+
}
|
|
1600
|
+
return _ch182
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
function macro_date_event_full(item, ctx) {
|
|
1604
|
+
const _gp187 = []
|
|
1605
|
+
if ((item["event-date"] && item["event-date"].circa)) {
|
|
1606
|
+
const _v188 = (T["circa:short"] != null ? (typeof T["circa:short"] === 'string' ? T["circa:short"] : (T["circa:short"].single || '')) : '')
|
|
1607
|
+
_gp187.push(_v188)
|
|
1608
|
+
}
|
|
1609
|
+
const _d189 = item["event-date"] ? formatDate(item["event-date"], {"dateParts":[{"name":"month","form":null,"prefix":"","suffix":" ","rangeDelimiter":null},{"name":"day","form":null,"prefix":"","suffix":", ","rangeDelimiter":null},{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
1610
|
+
_gp187.push((_d189 ? '\uE020event-date\uE021' + _d189 + '\uE022' : ''))
|
|
1611
|
+
const _g186 = _gp187.filter(v => v !== '').join(" ")
|
|
1612
|
+
return _g186
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
function macro_date_issued_full(item, ctx) {
|
|
1616
|
+
const _gp191 = []
|
|
1617
|
+
if ((item.issued && item.issued.circa)) {
|
|
1618
|
+
const _v192 = (T["circa:short"] != null ? (typeof T["circa:short"] === 'string' ? T["circa:short"] : (T["circa:short"].single || '')) : '')
|
|
1619
|
+
_gp191.push(_v192)
|
|
1620
|
+
}
|
|
1621
|
+
const _d193 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"month","form":null,"prefix":"","suffix":" ","rangeDelimiter":null},{"name":"day","form":null,"prefix":"","suffix":", ","rangeDelimiter":null},{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
1622
|
+
_gp191.push((_d193 ? '\uE020issued\uE021' + _d193 + '\uE022' : ''))
|
|
1623
|
+
const _g190 = _gp191.filter(v => v !== '').join(" ")
|
|
1624
|
+
return _g190
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
function macro_date_issued_leading_zeros(item, ctx) {
|
|
1628
|
+
const _d194 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null},{"name":"month","form":"numeric-leading-zeros","prefix":"","suffix":"","rangeDelimiter":null},{"name":"day","form":"numeric-leading-zeros","prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
1629
|
+
return (_d194 ? '\uE020issued\uE021' + _d194 + '\uE022' : '')
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
function macro_date_issued_month_day(item, ctx) {
|
|
1633
|
+
const _d195 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"month","form":null,"prefix":"","suffix":"","rangeDelimiter":null},{"name":"day","form":null,"prefix":" ","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
1634
|
+
return (_d195 ? '\uE020issued\uE021' + _d195 + '\uE022' : '')
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
function macro_date_issued_year(item, ctx) {
|
|
1638
|
+
const _gp197 = []
|
|
1639
|
+
if ((item.issued && item.issued.circa)) {
|
|
1640
|
+
const _v198 = (T["circa:short"] != null ? (typeof T["circa:short"] === 'string' ? T["circa:short"] : (T["circa:short"].single || '')) : '')
|
|
1641
|
+
_gp197.push(_v198)
|
|
1642
|
+
}
|
|
1643
|
+
const _d199 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
1644
|
+
_gp197.push((_d199 ? '\uE020issued\uE021' + _d199 + '\uE022' : ''))
|
|
1645
|
+
const _g196 = _gp197.filter(v => v !== '').join(" ")
|
|
1646
|
+
return _g196
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
function macro_date_original_year(item, ctx) {
|
|
1650
|
+
const _gp201 = []
|
|
1651
|
+
if ((item["original-date"] && item["original-date"].circa)) {
|
|
1652
|
+
const _v202 = (T["circa:short"] != null ? (typeof T["circa:short"] === 'string' ? T["circa:short"] : (T["circa:short"].single || '')) : '')
|
|
1653
|
+
_gp201.push(_v202)
|
|
1654
|
+
}
|
|
1655
|
+
const _d203 = item["original-date"] ? formatDate(item["original-date"], {"dateParts":[{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
1656
|
+
_gp201.push((_d203 ? '\uE020original-date\uE021' + _d203 + '\uE022' : ''))
|
|
1657
|
+
const _g200 = _gp201.filter(v => v !== '').join(" ")
|
|
1658
|
+
return _g200
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
function macro_title_and_descriptions(item, ctx) {
|
|
1662
|
+
const _gp205 = []
|
|
1663
|
+
if ((item.title != null && item.title !== '')) {
|
|
1664
|
+
const _v206 = macro_title(item, ctx)
|
|
1665
|
+
_gp205.push(_v206)
|
|
1666
|
+
const _v207 = macro_identifier(item, ctx)
|
|
1667
|
+
_gp205.push(_v207)
|
|
1668
|
+
const _v208 = macro_description(item, ctx)
|
|
1669
|
+
_gp205.push(_v208)
|
|
1670
|
+
}
|
|
1671
|
+
else if ((item.type === "bill" || item.type === "report")) {
|
|
1672
|
+
const _v209 = macro_identifier_number(item, ctx)
|
|
1673
|
+
_gp205.push(_v209)
|
|
1674
|
+
const _v210 = macro_description(item, ctx)
|
|
1675
|
+
_gp205.push(_v210)
|
|
1676
|
+
const _v211 = macro_identifier(item, ctx)
|
|
1677
|
+
_gp205.push(_v211)
|
|
1678
|
+
}
|
|
1679
|
+
else {
|
|
1680
|
+
const _v212 = macro_description(item, ctx)
|
|
1681
|
+
_gp205.push(_v212)
|
|
1682
|
+
const _v213 = macro_identifier(item, ctx)
|
|
1683
|
+
_gp205.push(_v213)
|
|
1684
|
+
}
|
|
1685
|
+
const _g204 = _gp205.filter(v => v !== '').join(" ")
|
|
1686
|
+
return _g204
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
function macro_title_and_descriptions_short(item, ctx) {
|
|
1690
|
+
let _ch214 = ''
|
|
1691
|
+
if ((item.title != null && item.title !== '')) {
|
|
1692
|
+
const _v215 = macro_title_short(item, ctx)
|
|
1693
|
+
_ch214 = _v215
|
|
1694
|
+
}
|
|
1695
|
+
else if ((item.type === "bill" || item.type === "report")) {
|
|
1696
|
+
const _v216 = macro_legal_identifier_bill_report(item, ctx)
|
|
1697
|
+
_ch214 = _v216
|
|
1698
|
+
}
|
|
1699
|
+
else {
|
|
1700
|
+
const _v217 = macro_description_short(item, ctx)
|
|
1701
|
+
_ch214 = _v217
|
|
1702
|
+
}
|
|
1703
|
+
return _ch214
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
function macro_title(item, ctx) {
|
|
1707
|
+
let _ch218 = ''
|
|
1708
|
+
if ((item.type === "post" || item.type === "webpage")) {
|
|
1709
|
+
const _v219 = macro_title_and_part_filter_review(item, ctx)
|
|
1710
|
+
_ch218 = (_v219 ? '\uE000' + _v219 + '\uE001' : '')
|
|
1711
|
+
}
|
|
1712
|
+
else if ((item.type === "article-journal" || item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "periodical" || item.type === "post-weblog" || item.type === "review" || item.type === "review-book")) {
|
|
1713
|
+
const _v220 = macro_title_serial(item, ctx)
|
|
1714
|
+
_ch218 = _v220
|
|
1715
|
+
}
|
|
1716
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== ''))) {
|
|
1717
|
+
const _v221 = macro_title_monographic(item, ctx)
|
|
1718
|
+
_ch218 = _v221
|
|
1719
|
+
}
|
|
1720
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
1721
|
+
const _v222 = macro_title_serial(item, ctx)
|
|
1722
|
+
_ch218 = _v222
|
|
1723
|
+
}
|
|
1724
|
+
else {
|
|
1725
|
+
const _v223 = macro_title_monographic(item, ctx)
|
|
1726
|
+
_ch218 = _v223
|
|
1727
|
+
}
|
|
1728
|
+
return _ch218
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
function macro_title_short(item, ctx) {
|
|
1732
|
+
let _ch224 = ''
|
|
1733
|
+
if ((item.type === "review" || item.type === "review-book" || (item["reviewed-author"] != null && item["reviewed-author"] !== '') || (item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
1734
|
+
let _ch225 = ''
|
|
1735
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1736
|
+
const _v226 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1737
|
+
_ch225 = ((applyTextCase(_v226, "title") ? '“' + applyTextCase(_v226, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v226, "title") ? '“' + applyTextCase(_v226, "title") + '”' : '') + '\uE022' : '')
|
|
1738
|
+
}
|
|
1739
|
+
else if (((item["reviewed-title"] != null && item["reviewed-title"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1740
|
+
const _v227 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1741
|
+
_ch225 = ((applyTextCase(_v227, "title") ? '“' + applyTextCase(_v227, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v227, "title") ? '“' + applyTextCase(_v227, "title") + '”' : '') + '\uE022' : '')
|
|
1742
|
+
}
|
|
1743
|
+
else {
|
|
1744
|
+
const _v228 = macro_description_short(item, ctx)
|
|
1745
|
+
_ch225 = _v228
|
|
1746
|
+
}
|
|
1747
|
+
_ch224 = _ch225
|
|
1748
|
+
}
|
|
1749
|
+
else if ((item.type === "bill" || item.type === "legislation" || item.type === "regulation" || item.type === "report" || item.type === "treaty")) {
|
|
1750
|
+
const _v229 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1751
|
+
_ch224 = (applyTextCase(_v229, "title") ? '\uE020title\uE021' + applyTextCase(_v229, "title") + '\uE022' : '')
|
|
1752
|
+
}
|
|
1753
|
+
else if ((item.type === "legal_case" || item.type === "post")) {
|
|
1754
|
+
const _v230 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1755
|
+
_ch224 = ((stripNocaseSpans(_v230) ? '\uE000' + stripNocaseSpans(_v230) + '\uE001' : '') ? '\uE020title\uE021' + (stripNocaseSpans(_v230) ? '\uE000' + stripNocaseSpans(_v230) + '\uE001' : '') + '\uE022' : '')
|
|
1756
|
+
}
|
|
1757
|
+
else if ((item.type === "hearing" || item.type === "webpage")) {
|
|
1758
|
+
const _v231 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1759
|
+
_ch224 = ((applyTextCase(_v231, "title") ? '\uE000' + applyTextCase(_v231, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v231, "title") ? '\uE000' + applyTextCase(_v231, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1760
|
+
}
|
|
1761
|
+
else if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
1762
|
+
const _v232 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1763
|
+
_ch224 = ((applyTextCase(_v232, "title") ? '“' + applyTextCase(_v232, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v232, "title") ? '“' + applyTextCase(_v232, "title") + '”' : '') + '\uE022' : '')
|
|
1764
|
+
}
|
|
1765
|
+
else {
|
|
1766
|
+
const _v233 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1767
|
+
_ch224 = ((applyTextCase(_v233, "title") ? '\uE000' + applyTextCase(_v233, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v233, "title") ? '\uE000' + applyTextCase(_v233, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1768
|
+
}
|
|
1769
|
+
return _ch224
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
function macro_title_and_part_filter_review(item, ctx) {
|
|
1773
|
+
let _ch234 = ''
|
|
1774
|
+
if ((item.type === "review" || item.type === "review-book" || (item["reviewed-author"] != null && item["reviewed-author"] !== '') || (item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
1775
|
+
let _ch235 = ''
|
|
1776
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1777
|
+
const _v236 = macro_title_and_part_title(item, ctx)
|
|
1778
|
+
_ch235 = _v236
|
|
1779
|
+
}
|
|
1780
|
+
else if (((item["reviewed-title"] != null && item["reviewed-title"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1781
|
+
const _v237 = macro_title_and_part_title(item, ctx)
|
|
1782
|
+
_ch235 = _v237
|
|
1783
|
+
}
|
|
1784
|
+
_ch234 = _ch235
|
|
1785
|
+
}
|
|
1786
|
+
else {
|
|
1787
|
+
const _v238 = macro_title_and_part_title(item, ctx)
|
|
1788
|
+
_ch234 = _v238
|
|
1789
|
+
}
|
|
1790
|
+
return _ch234
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
function macro_title_and_part_title(item, ctx) {
|
|
1794
|
+
const _v241 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1795
|
+
const _v242 = macro_title_part(item, ctx)
|
|
1796
|
+
const _g239 = ((item.title == null || item.title === '') && !macro_title_part(item, ctx)) ? '' : [(stripNocaseSpans(_v241) ? '\uE020title\uE021' + stripNocaseSpans(_v241) + '\uE022' : ''), _v242].filter(v => v !== '').join(": ")
|
|
1797
|
+
return _g239
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
function macro_title_and_volume_title(item, ctx) {
|
|
1801
|
+
const _v245 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1802
|
+
const _v246 = macro_title_volume(item, ctx)
|
|
1803
|
+
const _g243 = ((item.title == null || item.title === '') && !macro_title_volume(item, ctx)) ? '' : [(stripNocaseSpans(_v245) ? '\uE020title\uE021' + stripNocaseSpans(_v245) + '\uE022' : ''), _v246].filter(v => v !== '').join(": ")
|
|
1804
|
+
return _g243
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
function macro_title_monographic(item, ctx) {
|
|
1808
|
+
let _ch247 = ''
|
|
1809
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
1810
|
+
const _v248 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1811
|
+
_ch247 = (stripNocaseSpans(_v248) ? '\uE020title\uE021' + stripNocaseSpans(_v248) + '\uE022' : '')
|
|
1812
|
+
}
|
|
1813
|
+
else {
|
|
1814
|
+
const _v249 = macro_title_and_volume_title(item, ctx)
|
|
1815
|
+
_ch247 = (_v249 ? '\uE000' + _v249 + '\uE001' : '')
|
|
1816
|
+
}
|
|
1817
|
+
return _ch247
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
function macro_title_part(item, ctx) {
|
|
1821
|
+
let _ch250 = ''
|
|
1822
|
+
if ((item["part-title"] != null && item["part-title"] !== '')) {
|
|
1823
|
+
const _v253 = macro_label_part_number(item, ctx)
|
|
1824
|
+
const _v254 = (item["part-title"] != null && item["part-title"] !== '' ? String(item["part-title"]) : '')
|
|
1825
|
+
const _g251 = (!macro_label_part_number(item, ctx) && (item["part-title"] == null || item["part-title"] === '')) ? '' : [_v253, (applyTextCase(_v254, "capitalize-first") ? '\uE020part-title\uE021' + applyTextCase(_v254, "capitalize-first") + '\uE022' : '')].filter(v => v !== '').join(". ")
|
|
1826
|
+
_ch250 = _g251
|
|
1827
|
+
}
|
|
1828
|
+
else if ((item["part-number"] != null && /^\s*\d/.test(String(item["part-number"])))) {
|
|
1829
|
+
_ch250 = [].filter(v => v !== '').join('')
|
|
1830
|
+
}
|
|
1831
|
+
else {
|
|
1832
|
+
const _v255 = macro_label_part_number(item, ctx)
|
|
1833
|
+
_ch250 = _v255
|
|
1834
|
+
}
|
|
1835
|
+
return _ch250
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
function macro_title_serial(item, ctx) {
|
|
1839
|
+
let _ch256 = ''
|
|
1840
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
1841
|
+
const _v257 = macro_title_and_part_filter_review(item, ctx)
|
|
1842
|
+
_ch256 = _v257
|
|
1843
|
+
}
|
|
1844
|
+
else {
|
|
1845
|
+
const _v258 = macro_title_and_part_filter_review(item, ctx)
|
|
1846
|
+
_ch256 = (_v258 ? '\uE000' + _v258 + '\uE001' : '')
|
|
1847
|
+
}
|
|
1848
|
+
return _ch256
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
function macro_title_volume(item, ctx) {
|
|
1852
|
+
const _gp260 = []
|
|
1853
|
+
if ((item["volume-title"] != null && item["volume-title"] !== '')) {
|
|
1854
|
+
const _v265 = macro_label_volume(item, ctx)
|
|
1855
|
+
const _v266 = (item["volume-title"] != null && item["volume-title"] !== '' ? String(item["volume-title"]) : '')
|
|
1856
|
+
const _g263 = (!macro_label_volume(item, ctx) && (item["volume-title"] == null || item["volume-title"] === '')) ? '' : [_v265, (stripNocaseSpans(_v266) ? '\uE020volume-title\uE021' + stripNocaseSpans(_v266) + '\uE022' : '')].filter(v => v !== '').join(". ")
|
|
1857
|
+
const _v267 = macro_title_part(item, ctx)
|
|
1858
|
+
const _g261 = (!macro_label_volume(item, ctx) && (item["volume-title"] == null || item["volume-title"] === '') && !macro_title_part(item, ctx)) ? '' : [_g263, _v267].filter(v => v !== '').join(": ")
|
|
1859
|
+
_gp260.push(_g261)
|
|
1860
|
+
}
|
|
1861
|
+
else if ((item["part-title"] != null && item["part-title"] !== '')) {
|
|
1862
|
+
const _v268 = macro_label_volume(item, ctx)
|
|
1863
|
+
_gp260.push(_v268)
|
|
1864
|
+
const _v269 = macro_title_part(item, ctx)
|
|
1865
|
+
_gp260.push(_v269)
|
|
1866
|
+
}
|
|
1867
|
+
else if (((item["part-number"] != null && /^\s*\d/.test(String(item["part-number"]))) && (item.volume != null && /^\s*\d/.test(String(item.volume))))) {
|
|
1868
|
+
}
|
|
1869
|
+
else if (((item.volume != null && item.volume !== '') && (item["part-number"] != null && /^\s*\d/.test(String(item["part-number"]))))) {
|
|
1870
|
+
const _v270 = macro_label_volume(item, ctx)
|
|
1871
|
+
_gp260.push(_v270)
|
|
1872
|
+
}
|
|
1873
|
+
else if (((item["part-number"] != null && item["part-number"] !== '') && (item.volume != null && /^\s*\d/.test(String(item.volume))))) {
|
|
1874
|
+
const _v271 = macro_label_part_number(item, ctx)
|
|
1875
|
+
_gp260.push(_v271)
|
|
1876
|
+
}
|
|
1877
|
+
else if ((item["part-number"] != null && /^\s*\d/.test(String(item["part-number"])))) {
|
|
1878
|
+
}
|
|
1879
|
+
else if ((item.volume != null && /^\s*\d/.test(String(item.volume)))) {
|
|
1880
|
+
}
|
|
1881
|
+
else {
|
|
1882
|
+
const _v272 = macro_label_volume(item, ctx)
|
|
1883
|
+
_gp260.push(_v272)
|
|
1884
|
+
const _v273 = macro_label_part_number(item, ctx)
|
|
1885
|
+
_gp260.push(_v273)
|
|
1886
|
+
}
|
|
1887
|
+
const _g259 = _gp260.filter(v => v !== '').join(", ")
|
|
1888
|
+
return _g259
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
function macro_identifier(item, ctx) {
|
|
1892
|
+
const _gp275 = []
|
|
1893
|
+
if (item.type === "patent") {
|
|
1894
|
+
const _v276 = macro_identifier_patent(item, ctx)
|
|
1895
|
+
_gp275.push(_v276)
|
|
1896
|
+
}
|
|
1897
|
+
else if ((item.type === "post" || item.type === "webpage")) {
|
|
1898
|
+
const _v277 = macro_identifier_contributors(item, ctx)
|
|
1899
|
+
_gp275.push(_v277)
|
|
1900
|
+
const _v278 = macro_identifier_number(item, ctx)
|
|
1901
|
+
_gp275.push(_v278)
|
|
1902
|
+
const _v279 = macro_identifier_monographic(item, ctx)
|
|
1903
|
+
_gp275.push(_v279)
|
|
1904
|
+
}
|
|
1905
|
+
else if ((item.type === "report" && (item["container-title"] != null && item["container-title"] !== ''))) {
|
|
1906
|
+
const _v280 = macro_identifier_contributors(item, ctx)
|
|
1907
|
+
_gp275.push(_v280)
|
|
1908
|
+
}
|
|
1909
|
+
else if ((item.type === "report" && (item.title != null && item.title !== ''))) {
|
|
1910
|
+
const _v281 = macro_identifier_contributors(item, ctx)
|
|
1911
|
+
_gp275.push(_v281)
|
|
1912
|
+
const _v282 = macro_identifier_number(item, ctx)
|
|
1913
|
+
_gp275.push(_v282)
|
|
1914
|
+
const _v283 = macro_identifier_monographic(item, ctx)
|
|
1915
|
+
_gp275.push(_v283)
|
|
1916
|
+
}
|
|
1917
|
+
else if (item.type === "report") {
|
|
1918
|
+
const _v284 = macro_identifier_contributors(item, ctx)
|
|
1919
|
+
_gp275.push(_v284)
|
|
1920
|
+
const _v285 = macro_identifier_monographic(item, ctx)
|
|
1921
|
+
_gp275.push(_v285)
|
|
1922
|
+
}
|
|
1923
|
+
else if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
1924
|
+
let _ch286 = ''
|
|
1925
|
+
if (!((item.genre != null && item.genre !== '')) && !((item.title != null && item.title !== ''))) {
|
|
1926
|
+
const _v287 = macro_label_chapter_number(item, ctx)
|
|
1927
|
+
_ch286 = _v287
|
|
1928
|
+
}
|
|
1929
|
+
_gp275.push(_ch286)
|
|
1930
|
+
const _v288 = macro_identifier_contributors(item, ctx)
|
|
1931
|
+
_gp275.push(_v288)
|
|
1932
|
+
let _ch289 = ''
|
|
1933
|
+
if ((item.type === "broadcast" || item.type === "graphic" || item.type === "map" || item.type === "motion_picture")) {
|
|
1934
|
+
const _v290 = macro_identifier_number(item, ctx)
|
|
1935
|
+
_ch289 = _v290
|
|
1936
|
+
}
|
|
1937
|
+
_gp275.push(_ch289)
|
|
1938
|
+
const _v291 = macro_identifier_serial(item, ctx)
|
|
1939
|
+
_gp275.push(_v291)
|
|
1940
|
+
}
|
|
1941
|
+
else {
|
|
1942
|
+
const _v292 = macro_identifier_contributors(item, ctx)
|
|
1943
|
+
_gp275.push(_v292)
|
|
1944
|
+
const _v293 = macro_identifier_number(item, ctx)
|
|
1945
|
+
_gp275.push(_v293)
|
|
1946
|
+
const _v294 = macro_identifier_monographic(item, ctx)
|
|
1947
|
+
_gp275.push(_v294)
|
|
1948
|
+
const _v295 = macro_identifier_serial(item, ctx)
|
|
1949
|
+
_gp275.push(_v295)
|
|
1950
|
+
}
|
|
1951
|
+
const _g274 = _gp275.filter(v => v !== '').join("; ")
|
|
1952
|
+
return (_g274 ? "(" + _g274 + ")" : '')
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
function macro_identifier_contributors(item, ctx) {
|
|
1956
|
+
let _ch296 = ''
|
|
1957
|
+
if ((item.type === "article-journal" || item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "periodical" || item.type === "post-weblog" || item.type === "review" || item.type === "review-book")) {
|
|
1958
|
+
const _v297 = macro_identifier_contributors_serial(item, ctx)
|
|
1959
|
+
_ch296 = _v297
|
|
1960
|
+
}
|
|
1961
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== ''))) {
|
|
1962
|
+
const _v298 = macro_identifier_contributors_monographic(item, ctx)
|
|
1963
|
+
_ch296 = _v298
|
|
1964
|
+
}
|
|
1965
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
1966
|
+
const _v299 = macro_identifier_contributors_serial(item, ctx)
|
|
1967
|
+
_ch296 = _v299
|
|
1968
|
+
}
|
|
1969
|
+
else {
|
|
1970
|
+
const _v300 = macro_identifier_contributors_monographic(item, ctx)
|
|
1971
|
+
_ch296 = _v300
|
|
1972
|
+
}
|
|
1973
|
+
return _ch296
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
function macro_identifier_contributors_monographic(item, ctx) {
|
|
1977
|
+
const _gp302 = []
|
|
1978
|
+
if ((item.title != null && item.title !== '')) {
|
|
1979
|
+
let _n303 = ''
|
|
1980
|
+
if (item.interviewer && item.interviewer.length) {
|
|
1981
|
+
_n303 = formatNames(item.interviewer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
1982
|
+
if (_n303) _n303 = '\uE020interviewer\uE021' + _n303 + '\uE022'
|
|
1983
|
+
}
|
|
1984
|
+
_gp302.push(_n303)
|
|
1985
|
+
}
|
|
1986
|
+
if ((item.type === "post" || item.type === "webpage")) {
|
|
1987
|
+
let _n304 = ''
|
|
1988
|
+
if (item["container-author"] && item["container-author"].length) {
|
|
1989
|
+
_n304 = formatNames(item["container-author"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
1990
|
+
if (_n304) _n304 = '\uE020container-author\uE021' + _n304 + '\uE022'
|
|
1991
|
+
}
|
|
1992
|
+
_gp302.push(_n304)
|
|
1993
|
+
let _n305 = ''
|
|
1994
|
+
if (item.editor && item.editor.length) {
|
|
1995
|
+
_n305 = formatNames(item.editor, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
1996
|
+
if (_n305) _n305 = '\uE020editor\uE021' + _n305 + '\uE022'
|
|
1997
|
+
}
|
|
1998
|
+
else if (item.translator && item.translator.length) {
|
|
1999
|
+
_n305 = formatNames(item.translator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2000
|
+
const _v306 = (() => {
|
|
2001
|
+
const _val = item.translator
|
|
2002
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2003
|
+
const _term = T["translator:short"]
|
|
2004
|
+
if (_term == null) return ''
|
|
2005
|
+
if (typeof _term === 'string') return _term
|
|
2006
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2007
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2008
|
+
})()
|
|
2009
|
+
if (_n305) _n305 += ' ' + (applyTextCase(_v306, "title") ? ", " + applyTextCase(_v306, "title") : '')
|
|
2010
|
+
if (_n305) _n305 = '\uE020translator\uE021' + _n305 + '\uE022'
|
|
2011
|
+
}
|
|
2012
|
+
_gp302.push(_n305)
|
|
2013
|
+
let _n307 = ''
|
|
2014
|
+
if (item.illustrator && item.illustrator.length) {
|
|
2015
|
+
_n307 = formatNames(item.illustrator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2016
|
+
if (_n307) _n307 = '\uE020illustrator\uE021' + _n307 + '\uE022'
|
|
2017
|
+
}
|
|
2018
|
+
else if (item.narrator && item.narrator.length) {
|
|
2019
|
+
_n307 = formatNames(item.narrator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2020
|
+
const _v308 = (() => {
|
|
2021
|
+
const _val = item.narrator
|
|
2022
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2023
|
+
const _term = T["narrator:short"]
|
|
2024
|
+
if (_term == null) return ''
|
|
2025
|
+
if (typeof _term === 'string') return _term
|
|
2026
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2027
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2028
|
+
})()
|
|
2029
|
+
if (_n307) _n307 += ' ' + (applyTextCase(_v308, "title") ? ", " + applyTextCase(_v308, "title") : '')
|
|
2030
|
+
if (_n307) _n307 = '\uE020narrator\uE021' + _n307 + '\uE022'
|
|
2031
|
+
}
|
|
2032
|
+
_gp302.push(_n307)
|
|
2033
|
+
let _n309 = ''
|
|
2034
|
+
if (item.compiler && item.compiler.length) {
|
|
2035
|
+
_n309 = formatNames(item.compiler, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2036
|
+
if (_n309) _n309 = '\uE020compiler\uE021' + _n309 + '\uE022'
|
|
2037
|
+
}
|
|
2038
|
+
else if (item.chair && item.chair.length) {
|
|
2039
|
+
_n309 = formatNames(item.chair, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2040
|
+
const _v310 = (() => {
|
|
2041
|
+
const _val = item.chair
|
|
2042
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2043
|
+
const _term = T["chair"]
|
|
2044
|
+
if (_term == null) return ''
|
|
2045
|
+
if (typeof _term === 'string') return _term
|
|
2046
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2047
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2048
|
+
})()
|
|
2049
|
+
if (_n309) _n309 += ' ' + (applyTextCase(_v310, "title") ? ", " + applyTextCase(_v310, "title") : '')
|
|
2050
|
+
if (_n309) _n309 = '\uE020chair\uE021' + _n309 + '\uE022'
|
|
2051
|
+
}
|
|
2052
|
+
else if (item.organizer && item.organizer.length) {
|
|
2053
|
+
_n309 = formatNames(item.organizer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2054
|
+
const _v311 = (() => {
|
|
2055
|
+
const _val = item.organizer
|
|
2056
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2057
|
+
const _term = T["organizer"]
|
|
2058
|
+
if (_term == null) return ''
|
|
2059
|
+
if (typeof _term === 'string') return _term
|
|
2060
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2061
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2062
|
+
})()
|
|
2063
|
+
if (_n309) _n309 += ' ' + (applyTextCase(_v311, "title") ? ", " + applyTextCase(_v311, "title") : '')
|
|
2064
|
+
if (_n309) _n309 = '\uE020organizer\uE021' + _n309 + '\uE022'
|
|
2065
|
+
}
|
|
2066
|
+
else if (item.curator && item.curator.length) {
|
|
2067
|
+
_n309 = formatNames(item.curator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2068
|
+
const _v312 = (() => {
|
|
2069
|
+
const _val = item.curator
|
|
2070
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2071
|
+
const _term = T["curator"]
|
|
2072
|
+
if (_term == null) return ''
|
|
2073
|
+
if (typeof _term === 'string') return _term
|
|
2074
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2075
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2076
|
+
})()
|
|
2077
|
+
if (_n309) _n309 += ' ' + (applyTextCase(_v312, "title") ? ", " + applyTextCase(_v312, "title") : '')
|
|
2078
|
+
if (_n309) _n309 = '\uE020curator\uE021' + _n309 + '\uE022'
|
|
2079
|
+
}
|
|
2080
|
+
else if (item["series-creator"] && item["series-creator"].length) {
|
|
2081
|
+
_n309 = formatNames(item["series-creator"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2082
|
+
const _v313 = (() => {
|
|
2083
|
+
const _val = item["series-creator"]
|
|
2084
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2085
|
+
const _term = T["series-creator"]
|
|
2086
|
+
if (_term == null) return ''
|
|
2087
|
+
if (typeof _term === 'string') return _term
|
|
2088
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2089
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2090
|
+
})()
|
|
2091
|
+
if (_n309) _n309 += ' ' + (applyTextCase(_v313, "title") ? ", " + applyTextCase(_v313, "title") : '')
|
|
2092
|
+
if (_n309) _n309 = '\uE020series-creator\uE021' + _n309 + '\uE022'
|
|
2093
|
+
}
|
|
2094
|
+
else if (item["executive-producer"] && item["executive-producer"].length) {
|
|
2095
|
+
_n309 = formatNames(item["executive-producer"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2096
|
+
const _v314 = (() => {
|
|
2097
|
+
const _val = item["executive-producer"]
|
|
2098
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2099
|
+
const _term = T["executive-producer"]
|
|
2100
|
+
if (_term == null) return ''
|
|
2101
|
+
if (typeof _term === 'string') return _term
|
|
2102
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2103
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2104
|
+
})()
|
|
2105
|
+
if (_n309) _n309 += ' ' + (applyTextCase(_v314, "title") ? ", " + applyTextCase(_v314, "title") : '')
|
|
2106
|
+
if (_n309) _n309 = '\uE020executive-producer\uE021' + _n309 + '\uE022'
|
|
2107
|
+
}
|
|
2108
|
+
_gp302.push(_n309)
|
|
2109
|
+
}
|
|
2110
|
+
else {
|
|
2111
|
+
let _n315 = ''
|
|
2112
|
+
if (item.illustrator && item.illustrator.length) {
|
|
2113
|
+
_n315 = formatNames(item.illustrator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2114
|
+
if (_n315) _n315 = '\uE020illustrator\uE021' + _n315 + '\uE022'
|
|
2115
|
+
}
|
|
2116
|
+
else if (item.narrator && item.narrator.length) {
|
|
2117
|
+
_n315 = formatNames(item.narrator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2118
|
+
const _v316 = (() => {
|
|
2119
|
+
const _val = item.narrator
|
|
2120
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2121
|
+
const _term = T["narrator:short"]
|
|
2122
|
+
if (_term == null) return ''
|
|
2123
|
+
if (typeof _term === 'string') return _term
|
|
2124
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2125
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2126
|
+
})()
|
|
2127
|
+
if (_n315) _n315 += ' ' + (applyTextCase(_v316, "title") ? ", " + applyTextCase(_v316, "title") : '')
|
|
2128
|
+
if (_n315) _n315 = '\uE020narrator\uE021' + _n315 + '\uE022'
|
|
2129
|
+
}
|
|
2130
|
+
_gp302.push(_n315)
|
|
2131
|
+
let _ch317 = ''
|
|
2132
|
+
if (((item["container-title"] != null && item["container-title"] !== '') && (item["editor-translator"] != null && item["editor-translator"] !== ''))) {
|
|
2133
|
+
_ch317 = [].filter(v => v !== '').join('')
|
|
2134
|
+
}
|
|
2135
|
+
else if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
2136
|
+
let _n318 = ''
|
|
2137
|
+
if (item.translator && item.translator.length) {
|
|
2138
|
+
_n318 = formatNames(item.translator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2139
|
+
if (_n318) _n318 = '\uE020translator\uE021' + _n318 + '\uE022'
|
|
2140
|
+
}
|
|
2141
|
+
_ch317 = _n318
|
|
2142
|
+
}
|
|
2143
|
+
else {
|
|
2144
|
+
let _n319 = ''
|
|
2145
|
+
if (item["container-author"] && item["container-author"].length) {
|
|
2146
|
+
_n319 = formatNames(item["container-author"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2147
|
+
if (_n319) _n319 = '\uE020container-author\uE021' + _n319 + '\uE022'
|
|
2148
|
+
}
|
|
2149
|
+
let _n320 = ''
|
|
2150
|
+
if (item.editor && item.editor.length) {
|
|
2151
|
+
_n320 = formatNames(item.editor, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2152
|
+
if (_n320) _n320 = '\uE020editor\uE021' + _n320 + '\uE022'
|
|
2153
|
+
}
|
|
2154
|
+
else if (item.translator && item.translator.length) {
|
|
2155
|
+
_n320 = formatNames(item.translator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2156
|
+
const _v321 = (() => {
|
|
2157
|
+
const _val = item.translator
|
|
2158
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2159
|
+
const _term = T["translator:short"]
|
|
2160
|
+
if (_term == null) return ''
|
|
2161
|
+
if (typeof _term === 'string') return _term
|
|
2162
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2163
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2164
|
+
})()
|
|
2165
|
+
if (_n320) _n320 += ' ' + (applyTextCase(_v321, "title") ? ", " + applyTextCase(_v321, "title") : '')
|
|
2166
|
+
if (_n320) _n320 = '\uE020translator\uE021' + _n320 + '\uE022'
|
|
2167
|
+
}
|
|
2168
|
+
let _n322 = ''
|
|
2169
|
+
if (item.compiler && item.compiler.length) {
|
|
2170
|
+
_n322 = formatNames(item.compiler, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2171
|
+
if (_n322) _n322 = '\uE020compiler\uE021' + _n322 + '\uE022'
|
|
2172
|
+
}
|
|
2173
|
+
else if (item.chair && item.chair.length) {
|
|
2174
|
+
_n322 = formatNames(item.chair, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2175
|
+
const _v323 = (() => {
|
|
2176
|
+
const _val = item.chair
|
|
2177
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2178
|
+
const _term = T["chair"]
|
|
2179
|
+
if (_term == null) return ''
|
|
2180
|
+
if (typeof _term === 'string') return _term
|
|
2181
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2182
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2183
|
+
})()
|
|
2184
|
+
if (_n322) _n322 += ' ' + (applyTextCase(_v323, "title") ? ", " + applyTextCase(_v323, "title") : '')
|
|
2185
|
+
if (_n322) _n322 = '\uE020chair\uE021' + _n322 + '\uE022'
|
|
2186
|
+
}
|
|
2187
|
+
else if (item.organizer && item.organizer.length) {
|
|
2188
|
+
_n322 = formatNames(item.organizer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2189
|
+
const _v324 = (() => {
|
|
2190
|
+
const _val = item.organizer
|
|
2191
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2192
|
+
const _term = T["organizer"]
|
|
2193
|
+
if (_term == null) return ''
|
|
2194
|
+
if (typeof _term === 'string') return _term
|
|
2195
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2196
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2197
|
+
})()
|
|
2198
|
+
if (_n322) _n322 += ' ' + (applyTextCase(_v324, "title") ? ", " + applyTextCase(_v324, "title") : '')
|
|
2199
|
+
if (_n322) _n322 = '\uE020organizer\uE021' + _n322 + '\uE022'
|
|
2200
|
+
}
|
|
2201
|
+
else if (item.curator && item.curator.length) {
|
|
2202
|
+
_n322 = formatNames(item.curator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2203
|
+
const _v325 = (() => {
|
|
2204
|
+
const _val = item.curator
|
|
2205
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2206
|
+
const _term = T["curator"]
|
|
2207
|
+
if (_term == null) return ''
|
|
2208
|
+
if (typeof _term === 'string') return _term
|
|
2209
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2210
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2211
|
+
})()
|
|
2212
|
+
if (_n322) _n322 += ' ' + (applyTextCase(_v325, "title") ? ", " + applyTextCase(_v325, "title") : '')
|
|
2213
|
+
if (_n322) _n322 = '\uE020curator\uE021' + _n322 + '\uE022'
|
|
2214
|
+
}
|
|
2215
|
+
else if (item["series-creator"] && item["series-creator"].length) {
|
|
2216
|
+
_n322 = formatNames(item["series-creator"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2217
|
+
const _v326 = (() => {
|
|
2218
|
+
const _val = item["series-creator"]
|
|
2219
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2220
|
+
const _term = T["series-creator"]
|
|
2221
|
+
if (_term == null) return ''
|
|
2222
|
+
if (typeof _term === 'string') return _term
|
|
2223
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2224
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2225
|
+
})()
|
|
2226
|
+
if (_n322) _n322 += ' ' + (applyTextCase(_v326, "title") ? ", " + applyTextCase(_v326, "title") : '')
|
|
2227
|
+
if (_n322) _n322 = '\uE020series-creator\uE021' + _n322 + '\uE022'
|
|
2228
|
+
}
|
|
2229
|
+
else if (item["executive-producer"] && item["executive-producer"].length) {
|
|
2230
|
+
_n322 = formatNames(item["executive-producer"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2231
|
+
const _v327 = (() => {
|
|
2232
|
+
const _val = item["executive-producer"]
|
|
2233
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2234
|
+
const _term = T["executive-producer"]
|
|
2235
|
+
if (_term == null) return ''
|
|
2236
|
+
if (typeof _term === 'string') return _term
|
|
2237
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2238
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2239
|
+
})()
|
|
2240
|
+
if (_n322) _n322 += ' ' + (applyTextCase(_v327, "title") ? ", " + applyTextCase(_v327, "title") : '')
|
|
2241
|
+
if (_n322) _n322 = '\uE020executive-producer\uE021' + _n322 + '\uE022'
|
|
2242
|
+
}
|
|
2243
|
+
_ch317 = [_n319, _n320, _n322].filter(v => v !== '').join('')
|
|
2244
|
+
}
|
|
2245
|
+
_gp302.push(_ch317)
|
|
2246
|
+
}
|
|
2247
|
+
const _g301 = _gp302.filter(v => v !== '').join("; ")
|
|
2248
|
+
return _g301
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
function macro_identifier_contributors_serial(item, ctx) {
|
|
2252
|
+
const _gp329 = []
|
|
2253
|
+
if ((item.title != null && item.title !== '')) {
|
|
2254
|
+
let _n330 = ''
|
|
2255
|
+
if (item.interviewer && item.interviewer.length) {
|
|
2256
|
+
_n330 = formatNames(item.interviewer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2257
|
+
if (_n330) _n330 = '\uE020interviewer\uE021' + _n330 + '\uE022'
|
|
2258
|
+
}
|
|
2259
|
+
_gp329.push(_n330)
|
|
2260
|
+
}
|
|
2261
|
+
let _n331 = ''
|
|
2262
|
+
if (item.translator && item.translator.length) {
|
|
2263
|
+
_n331 = formatNames(item.translator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2264
|
+
if (_n331) _n331 = '\uE020translator\uE021' + _n331 + '\uE022'
|
|
2265
|
+
}
|
|
2266
|
+
else if (item.narrator && item.narrator.length) {
|
|
2267
|
+
_n331 = formatNames(item.narrator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2268
|
+
const _v332 = (() => {
|
|
2269
|
+
const _val = item.narrator
|
|
2270
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
2271
|
+
const _term = T["narrator:short"]
|
|
2272
|
+
if (_term == null) return ''
|
|
2273
|
+
if (typeof _term === 'string') return _term
|
|
2274
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
2275
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
2276
|
+
})()
|
|
2277
|
+
if (_n331) _n331 += ' ' + (applyTextCase(_v332, "title") ? ", " + applyTextCase(_v332, "title") : '')
|
|
2278
|
+
if (_n331) _n331 = '\uE020narrator\uE021' + _n331 + '\uE022'
|
|
2279
|
+
}
|
|
2280
|
+
_gp329.push(_n331)
|
|
2281
|
+
const _g328 = _gp329.filter(v => v !== '').join("; ")
|
|
2282
|
+
return _g328
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
function macro_identifier_locators(item, ctx) {
|
|
2286
|
+
let _ch333 = ''
|
|
2287
|
+
if ((item.page != null && item.page !== '')) {
|
|
2288
|
+
const _v334 = macro_label_page(item, ctx)
|
|
2289
|
+
_ch333 = _v334
|
|
2290
|
+
}
|
|
2291
|
+
else if (((item["chapter-number"] != null && item["chapter-number"] !== '') && (item.genre != null && item.genre !== ''))) {
|
|
2292
|
+
const _v335 = macro_label_chapter_number(item, ctx)
|
|
2293
|
+
_ch333 = _v335
|
|
2294
|
+
}
|
|
2295
|
+
else if (((item["chapter-number"] != null && item["chapter-number"] !== '') && (item.title != null && item.title !== ''))) {
|
|
2296
|
+
const _v336 = macro_label_chapter_number(item, ctx)
|
|
2297
|
+
_ch333 = _v336
|
|
2298
|
+
}
|
|
2299
|
+
return _ch333
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
function macro_identifier_monographic(item, ctx) {
|
|
2303
|
+
let _ch337 = ''
|
|
2304
|
+
if ((item.type === "article-journal" || item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "broadcast" || item.type === "event" || item.type === "patent" || item.type === "performance" || item.type === "periodical" || item.type === "post" || item.type === "post-weblog" || item.type === "review" || item.type === "review-book" || item.type === "speech" || item.type === "webpage")) {
|
|
2305
|
+
_ch337 = [].filter(v => v !== '').join('')
|
|
2306
|
+
}
|
|
2307
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== ''))) {
|
|
2308
|
+
const _v338 = macro_identifier_monographic_item(item, ctx)
|
|
2309
|
+
_ch337 = _v338
|
|
2310
|
+
}
|
|
2311
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
2312
|
+
_ch337 = [].filter(v => v !== '').join('')
|
|
2313
|
+
}
|
|
2314
|
+
else {
|
|
2315
|
+
const _v339 = macro_identifier_monographic_item(item, ctx)
|
|
2316
|
+
_ch337 = _v339
|
|
2317
|
+
}
|
|
2318
|
+
return _ch337
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
function macro_identifier_monographic_item(item, ctx) {
|
|
2322
|
+
const _v342 = macro_label_version(item, ctx)
|
|
2323
|
+
const _v343 = macro_label_edition(item, ctx)
|
|
2324
|
+
const _v344 = macro_identifier_series(item, ctx)
|
|
2325
|
+
const _v345 = macro_label_supplement_number(item, ctx)
|
|
2326
|
+
const _v346 = macro_identifier_number_volume(item, ctx)
|
|
2327
|
+
const _v347 = macro_identifier_number_part(item, ctx)
|
|
2328
|
+
const _v348 = macro_label_issue(item, ctx)
|
|
2329
|
+
const _v349 = macro_identifier_locators(item, ctx)
|
|
2330
|
+
const _g340 = (!macro_label_version(item, ctx) && !macro_label_edition(item, ctx) && !macro_identifier_series(item, ctx) && !macro_label_supplement_number(item, ctx) && !macro_identifier_number_volume(item, ctx) && !macro_identifier_number_part(item, ctx) && !macro_label_issue(item, ctx) && !macro_identifier_locators(item, ctx)) ? '' : [_v342, _v343, _v344, _v345, _v346, _v347, _v348, _v349].filter(v => v !== '').join(", ")
|
|
2331
|
+
return _g340
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
function macro_identifier_number(item, ctx) {
|
|
2335
|
+
const _gp351 = []
|
|
2336
|
+
if ((item.type === "thesis" && (item.genre != null && item.genre !== ''))) {
|
|
2337
|
+
const _v352 = "publication"
|
|
2338
|
+
_gp351.push(applyTextCase(_v352, "capitalize-first"))
|
|
2339
|
+
}
|
|
2340
|
+
else if ((item.number != null && item.number !== '')) {
|
|
2341
|
+
const _v353 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2342
|
+
_gp351.push((applyTextCase(_v353, "title") ? '\uE020genre\uE021' + applyTextCase(_v353, "title") + '\uE022' : ''))
|
|
2343
|
+
}
|
|
2344
|
+
const _v354 = macro_label_number(item, ctx)
|
|
2345
|
+
_gp351.push(_v354)
|
|
2346
|
+
const _g350 = _gp351.filter(v => v !== '').join(" ")
|
|
2347
|
+
return _g350
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
function macro_identifier_number_part(item, ctx) {
|
|
2351
|
+
let _ch355 = ''
|
|
2352
|
+
if ((item["part-title"] != null && item["part-title"] !== '')) {
|
|
2353
|
+
_ch355 = [].filter(v => v !== '').join('')
|
|
2354
|
+
}
|
|
2355
|
+
else if ((item["part-number"] != null && /^\s*\d/.test(String(item["part-number"])))) {
|
|
2356
|
+
const _v356 = macro_label_part_number(item, ctx)
|
|
2357
|
+
_ch355 = _v356
|
|
2358
|
+
}
|
|
2359
|
+
return _ch355
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
function macro_identifier_number_volume(item, ctx) {
|
|
2363
|
+
let _ch357 = ''
|
|
2364
|
+
if (((item.volume != null && item.volume !== '') && (item["volume-title"] != null && item["volume-title"] !== ''))) {
|
|
2365
|
+
_ch357 = [].filter(v => v !== '').join('')
|
|
2366
|
+
}
|
|
2367
|
+
else if (((item["part-title"] != null && item["part-title"] !== '') && (item.volume != null && item.volume !== ''))) {
|
|
2368
|
+
_ch357 = [].filter(v => v !== '').join('')
|
|
2369
|
+
}
|
|
2370
|
+
else if ((item.volume != null && /^\s*\d/.test(String(item.volume)))) {
|
|
2371
|
+
const _v358 = macro_label_volume(item, ctx)
|
|
2372
|
+
_ch357 = _v358
|
|
2373
|
+
}
|
|
2374
|
+
else {
|
|
2375
|
+
const _v359 = macro_label_number_of_volumes(item, ctx)
|
|
2376
|
+
_ch357 = _v359
|
|
2377
|
+
}
|
|
2378
|
+
return _ch357
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
function macro_identifier_patent(item, ctx) {
|
|
2382
|
+
const _gp361 = []
|
|
2383
|
+
const _v362 = (item.authority != null && item.authority !== '' ? String(item.authority) : '')
|
|
2384
|
+
_gp361.push((stripNocaseSpans(_v362) ? '\uE020authority\uE021' + stripNocaseSpans(_v362) + '\uE022' : ''))
|
|
2385
|
+
if ((item.genre != null && item.genre !== '')) {
|
|
2386
|
+
const _v363 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2387
|
+
_gp361.push((applyTextCase(_v363, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v363, "capitalize-first") + '\uE022' : ''))
|
|
2388
|
+
}
|
|
2389
|
+
else {
|
|
2390
|
+
const _v364 = (T["patent"] != null ? (typeof T["patent"] === 'string' ? T["patent"] : (T["patent"].single || '')) : '')
|
|
2391
|
+
_gp361.push(applyTextCase(_v364, "capitalize-first"))
|
|
2392
|
+
}
|
|
2393
|
+
const _v365 = macro_label_number(item, ctx)
|
|
2394
|
+
_gp361.push(_v365)
|
|
2395
|
+
const _g360 = _gp361.filter(v => v !== '').join(" ")
|
|
2396
|
+
return _g360
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
function macro_identifier_serial(item, ctx) {
|
|
2400
|
+
let _ch366 = ''
|
|
2401
|
+
if ((item.type === "article-journal" || item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "periodical" || item.type === "post-weblog" || item.type === "review" || item.type === "review-book")) {
|
|
2402
|
+
const _v367 = macro_identifier_number_part(item, ctx)
|
|
2403
|
+
_ch366 = _v367
|
|
2404
|
+
}
|
|
2405
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== ''))) {
|
|
2406
|
+
_ch366 = [].filter(v => v !== '').join('')
|
|
2407
|
+
}
|
|
2408
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
2409
|
+
const _v368 = macro_identifier_number_part(item, ctx)
|
|
2410
|
+
_ch366 = _v368
|
|
2411
|
+
}
|
|
2412
|
+
return _ch366
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
function macro_identifier_series(item, ctx) {
|
|
2416
|
+
let _ch369 = ''
|
|
2417
|
+
if ((item.type === "document" || item.type === "report" || item.type === "standard")) {
|
|
2418
|
+
const _v372 = (item["collection-title"] != null && item["collection-title"] !== '' ? String(item["collection-title"]) : '')
|
|
2419
|
+
const _v373 = (item["collection-number"] != null && item["collection-number"] !== '' ? String(item["collection-number"]) : '')
|
|
2420
|
+
const _g370 = ((item["collection-title"] == null || item["collection-title"] === '') && (item["collection-number"] == null || item["collection-number"] === '')) ? '' : [(applyTextCase(_v372, "title") ? '\uE020collection-title\uE021' + applyTextCase(_v372, "title") + '\uE022' : ''), (stripNocaseSpans(_v373) ? '\uE020collection-number\uE021' + stripNocaseSpans(_v373) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
2421
|
+
_ch369 = _g370
|
|
2422
|
+
}
|
|
2423
|
+
return _ch369
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
function macro_description(item, ctx) {
|
|
2427
|
+
const _gp375 = []
|
|
2428
|
+
if ((item.type === "interview" || (item.interviewer != null && item.interviewer !== ''))) {
|
|
2429
|
+
const _v376 = macro_description_interview(item, ctx)
|
|
2430
|
+
_gp375.push(_v376)
|
|
2431
|
+
}
|
|
2432
|
+
else if ((item.type === "review" || item.type === "review-book" || (item["reviewed-author"] != null && item["reviewed-author"] !== '') || (item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
2433
|
+
const _v377 = macro_description_review(item, ctx)
|
|
2434
|
+
_gp375.push(_v377)
|
|
2435
|
+
}
|
|
2436
|
+
else if (item.type === "personal_communication") {
|
|
2437
|
+
const _v378 = macro_description_letter(item, ctx)
|
|
2438
|
+
_gp375.push(_v378)
|
|
2439
|
+
}
|
|
2440
|
+
else if ((item.type === "song" && (item.composer != null && item.composer !== ''))) {
|
|
2441
|
+
const _v379 = macro_description_song(item, ctx)
|
|
2442
|
+
_gp375.push(_v379)
|
|
2443
|
+
}
|
|
2444
|
+
else if (item.type === "thesis") {
|
|
2445
|
+
const _v380 = macro_description_thesis(item, ctx)
|
|
2446
|
+
_gp375.push(_v380)
|
|
2447
|
+
}
|
|
2448
|
+
else if ((item.type === "article-journal" || item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "periodical" || item.type === "post-weblog" || item.type === "review" || item.type === "review-book")) {
|
|
2449
|
+
const _v381 = macro_description_serial(item, ctx)
|
|
2450
|
+
_gp375.push(_v381)
|
|
2451
|
+
}
|
|
2452
|
+
else if (!((item["container-title"] != null && item["container-title"] !== ''))) {
|
|
2453
|
+
const _v382 = macro_description_format(item, ctx)
|
|
2454
|
+
_gp375.push(_v382)
|
|
2455
|
+
}
|
|
2456
|
+
else if ((item.type === "document" || item.type === "report" || item.type === "software" || item.type === "standard")) {
|
|
2457
|
+
}
|
|
2458
|
+
else if ((item.type === "event" || item.type === "paper-conference" || item.type === "performance" || item.type === "speech")) {
|
|
2459
|
+
let _ch383 = ''
|
|
2460
|
+
if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== '') || (item.issue != null && item.issue !== '') || (item.page != null && item.page !== '') || (item["supplement-number"] != null && item["supplement-number"] !== '') || (item.volume != null && item.volume !== ''))) {
|
|
2461
|
+
const _v384 = macro_description_format(item, ctx)
|
|
2462
|
+
_ch383 = _v384
|
|
2463
|
+
}
|
|
2464
|
+
_gp375.push(_ch383)
|
|
2465
|
+
}
|
|
2466
|
+
else {
|
|
2467
|
+
const _v385 = macro_description_format(item, ctx)
|
|
2468
|
+
_gp375.push(_v385)
|
|
2469
|
+
}
|
|
2470
|
+
const _g374 = _gp375.filter(v => v !== '').join('')
|
|
2471
|
+
return (_g374 ? "[" + _g374 + "]" : '')
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
function macro_description_short(item, ctx) {
|
|
2475
|
+
const _gp387 = []
|
|
2476
|
+
if ((item.type === "interview" || (item.interviewer != null && item.interviewer !== ''))) {
|
|
2477
|
+
const _v388 = macro_description_interview_short(item, ctx)
|
|
2478
|
+
_gp387.push(_v388)
|
|
2479
|
+
}
|
|
2480
|
+
else if ((item.type === "review" || item.type === "review-book" || (item["reviewed-author"] != null && item["reviewed-author"] !== '') || (item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
2481
|
+
const _v389 = macro_description_review_short(item, ctx)
|
|
2482
|
+
_gp387.push(_v389)
|
|
2483
|
+
}
|
|
2484
|
+
else if (item.type === "personal_communication") {
|
|
2485
|
+
const _v390 = macro_description_letter_short(item, ctx)
|
|
2486
|
+
_gp387.push(_v390)
|
|
2487
|
+
}
|
|
2488
|
+
else if ((item.type === "article-journal" || item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "periodical" || item.type === "post-weblog" || item.type === "review" || item.type === "review-book")) {
|
|
2489
|
+
const _v391 = macro_description_serial_short(item, ctx)
|
|
2490
|
+
_gp387.push(_v391)
|
|
2491
|
+
}
|
|
2492
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== ''))) {
|
|
2493
|
+
const _v392 = macro_description_format_short(item, ctx)
|
|
2494
|
+
_gp387.push(_v392)
|
|
2495
|
+
}
|
|
2496
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
2497
|
+
const _v393 = macro_description_serial_short(item, ctx)
|
|
2498
|
+
_gp387.push(_v393)
|
|
2499
|
+
}
|
|
2500
|
+
else {
|
|
2501
|
+
const _v394 = macro_description_format_short(item, ctx)
|
|
2502
|
+
_gp387.push(_v394)
|
|
2503
|
+
}
|
|
2504
|
+
const _g386 = _gp387.filter(v => v !== '').join('')
|
|
2505
|
+
return (_g386 ? "[" + _g386 + "]" : '')
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
function macro_description_format(item, ctx) {
|
|
2509
|
+
let _ch395 = ''
|
|
2510
|
+
if (((item.genre != null && item.genre !== '') || (item.medium != null && item.medium !== ''))) {
|
|
2511
|
+
const _gp397 = []
|
|
2512
|
+
if (!((item.number != null && item.number !== ''))) {
|
|
2513
|
+
const _v398 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2514
|
+
_gp397.push((applyTextCase(_v398, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v398, "capitalize-first") + '\uE022' : ''))
|
|
2515
|
+
}
|
|
2516
|
+
const _v399 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2517
|
+
_gp397.push((applyTextCase(_v399, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v399, "capitalize-first") + '\uE022' : ''))
|
|
2518
|
+
const _g396 = _gp397.filter(v => v !== '').join("; ")
|
|
2519
|
+
_ch395 = _g396
|
|
2520
|
+
}
|
|
2521
|
+
else {
|
|
2522
|
+
const _v400 = macro_description_format_term_generic(item, ctx)
|
|
2523
|
+
_ch395 = _v400
|
|
2524
|
+
}
|
|
2525
|
+
return _ch395
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
function macro_description_format_short(item, ctx) {
|
|
2529
|
+
let _ch401 = ''
|
|
2530
|
+
if ((item.genre != null && item.genre !== '')) {
|
|
2531
|
+
const _v402 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2532
|
+
_ch401 = (applyTextCase(_v402, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v402, "capitalize-first") + '\uE022' : '')
|
|
2533
|
+
}
|
|
2534
|
+
else if ((item.medium != null && item.medium !== '')) {
|
|
2535
|
+
const _v403 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2536
|
+
_ch401 = (applyTextCase(_v403, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v403, "capitalize-first") + '\uE022' : '')
|
|
2537
|
+
}
|
|
2538
|
+
else {
|
|
2539
|
+
const _v404 = macro_description_format_term_generic(item, ctx)
|
|
2540
|
+
_ch401 = _v404
|
|
2541
|
+
}
|
|
2542
|
+
return _ch401
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
function macro_description_format_term_generic(item, ctx) {
|
|
2546
|
+
let _ch405 = ''
|
|
2547
|
+
if (item.type === "broadcast") {
|
|
2548
|
+
const _v406 = (T["broadcast"] != null ? (typeof T["broadcast"] === 'string' ? T["broadcast"] : (T["broadcast"].single || '')) : '')
|
|
2549
|
+
_ch405 = applyTextCase(_v406, "capitalize-first")
|
|
2550
|
+
}
|
|
2551
|
+
else if (item.type === "collection") {
|
|
2552
|
+
const _v407 = (T["collection"] != null ? (typeof T["collection"] === 'string' ? T["collection"] : (T["collection"].single || '')) : '')
|
|
2553
|
+
_ch405 = applyTextCase(_v407, "capitalize-first")
|
|
2554
|
+
}
|
|
2555
|
+
else if (item.type === "dataset") {
|
|
2556
|
+
const _v408 = (T["dataset"] != null ? (typeof T["dataset"] === 'string' ? T["dataset"] : (T["dataset"].single || '')) : '')
|
|
2557
|
+
_ch405 = applyTextCase(_v408, "capitalize-first")
|
|
2558
|
+
}
|
|
2559
|
+
else if (item.type === "figure") {
|
|
2560
|
+
const _v409 = (T["figure"] != null ? (typeof T["figure"] === 'string' ? T["figure"] : (T["figure"].single || '')) : '')
|
|
2561
|
+
_ch405 = applyTextCase(_v409, "capitalize-first")
|
|
2562
|
+
}
|
|
2563
|
+
else if (item.type === "graphic") {
|
|
2564
|
+
const _v410 = (T["graphic"] != null ? (typeof T["graphic"] === 'string' ? T["graphic"] : (T["graphic"].single || '')) : '')
|
|
2565
|
+
_ch405 = applyTextCase(_v410, "capitalize-first")
|
|
2566
|
+
}
|
|
2567
|
+
else if ((item.type === "interview" || item.type === "personal_communication")) {
|
|
2568
|
+
let _ch411 = ''
|
|
2569
|
+
if (!((item.archive != null && item.archive !== '')) && !((item["archive-place"] != null && item["archive-place"] !== '')) && !((item["container-title"] != null && item["container-title"] !== '')) && !((item.DOI != null && item.DOI !== '')) && !((item.number != null && item.number !== '')) && !((item.publisher != null && item.publisher !== '')) && !((item.references != null && item.references !== '')) && !((item.URL != null && item.URL !== ''))) {
|
|
2570
|
+
const _v412 = (T["personal-communication"] != null ? (typeof T["personal-communication"] === 'string' ? T["personal-communication"] : (T["personal-communication"].single || '')) : '')
|
|
2571
|
+
_ch411 = applyTextCase(_v412, "capitalize-first")
|
|
2572
|
+
}
|
|
2573
|
+
else if (item.type === "interview") {
|
|
2574
|
+
const _v413 = (T["interview"] != null ? (typeof T["interview"] === 'string' ? T["interview"] : (T["interview"].single || '')) : '')
|
|
2575
|
+
_ch411 = applyTextCase(_v413, "capitalize-first")
|
|
2576
|
+
}
|
|
2577
|
+
else if (item.type === "personal_communication") {
|
|
2578
|
+
const _v414 = (T["letter"] != null ? (typeof T["letter"] === 'string' ? T["letter"] : (T["letter"].single || '')) : '')
|
|
2579
|
+
_ch411 = applyTextCase(_v414, "capitalize-first")
|
|
2580
|
+
}
|
|
2581
|
+
_ch405 = _ch411
|
|
2582
|
+
}
|
|
2583
|
+
else if (item.type === "manuscript") {
|
|
2584
|
+
let _ch415 = ''
|
|
2585
|
+
if (!((item.archive != null && item.archive !== '')) && !((item["archive-place"] != null && item["archive-place"] !== '')) && !((item["container-title"] != null && item["container-title"] !== '')) && !((item.DOI != null && item.DOI !== '')) && !((item.number != null && item.number !== '')) && !((item.publisher != null && item.publisher !== '')) && !((item.references != null && item.references !== '')) && !((item.URL != null && item.URL !== ''))) {
|
|
2586
|
+
const _v416 = (T["manuscript"] != null ? (typeof T["manuscript"] === 'string' ? T["manuscript"] : (T["manuscript"].single || '')) : '')
|
|
2587
|
+
_ch415 = applyTextCase(_v416, "capitalize-first")
|
|
2588
|
+
}
|
|
2589
|
+
_ch405 = _ch415
|
|
2590
|
+
}
|
|
2591
|
+
else if (item.type === "map") {
|
|
2592
|
+
const _v417 = (T["map"] != null ? (typeof T["map"] === 'string' ? T["map"] : (T["map"].single || '')) : '')
|
|
2593
|
+
_ch405 = applyTextCase(_v417, "capitalize-first")
|
|
2594
|
+
}
|
|
2595
|
+
else if (item.type === "motion_picture") {
|
|
2596
|
+
const _v418 = (T["motion_picture"] != null ? (typeof T["motion_picture"] === 'string' ? T["motion_picture"] : (T["motion_picture"].single || '')) : '')
|
|
2597
|
+
_ch405 = applyTextCase(_v418, "capitalize-first")
|
|
2598
|
+
}
|
|
2599
|
+
else if ((item.type === "periodical" && (item["container-title"] != null && item["container-title"] !== '') && (item["supplement-number"] != null && item["supplement-number"] !== ''))) {
|
|
2600
|
+
const _v419 = (T["supplement"] != null ? (typeof T["supplement"] === 'string' ? T["supplement"] : (T["supplement"].single || '')) : '')
|
|
2601
|
+
_ch405 = applyTextCase(_v419, "capitalize-first")
|
|
2602
|
+
}
|
|
2603
|
+
else if ((item.type === "periodical" && (item["container-title"] != null && item["container-title"] !== '') && (item.title != null && item.title !== ''))) {
|
|
2604
|
+
const _v420 = (T["special-issue"] != null ? (typeof T["special-issue"] === 'string' ? T["special-issue"] : (T["special-issue"].single || '')) : '')
|
|
2605
|
+
_ch405 = applyTextCase(_v420, "capitalize-first")
|
|
2606
|
+
}
|
|
2607
|
+
else if (item.type === "song") {
|
|
2608
|
+
const _v421 = (T["song"] != null ? (typeof T["song"] === 'string' ? T["song"] : (T["song"].single || '')) : '')
|
|
2609
|
+
_ch405 = applyTextCase(_v421, "capitalize-first")
|
|
2610
|
+
}
|
|
2611
|
+
else if (item.type === "software") {
|
|
2612
|
+
const _v422 = (T["software"] != null ? (typeof T["software"] === 'string' ? T["software"] : (T["software"].single || '')) : '')
|
|
2613
|
+
_ch405 = applyTextCase(_v422, "capitalize-first")
|
|
2614
|
+
}
|
|
2615
|
+
else if (item.type === "post") {
|
|
2616
|
+
const _v423 = (T["post"] != null ? (typeof T["post"] === 'string' ? T["post"] : (T["post"].single || '')) : '')
|
|
2617
|
+
_ch405 = applyTextCase(_v423, "capitalize-first")
|
|
2618
|
+
}
|
|
2619
|
+
else if (item.type === "review") {
|
|
2620
|
+
const _v424 = (T["review"] != null ? (typeof T["review"] === 'string' ? T["review"] : (T["review"].single || '')) : '')
|
|
2621
|
+
_ch405 = applyTextCase(_v424, "capitalize-first")
|
|
2622
|
+
}
|
|
2623
|
+
else if (item.type === "review-book") {
|
|
2624
|
+
const _v425 = (T["review-book"] != null ? (typeof T["review-book"] === 'string' ? T["review-book"] : (T["review-book"].single || '')) : '')
|
|
2625
|
+
_ch405 = applyTextCase(_v425, "capitalize-first")
|
|
2626
|
+
}
|
|
2627
|
+
return _ch405
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
function macro_description_interview(item, ctx) {
|
|
2631
|
+
const _gp427 = []
|
|
2632
|
+
if (((item.interviewer != null && item.interviewer !== '') && (item.title != null && item.title !== ''))) {
|
|
2633
|
+
let _ch428 = ''
|
|
2634
|
+
if (!((item.number != null && item.number !== ''))) {
|
|
2635
|
+
const _v429 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2636
|
+
_ch428 = (applyTextCase(_v429, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v429, "capitalize-first") + '\uE022' : '')
|
|
2637
|
+
}
|
|
2638
|
+
_gp427.push(_ch428)
|
|
2639
|
+
const _v430 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2640
|
+
_gp427.push((applyTextCase(_v430, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v430, "capitalize-first") + '\uE022' : ''))
|
|
2641
|
+
}
|
|
2642
|
+
else if ((item.title != null && item.title !== '')) {
|
|
2643
|
+
const _v431 = macro_description_format(item, ctx)
|
|
2644
|
+
_gp427.push(_v431)
|
|
2645
|
+
}
|
|
2646
|
+
else if ((item.genre != null && item.genre !== '')) {
|
|
2647
|
+
const _gp433 = []
|
|
2648
|
+
const _v434 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2649
|
+
_gp433.push((applyTextCase(_v434, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v434, "capitalize-first") + '\uE022' : ''))
|
|
2650
|
+
if ((item.interviewer != null && item.interviewer !== '')) {
|
|
2651
|
+
const _v435 = (T["container-author:verb"] != null ? (typeof T["container-author:verb"] === 'string' ? T["container-author:verb"] : (T["container-author:verb"].single || '')) : '')
|
|
2652
|
+
_gp433.push(_v435)
|
|
2653
|
+
let _n436 = ''
|
|
2654
|
+
if (item.interviewer && item.interviewer.length) {
|
|
2655
|
+
_n436 = formatNames(item.interviewer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2656
|
+
if (_n436) _n436 = '\uE020interviewer\uE021' + _n436 + '\uE022'
|
|
2657
|
+
}
|
|
2658
|
+
_gp433.push(_n436)
|
|
2659
|
+
}
|
|
2660
|
+
const _g432 = _gp433.filter(v => v !== '').join(" ")
|
|
2661
|
+
_gp427.push(_g432)
|
|
2662
|
+
}
|
|
2663
|
+
else if ((item.interviewer != null && item.interviewer !== '')) {
|
|
2664
|
+
let _n437 = ''
|
|
2665
|
+
if (item.interviewer && item.interviewer.length) {
|
|
2666
|
+
_n437 = formatNames(item.interviewer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2667
|
+
if (_n437) _n437 = '\uE020interviewer\uE021' + _n437 + '\uE022'
|
|
2668
|
+
}
|
|
2669
|
+
_gp427.push(_n437)
|
|
2670
|
+
const _v438 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2671
|
+
_gp427.push((applyTextCase(_v438, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v438, "capitalize-first") + '\uE022' : ''))
|
|
2672
|
+
}
|
|
2673
|
+
else {
|
|
2674
|
+
const _v439 = macro_description_format(item, ctx)
|
|
2675
|
+
_gp427.push(_v439)
|
|
2676
|
+
}
|
|
2677
|
+
const _g426 = _gp427.filter(v => v !== '').join("; ")
|
|
2678
|
+
return _g426
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
function macro_description_interview_short(item, ctx) {
|
|
2682
|
+
let _n440 = ''
|
|
2683
|
+
if (item.interviewer && item.interviewer.length) {
|
|
2684
|
+
_n440 = formatNames(item.interviewer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
2685
|
+
if (_n440) _n440 = '\uE020interviewer\uE021' + _n440 + '\uE022'
|
|
2686
|
+
}
|
|
2687
|
+
if (!_n440) {
|
|
2688
|
+
const _v441 = macro_description_format_short(item, ctx)
|
|
2689
|
+
if (!_n440) _n440 = _v441
|
|
2690
|
+
}
|
|
2691
|
+
return _n440
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
function macro_description_letter(item, ctx) {
|
|
2695
|
+
let _ch442 = ''
|
|
2696
|
+
if ((item.recipient != null && item.recipient !== '')) {
|
|
2697
|
+
const _v447 = macro_description_format(item, ctx)
|
|
2698
|
+
let _n448 = ''
|
|
2699
|
+
if (item.recipient && item.recipient.length) {
|
|
2700
|
+
_n448 = formatNames(item.recipient, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
2701
|
+
if (_n448) _n448 = '\uE020recipient\uE021' + _n448 + '\uE022'
|
|
2702
|
+
}
|
|
2703
|
+
const _g445 = (!macro_description_format(item, ctx) && (item.recipient == null || item.recipient === '' || (Array.isArray(item.recipient) && item.recipient.length === 0))) ? '' : [_v447, _n448].filter(v => v !== '').join(" ")
|
|
2704
|
+
const _v449 = macro_description_medium(item, ctx)
|
|
2705
|
+
const _g443 = (!macro_description_format(item, ctx) && (item.recipient == null || item.recipient === '' || (Array.isArray(item.recipient) && item.recipient.length === 0)) && !macro_description_medium(item, ctx)) ? '' : [_g445, _v449].filter(v => v !== '').join("; ")
|
|
2706
|
+
_ch442 = _g443
|
|
2707
|
+
}
|
|
2708
|
+
else {
|
|
2709
|
+
const _v450 = macro_description_format(item, ctx)
|
|
2710
|
+
_ch442 = _v450
|
|
2711
|
+
}
|
|
2712
|
+
return _ch442
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
function macro_description_letter_short(item, ctx) {
|
|
2716
|
+
let _ch451 = ''
|
|
2717
|
+
if ((item.recipient != null && item.recipient !== '')) {
|
|
2718
|
+
const _v454 = macro_description_format_short(item, ctx)
|
|
2719
|
+
let _n455 = ''
|
|
2720
|
+
if (item.recipient && item.recipient.length) {
|
|
2721
|
+
_n455 = formatNames(item.recipient, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
2722
|
+
if (_n455) _n455 = '\uE020recipient\uE021' + _n455 + '\uE022'
|
|
2723
|
+
}
|
|
2724
|
+
const _g452 = (!macro_description_format_short(item, ctx) && (item.recipient == null || item.recipient === '' || (Array.isArray(item.recipient) && item.recipient.length === 0))) ? '' : [_v454, _n455].filter(v => v !== '').join(" ")
|
|
2725
|
+
_ch451 = _g452
|
|
2726
|
+
}
|
|
2727
|
+
else {
|
|
2728
|
+
const _v456 = macro_description_format_short(item, ctx)
|
|
2729
|
+
_ch451 = _v456
|
|
2730
|
+
}
|
|
2731
|
+
return _ch451
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
function macro_description_medium(item, ctx) {
|
|
2735
|
+
let _ch457 = ''
|
|
2736
|
+
if ((item.number != null && item.number !== '')) {
|
|
2737
|
+
_ch457 = [].filter(v => v !== '').join('')
|
|
2738
|
+
}
|
|
2739
|
+
else if ((item.genre != null && item.genre !== '')) {
|
|
2740
|
+
const _v458 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2741
|
+
_ch457 = (applyTextCase(_v458, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v458, "capitalize-first") + '\uE022' : '')
|
|
2742
|
+
}
|
|
2743
|
+
return _ch457
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
function macro_description_review(item, ctx) {
|
|
2747
|
+
const _gp464 = []
|
|
2748
|
+
if ((item["reviewed-genre"] != null && item["reviewed-genre"] !== '')) {
|
|
2749
|
+
const _v465 = (T["review-of"] != null ? (typeof T["review-of"] === 'string' ? T["review-of"] : (T["review-of"].single || '')) : '')
|
|
2750
|
+
_gp464.push(applyTextCase(_v465, "capitalize-first"))
|
|
2751
|
+
const _v466 = (item["reviewed-genre"] != null && item["reviewed-genre"] !== '' ? String(item["reviewed-genre"]) : '')
|
|
2752
|
+
_gp464.push((stripNocaseSpans(_v466) ? '\uE020reviewed-genre\uE021' + stripNocaseSpans(_v466) + '\uE022' : ''))
|
|
2753
|
+
}
|
|
2754
|
+
else if ((item.number != null && item.number !== '')) {
|
|
2755
|
+
const _v467 = (T["review-of:short"] != null ? (typeof T["review-of:short"] === 'string' ? T["review-of:short"] : (T["review-of:short"].single || '')) : '')
|
|
2756
|
+
_gp464.push(applyTextCase(_v467, "capitalize-first"))
|
|
2757
|
+
}
|
|
2758
|
+
else if ((item.genre != null && item.genre !== '')) {
|
|
2759
|
+
const _v468 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2760
|
+
_gp464.push((applyTextCase(_v468, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v468, "capitalize-first") + '\uE022' : ''))
|
|
2761
|
+
}
|
|
2762
|
+
else if ((item.medium != null && item.medium !== '')) {
|
|
2763
|
+
const _v469 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2764
|
+
_gp464.push((applyTextCase(_v469, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v469, "capitalize-first") + '\uE022' : ''))
|
|
2765
|
+
}
|
|
2766
|
+
else if (item.type === "review-book") {
|
|
2767
|
+
const _v470 = (T["review-of"] != null ? (typeof T["review-of"] === 'string' ? T["review-of"] : (T["review-of"].single || '')) : '')
|
|
2768
|
+
_gp464.push(applyTextCase(_v470, "capitalize-first"))
|
|
2769
|
+
const _v471 = (T["book"] != null ? (typeof T["book"] === 'string' ? T["book"] : (T["book"].single || '')) : '')
|
|
2770
|
+
_gp464.push(applyTextCase(_v471, "lowercase"))
|
|
2771
|
+
}
|
|
2772
|
+
else {
|
|
2773
|
+
const _v472 = (T["review-of:short"] != null ? (typeof T["review-of:short"] === 'string' ? T["review-of:short"] : (T["review-of:short"].single || '')) : '')
|
|
2774
|
+
_gp464.push(applyTextCase(_v472, "capitalize-first"))
|
|
2775
|
+
}
|
|
2776
|
+
const _v473 = macro_description_review_title(item, ctx)
|
|
2777
|
+
_gp464.push(_v473)
|
|
2778
|
+
const _g463 = _gp464.filter(v => v !== '').join(" ")
|
|
2779
|
+
let _n474 = ''
|
|
2780
|
+
if (item["reviewed-author"] && item["reviewed-author"].length) {
|
|
2781
|
+
_n474 = formatNames(item["reviewed-author"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2782
|
+
if (_n474) _n474 = '\uE020reviewed-author\uE021' + _n474 + '\uE022'
|
|
2783
|
+
}
|
|
2784
|
+
const _g461 = ((item["reviewed-genre"] == null || item["reviewed-genre"] === '') && (item.genre == null || item.genre === '') && (item.medium == null || item.medium === '') && !macro_description_review_title(item, ctx) && (item["reviewed-author"] == null || item["reviewed-author"] === '' || (Array.isArray(item["reviewed-author"]) && item["reviewed-author"].length === 0))) ? '' : [_g463, _n474].filter(v => v !== '').join(", ")
|
|
2785
|
+
const _v475 = macro_description_medium(item, ctx)
|
|
2786
|
+
const _g459 = ((item["reviewed-genre"] == null || item["reviewed-genre"] === '') && (item.genre == null || item.genre === '') && (item.medium == null || item.medium === '') && !macro_description_review_title(item, ctx) && (item["reviewed-author"] == null || item["reviewed-author"] === '' || (Array.isArray(item["reviewed-author"]) && item["reviewed-author"].length === 0)) && !macro_description_medium(item, ctx)) ? '' : [_g461, _v475].filter(v => v !== '').join("; ")
|
|
2787
|
+
return _g459
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
function macro_description_review_short(item, ctx) {
|
|
2791
|
+
const _v478 = (T["review-of:short"] != null ? (typeof T["review-of:short"] === 'string' ? T["review-of:short"] : (T["review-of:short"].single || '')) : '')
|
|
2792
|
+
const _v479 = macro_description_review_title_short(item, ctx)
|
|
2793
|
+
const _g476 = (!macro_description_review_title_short(item, ctx)) ? '' : [applyTextCase(_v478, "capitalize-first"), _v479].filter(v => v !== '').join(" ")
|
|
2794
|
+
return _g476
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
function macro_description_review_title(item, ctx) {
|
|
2798
|
+
let _ch480 = ''
|
|
2799
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
2800
|
+
const _v481 = (item["reviewed-title"] != null && item["reviewed-title"] !== '' ? String(item["reviewed-title"]) : '')
|
|
2801
|
+
_ch480 = ((stripNocaseSpans(_v481) ? '\uE000' + stripNocaseSpans(_v481) + '\uE001' : '') ? '\uE020reviewed-title\uE021' + (stripNocaseSpans(_v481) ? '\uE000' + stripNocaseSpans(_v481) + '\uE001' : '') + '\uE022' : '')
|
|
2802
|
+
}
|
|
2803
|
+
else {
|
|
2804
|
+
const _v482 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
2805
|
+
_ch480 = ((stripNocaseSpans(_v482) ? '\uE000' + stripNocaseSpans(_v482) + '\uE001' : '') ? '\uE020title\uE021' + (stripNocaseSpans(_v482) ? '\uE000' + stripNocaseSpans(_v482) + '\uE001' : '') + '\uE022' : '')
|
|
2806
|
+
}
|
|
2807
|
+
return _ch480
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
function macro_description_review_title_short(item, ctx) {
|
|
2811
|
+
let _ch483 = ''
|
|
2812
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
2813
|
+
const _v484 = (item["reviewed-title"] != null && item["reviewed-title"] !== '' ? String(item["reviewed-title"]) : '')
|
|
2814
|
+
_ch483 = ((applyTextCase(_v484, "title") ? '\uE000' + applyTextCase(_v484, "title") + '\uE001' : '') ? '\uE020reviewed-title\uE021' + (applyTextCase(_v484, "title") ? '\uE000' + applyTextCase(_v484, "title") + '\uE001' : '') + '\uE022' : '')
|
|
2815
|
+
}
|
|
2816
|
+
else {
|
|
2817
|
+
const _v485 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
2818
|
+
_ch483 = ((applyTextCase(_v485, "title") ? '\uE000' + applyTextCase(_v485, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v485, "title") ? '\uE000' + applyTextCase(_v485, "title") + '\uE001' : '') + '\uE022' : '')
|
|
2819
|
+
}
|
|
2820
|
+
return _ch483
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
function macro_description_serial(item, ctx) {
|
|
2824
|
+
const _gp487 = []
|
|
2825
|
+
const _v488 = macro_description_format(item, ctx)
|
|
2826
|
+
_gp487.push(_v488)
|
|
2827
|
+
if (!((item.title != null && item.title !== ''))) {
|
|
2828
|
+
const _v489 = (item.section != null && item.section !== '' ? String(item.section) : '')
|
|
2829
|
+
_gp487.push((stripNocaseSpans(_v489) ? '\uE020section\uE021' + stripNocaseSpans(_v489) + '\uE022' : ''))
|
|
2830
|
+
}
|
|
2831
|
+
const _g486 = _gp487.filter(v => v !== '').join("; ")
|
|
2832
|
+
return _g486
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
function macro_description_serial_short(item, ctx) {
|
|
2836
|
+
let _ch490 = ''
|
|
2837
|
+
if ((item.title != null && item.title !== '')) {
|
|
2838
|
+
_ch490 = [].filter(v => v !== '').join('')
|
|
2839
|
+
}
|
|
2840
|
+
else if ((item.section != null && item.section !== '')) {
|
|
2841
|
+
const _v491 = (item.section != null && item.section !== '' ? String(item.section) : '')
|
|
2842
|
+
_ch490 = (applyTextCase(_v491, "capitalize-first") ? '\uE020section\uE021' + applyTextCase(_v491, "capitalize-first") + '\uE022' : '')
|
|
2843
|
+
}
|
|
2844
|
+
else {
|
|
2845
|
+
const _v492 = macro_description_format_short(item, ctx)
|
|
2846
|
+
_ch490 = _v492
|
|
2847
|
+
}
|
|
2848
|
+
return _ch490
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
function macro_description_song(item, ctx) {
|
|
2852
|
+
const _gp496 = []
|
|
2853
|
+
if (((item.genre != null && item.genre !== '') || (item.medium != null && item.medium !== ''))) {
|
|
2854
|
+
let _ch497 = ''
|
|
2855
|
+
if (!((item.number != null && item.number !== ''))) {
|
|
2856
|
+
const _v498 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2857
|
+
_ch497 = (applyTextCase(_v498, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v498, "capitalize-first") + '\uE022' : '')
|
|
2858
|
+
}
|
|
2859
|
+
_gp496.push(_ch497)
|
|
2860
|
+
const _v499 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2861
|
+
_gp496.push((applyTextCase(_v499, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v499, "capitalize-first") + '\uE022' : ''))
|
|
2862
|
+
const _v500 = (T["performer:verb"] != null ? (typeof T["performer:verb"] === 'string' ? T["performer:verb"] : (T["performer:verb"].single || '')) : '')
|
|
2863
|
+
_gp496.push(_v500)
|
|
2864
|
+
}
|
|
2865
|
+
else {
|
|
2866
|
+
const _v501 = (T["performer:verb"] != null ? (typeof T["performer:verb"] === 'string' ? T["performer:verb"] : (T["performer:verb"].single || '')) : '')
|
|
2867
|
+
_gp496.push(applyTextCase(_v501, "capitalize-first"))
|
|
2868
|
+
}
|
|
2869
|
+
let _n502 = ''
|
|
2870
|
+
if (item.author && item.author.length) {
|
|
2871
|
+
_n502 = formatNames(item.author, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2872
|
+
if (_n502) _n502 = '\uE020author\uE021' + _n502 + '\uE022'
|
|
2873
|
+
}
|
|
2874
|
+
if (!_n502) {
|
|
2875
|
+
let _n503 = ''
|
|
2876
|
+
if (item.performer && item.performer.length) {
|
|
2877
|
+
_n503 = formatNames(item.performer, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2878
|
+
if (_n503) _n503 = '\uE020performer\uE021' + _n503 + '\uE022'
|
|
2879
|
+
}
|
|
2880
|
+
if (!_n502) _n502 = _n503
|
|
2881
|
+
}
|
|
2882
|
+
_gp496.push(_n502)
|
|
2883
|
+
const _g495 = _gp496.filter(v => v !== '').join(" ")
|
|
2884
|
+
const _v504 = macro_description_medium(item, ctx)
|
|
2885
|
+
const _g493 = ((item.genre == null || item.genre === '') && (item.medium == null || item.medium === '') && (item.author == null || item.author === '' || (Array.isArray(item.author) && item.author.length === 0)) && !macro_description_medium(item, ctx)) ? '' : [_g495, _v504].filter(v => v !== '').join("; ")
|
|
2886
|
+
return _g493
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
function macro_description_thesis(item, ctx) {
|
|
2890
|
+
const _gp508 = []
|
|
2891
|
+
const _v509 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2892
|
+
_gp508.push((applyTextCase(_v509, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v509, "capitalize-first") + '\uE022' : ''))
|
|
2893
|
+
if (((item.archive != null && item.archive !== '') || (item.DOI != null && item.DOI !== '') || (item.URL != null && item.URL !== ''))) {
|
|
2894
|
+
const _v510 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
2895
|
+
_gp508.push((stripNocaseSpans(_v510) ? '\uE020publisher\uE021' + stripNocaseSpans(_v510) + '\uE022' : ''))
|
|
2896
|
+
}
|
|
2897
|
+
const _g507 = _gp508.filter(v => v !== '').join(", ")
|
|
2898
|
+
const _v511 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2899
|
+
const _g505 = ((item.genre == null || item.genre === '') && (item.publisher == null || item.publisher === '') && (item.medium == null || item.medium === '')) ? '' : [_g507, (applyTextCase(_v511, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v511, "capitalize-first") + '\uE022' : '')].filter(v => v !== '').join("; ")
|
|
2900
|
+
return _g505
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
function macro_source(item, ctx) {
|
|
2904
|
+
const _gp513 = []
|
|
2905
|
+
if ((item.type === "post" || item.type === "webpage")) {
|
|
2906
|
+
}
|
|
2907
|
+
else if ((item.type === "article-journal" || item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "periodical" || item.type === "post-weblog" || item.type === "review" || item.type === "review-book")) {
|
|
2908
|
+
const _v514 = macro_source_serial(item, ctx)
|
|
2909
|
+
_gp513.push(_v514)
|
|
2910
|
+
}
|
|
2911
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== ''))) {
|
|
2912
|
+
const _v515 = macro_source_monographic(item, ctx)
|
|
2913
|
+
_gp513.push(_v515)
|
|
2914
|
+
}
|
|
2915
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
2916
|
+
const _v516 = macro_source_serial(item, ctx)
|
|
2917
|
+
_gp513.push(_v516)
|
|
2918
|
+
}
|
|
2919
|
+
else {
|
|
2920
|
+
const _v517 = macro_source_monographic(item, ctx)
|
|
2921
|
+
_gp513.push(_v517)
|
|
2922
|
+
}
|
|
2923
|
+
const _v518 = macro_source_publisher(item, ctx)
|
|
2924
|
+
_gp513.push(_v518)
|
|
2925
|
+
const _v519 = macro_source_archive(item, ctx)
|
|
2926
|
+
_gp513.push(_v519)
|
|
2927
|
+
const _v520 = macro_source_location(item, ctx)
|
|
2928
|
+
_gp513.push(_v520)
|
|
2929
|
+
const _v521 = macro_source_website(item, ctx)
|
|
2930
|
+
_gp513.push(_v521)
|
|
2931
|
+
const _g512 = _gp513.filter(v => v !== '').join(". ")
|
|
2932
|
+
return _g512
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
function macro_source_serial(item, ctx) {
|
|
2936
|
+
const _gp523 = []
|
|
2937
|
+
const _gp525 = []
|
|
2938
|
+
const _v528 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
2939
|
+
const _v529 = (item["collection-title"] != null && item["collection-title"] !== '' ? String(item["collection-title"]) : '')
|
|
2940
|
+
const _g526 = ((item["container-title"] == null || item["container-title"] === '') && (item["collection-title"] == null || item["collection-title"] === '')) ? '' : [(applyTextCase(_v528, "title") ? '\uE020container-title\uE021' + applyTextCase(_v528, "title") + '\uE022' : ''), (applyTextCase(_v529, "title") ? '\uE020collection-title\uE021' + applyTextCase(_v529, "title") + '\uE022' : '')].filter(v => v !== '').join(", ")
|
|
2941
|
+
_gp525.push((_g526 ? '\uE000' + _g526 + '\uE001' : ''))
|
|
2942
|
+
const _v532 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
2943
|
+
const _v535 = (item.issue != null && item.issue !== '' ? String(item.issue) : '')
|
|
2944
|
+
const _v536 = macro_label_supplement_number(item, ctx)
|
|
2945
|
+
const _g533 = ((item.issue == null || item.issue === '') && !macro_label_supplement_number(item, ctx)) ? '' : [(stripNocaseSpans(_v535) ? '\uE020issue\uE021' + stripNocaseSpans(_v535) + '\uE022' : ''), _v536].filter(v => v !== '').join(", ")
|
|
2946
|
+
const _g530 = ((item.volume == null || item.volume === '') && (item.issue == null || item.issue === '') && !macro_label_supplement_number(item, ctx)) ? '' : [((stripNocaseSpans(_v532) ? '\uE000' + stripNocaseSpans(_v532) + '\uE001' : '') ? '\uE020volume\uE021' + (stripNocaseSpans(_v532) ? '\uE000' + stripNocaseSpans(_v532) + '\uE001' : '') + '\uE022' : ''), (_g533 ? "(" + _g533 + ")" : '')].filter(v => v !== '').join('')
|
|
2947
|
+
_gp525.push(_g530)
|
|
2948
|
+
if ((item.number != null && item.number !== '')) {
|
|
2949
|
+
const _v537 = macro_label_number_article(item, ctx)
|
|
2950
|
+
_gp525.push(_v537)
|
|
2951
|
+
}
|
|
2952
|
+
else {
|
|
2953
|
+
const _v538 = (item.page != null && item.page !== '' ? pageRange(stripNocaseSpans(String(item.page)), "expanded") : '')
|
|
2954
|
+
_gp525.push((stripNocaseSpans(_v538) ? '\uE020page\uE021' + stripNocaseSpans(_v538) + '\uE022' : ''))
|
|
2955
|
+
}
|
|
2956
|
+
const _g524 = _gp525.filter(v => v !== '').join(", ")
|
|
2957
|
+
_gp523.push(_g524)
|
|
2958
|
+
if (((item["collection-title"] != null && item["collection-title"] !== '') || (item.issue != null && item.issue !== '') || (item.number != null && item.number !== '') || (item.page != null && item.page !== '') || (item["supplement-number"] != null && item["supplement-number"] !== '') || (item.volume != null && item.volume !== ''))) {
|
|
2959
|
+
}
|
|
2960
|
+
else if (((item.issued != null && item.issued !== '') && (item.status != null && item.status !== ''))) {
|
|
2961
|
+
const _v539 = (item.status != null && item.status !== '' ? String(item.status) : '')
|
|
2962
|
+
_gp523.push((applyTextCase(_v539, "capitalize-first") ? '\uE020status\uE021' + applyTextCase(_v539, "capitalize-first") + '\uE022' : ''))
|
|
2963
|
+
}
|
|
2964
|
+
const _g522 = _gp523.filter(v => v !== '').join(". ")
|
|
2965
|
+
return _g522
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
function macro_source_monographic(item, ctx) {
|
|
2969
|
+
let _ch540 = ''
|
|
2970
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
2971
|
+
const _gp542 = []
|
|
2972
|
+
if (item.type === "song") {
|
|
2973
|
+
const _v543 = (T["on"] != null ? (typeof T["on"] === 'string' ? T["on"] : (T["on"].single || '')) : '')
|
|
2974
|
+
_gp542.push(applyTextCase(_v543, "capitalize-first"))
|
|
2975
|
+
}
|
|
2976
|
+
else {
|
|
2977
|
+
const _v544 = (T["in"] != null ? (typeof T["in"] === 'string' ? T["in"] : (T["in"].single || '')) : '')
|
|
2978
|
+
_gp542.push(applyTextCase(_v544, "capitalize-first"))
|
|
2979
|
+
}
|
|
2980
|
+
const _v547 = macro_source_monographic_author(item, ctx)
|
|
2981
|
+
const _v548 = macro_source_monographic_title(item, ctx)
|
|
2982
|
+
const _g545 = (!macro_source_monographic_author(item, ctx) && !macro_source_monographic_title(item, ctx)) ? '' : [_v547, _v548].filter(v => v !== '').join(", ")
|
|
2983
|
+
_gp542.push(_g545)
|
|
2984
|
+
const _v549 = macro_source_monographic_identifier(item, ctx)
|
|
2985
|
+
_gp542.push(_v549)
|
|
2986
|
+
const _v550 = macro_source_monographic_description(item, ctx)
|
|
2987
|
+
_gp542.push(_v550)
|
|
2988
|
+
const _g541 = _gp542.filter(v => v !== '').join(" ")
|
|
2989
|
+
_ch540 = _g541
|
|
2990
|
+
}
|
|
2991
|
+
return _ch540
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
function macro_source_monographic_author(item, ctx) {
|
|
2995
|
+
let _n551 = ''
|
|
2996
|
+
if (item["container-author"] && item["container-author"].length) {
|
|
2997
|
+
_n551 = formatNames(item["container-author"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
2998
|
+
if (_n551) _n551 = '\uE020container-author\uE021' + _n551 + '\uE022'
|
|
2999
|
+
}
|
|
3000
|
+
if (!_n551) {
|
|
3001
|
+
let _n552 = ''
|
|
3002
|
+
if (item["executive-producer"] && item["executive-producer"].length) {
|
|
3003
|
+
_n552 = formatNames(item["executive-producer"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
3004
|
+
if (_n552) _n552 = '\uE020executive-producer\uE021' + _n552 + '\uE022'
|
|
3005
|
+
}
|
|
3006
|
+
if (!_n551) _n551 = _n552
|
|
3007
|
+
let _n553 = ''
|
|
3008
|
+
if (item["series-creator"] && item["series-creator"].length) {
|
|
3009
|
+
_n553 = formatNames(item["series-creator"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
3010
|
+
if (_n553) _n553 = '\uE020series-creator\uE021' + _n553 + '\uE022'
|
|
3011
|
+
}
|
|
3012
|
+
if (!_n551) _n551 = _n553
|
|
3013
|
+
let _n554 = ''
|
|
3014
|
+
if (item["editor-translator"] && item["editor-translator"].length) {
|
|
3015
|
+
_n554 = formatNames(item["editor-translator"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
3016
|
+
if (_n554) _n554 = '\uE020editor-translator\uE021' + _n554 + '\uE022'
|
|
3017
|
+
}
|
|
3018
|
+
if (!_n551) _n551 = _n554
|
|
3019
|
+
let _n555 = ''
|
|
3020
|
+
if (item.editor && item.editor.length) {
|
|
3021
|
+
_n555 = formatNames(item.editor, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
3022
|
+
if (_n555) _n555 = '\uE020editor\uE021' + _n555 + '\uE022'
|
|
3023
|
+
}
|
|
3024
|
+
if (!_n551) _n551 = _n555
|
|
3025
|
+
let _n556 = ''
|
|
3026
|
+
if (item["editorial-director"] && item["editorial-director"].length) {
|
|
3027
|
+
_n556 = formatNames(item["editorial-director"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
3028
|
+
if (_n556) _n556 = '\uE020editorial-director\uE021' + _n556 + '\uE022'
|
|
3029
|
+
}
|
|
3030
|
+
if (!_n551) _n551 = _n556
|
|
3031
|
+
let _n557 = ''
|
|
3032
|
+
if (item.compiler && item.compiler.length) {
|
|
3033
|
+
_n557 = formatNames(item.compiler, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
3034
|
+
if (_n557) _n557 = '\uE020compiler\uE021' + _n557 + '\uE022'
|
|
3035
|
+
}
|
|
3036
|
+
if (!_n551) _n551 = _n557
|
|
3037
|
+
let _ch558 = ''
|
|
3038
|
+
if ((item.type === "event" || item.type === "performance" || item.type === "speech")) {
|
|
3039
|
+
let _n559 = ''
|
|
3040
|
+
if (item.chair && item.chair.length) {
|
|
3041
|
+
_n559 = formatNames(item.chair, _nameConfig(ctx, {}))
|
|
3042
|
+
if (_n559) _n559 = '\uE020chair\uE021' + _n559 + '\uE022'
|
|
3043
|
+
}
|
|
3044
|
+
let _n560 = ''
|
|
3045
|
+
if (item.organizer && item.organizer.length) {
|
|
3046
|
+
_n560 = formatNames(item.organizer, _nameConfig(ctx, {}))
|
|
3047
|
+
if (_n560) _n560 = '\uE020organizer\uE021' + _n560 + '\uE022'
|
|
3048
|
+
}
|
|
3049
|
+
_ch558 = [_n559, _n560].filter(v => v !== '').join('')
|
|
3050
|
+
}
|
|
3051
|
+
if (!_n551) _n551 = _ch558
|
|
3052
|
+
let _n561 = ''
|
|
3053
|
+
if (item.curator && item.curator.length) {
|
|
3054
|
+
_n561 = formatNames(item.curator, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
3055
|
+
if (_n561) _n561 = '\uE020curator\uE021' + _n561 + '\uE022'
|
|
3056
|
+
}
|
|
3057
|
+
if (!_n551) _n551 = _n561
|
|
3058
|
+
let _n562 = ''
|
|
3059
|
+
if (item["collection-editor"] && item["collection-editor"].length) {
|
|
3060
|
+
_n562 = formatNames(item["collection-editor"], _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"sortSeparator":", "}))
|
|
3061
|
+
if (_n562) _n562 = '\uE020collection-editor\uE021' + _n562 + '\uE022'
|
|
3062
|
+
}
|
|
3063
|
+
if (!_n551) _n551 = _n562
|
|
3064
|
+
}
|
|
3065
|
+
return _n551
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
function macro_source_monographic_title(item, ctx) {
|
|
3069
|
+
const _v565 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
3070
|
+
const _v566 = macro_title_volume(item, ctx)
|
|
3071
|
+
const _g563 = ((item["container-title"] == null || item["container-title"] === '') && !macro_title_volume(item, ctx)) ? '' : [(stripNocaseSpans(_v565) ? '\uE020container-title\uE021' + stripNocaseSpans(_v565) + '\uE022' : ''), _v566].filter(v => v !== '').join(": ")
|
|
3072
|
+
return (_g563 ? '\uE000' + _g563 + '\uE001' : '')
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
function macro_source_monographic_identifier(item, ctx) {
|
|
3076
|
+
let _ch567 = ''
|
|
3077
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
3078
|
+
const _gp569 = []
|
|
3079
|
+
if (!(item.type === "broadcast") && !(item.type === "graphic") && !(item.type === "map") && !(item.type === "motion_picture")) {
|
|
3080
|
+
const _v570 = macro_identifier_number(item, ctx)
|
|
3081
|
+
_gp569.push(_v570)
|
|
3082
|
+
}
|
|
3083
|
+
const _v571 = macro_identifier_monographic(item, ctx)
|
|
3084
|
+
_gp569.push(_v571)
|
|
3085
|
+
const _g568 = _gp569.filter(v => v !== '').join("; ")
|
|
3086
|
+
_ch567 = (_g568 ? "(" + _g568 + ")" : '')
|
|
3087
|
+
}
|
|
3088
|
+
return _ch567
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
function macro_source_monographic_description(item, ctx) {
|
|
3092
|
+
const _gp573 = []
|
|
3093
|
+
if ((item.type === "document" || item.type === "report" || item.type === "software" || item.type === "standard")) {
|
|
3094
|
+
const _v574 = macro_description_format(item, ctx)
|
|
3095
|
+
_gp573.push(_v574)
|
|
3096
|
+
}
|
|
3097
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== '') || (item.issue != null && item.issue !== '') || (item.page != null && item.page !== '') || (item["supplement-number"] != null && item["supplement-number"] !== '') || (item.volume != null && item.volume !== ''))) {
|
|
3098
|
+
}
|
|
3099
|
+
else if ((item.type === "event" || item.type === "paper-conference" || item.type === "performance" || item.type === "speech")) {
|
|
3100
|
+
const _v575 = macro_description_format(item, ctx)
|
|
3101
|
+
_gp573.push(_v575)
|
|
3102
|
+
}
|
|
3103
|
+
const _g572 = _gp573.filter(v => v !== '').join('')
|
|
3104
|
+
return (_g572 ? "[" + _g572 + "]" : '')
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
function macro_source_publisher(item, ctx) {
|
|
3108
|
+
let _ch576 = ''
|
|
3109
|
+
if (item.type === "thesis") {
|
|
3110
|
+
let _ch577 = ''
|
|
3111
|
+
if (!((item.archive != null && item.archive !== '')) && !((item.DOI != null && item.DOI !== '')) && !((item.URL != null && item.URL !== ''))) {
|
|
3112
|
+
const _v578 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
3113
|
+
_ch577 = (stripNocaseSpans(_v578) ? '\uE020publisher\uE021' + stripNocaseSpans(_v578) + '\uE022' : '')
|
|
3114
|
+
}
|
|
3115
|
+
_ch576 = _ch577
|
|
3116
|
+
}
|
|
3117
|
+
else if ((item.type === "article-journal" || item.type === "article-magazine" || item.type === "article-newspaper" || item.type === "periodical" || item.type === "post-weblog" || item.type === "review" || item.type === "review-book")) {
|
|
3118
|
+
_ch576 = [].filter(v => v !== '').join('')
|
|
3119
|
+
}
|
|
3120
|
+
else if (((item["collection-editor"] != null && item["collection-editor"] !== '') || (item.compiler != null && item.compiler !== '') || (item.editor != null && item.editor !== '') || (item["editorial-director"] != null && item["editorial-director"] !== ''))) {
|
|
3121
|
+
const _v579 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
3122
|
+
_ch576 = (stripNocaseSpans(_v579) ? '\uE020publisher\uE021' + stripNocaseSpans(_v579) + '\uE022' : '')
|
|
3123
|
+
}
|
|
3124
|
+
else if (item.type === "interview") {
|
|
3125
|
+
const _v580 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
3126
|
+
_ch576 = (stripNocaseSpans(_v580) ? '\uE020publisher\uE021' + stripNocaseSpans(_v580) + '\uE022' : '')
|
|
3127
|
+
}
|
|
3128
|
+
else if (item.type === "paper-conference") {
|
|
3129
|
+
_ch576 = [].filter(v => v !== '').join('')
|
|
3130
|
+
}
|
|
3131
|
+
else {
|
|
3132
|
+
const _v581 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
3133
|
+
_ch576 = (stripNocaseSpans(_v581) ? '\uE020publisher\uE021' + stripNocaseSpans(_v581) + '\uE022' : '')
|
|
3134
|
+
}
|
|
3135
|
+
return _ch576
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
function macro_source_archive(item, ctx) {
|
|
3139
|
+
const _gp583 = []
|
|
3140
|
+
if ((item.archive_collection != null && item.archive_collection !== '')) {
|
|
3141
|
+
const _v586 = (item.archive_collection != null && item.archive_collection !== '' ? String(item.archive_collection) : '')
|
|
3142
|
+
const _v587 = (item.archive_location != null && item.archive_location !== '' ? String(item.archive_location) : '')
|
|
3143
|
+
const _g584 = ((item.archive_collection == null || item.archive_collection === '') && (item.archive_location == null || item.archive_location === '')) ? '' : [(stripNocaseSpans(_v586) ? '\uE020archive_collection\uE021' + stripNocaseSpans(_v586) + '\uE022' : ''), ((stripNocaseSpans(_v587) ? "(" + stripNocaseSpans(_v587) + ")" : '') ? '\uE020archive_location\uE021' + (stripNocaseSpans(_v587) ? "(" + stripNocaseSpans(_v587) + ")" : '') + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3144
|
+
_gp583.push(_g584)
|
|
3145
|
+
const _v588 = (item.archive != null && item.archive !== '' ? String(item.archive) : '')
|
|
3146
|
+
_gp583.push((stripNocaseSpans(_v588) ? '\uE020archive\uE021' + stripNocaseSpans(_v588) + '\uE022' : ''))
|
|
3147
|
+
const _v589 = (item["archive-place"] != null && item["archive-place"] !== '' ? String(item["archive-place"]) : '')
|
|
3148
|
+
_gp583.push((stripNocaseSpans(_v589) ? '\uE020archive-place\uE021' + stripNocaseSpans(_v589) + '\uE022' : ''))
|
|
3149
|
+
}
|
|
3150
|
+
else {
|
|
3151
|
+
const _v592 = (item.archive != null && item.archive !== '' ? String(item.archive) : '')
|
|
3152
|
+
const _v593 = (item.archive_location != null && item.archive_location !== '' ? String(item.archive_location) : '')
|
|
3153
|
+
const _g590 = ((item.archive == null || item.archive === '') && (item.archive_location == null || item.archive_location === '')) ? '' : [(stripNocaseSpans(_v592) ? '\uE020archive\uE021' + stripNocaseSpans(_v592) + '\uE022' : ''), ((stripNocaseSpans(_v593) ? "(" + stripNocaseSpans(_v593) + ")" : '') ? '\uE020archive_location\uE021' + (stripNocaseSpans(_v593) ? "(" + stripNocaseSpans(_v593) + ")" : '') + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3154
|
+
_gp583.push(_g590)
|
|
3155
|
+
const _v594 = (item["archive-place"] != null && item["archive-place"] !== '' ? String(item["archive-place"]) : '')
|
|
3156
|
+
_gp583.push((stripNocaseSpans(_v594) ? '\uE020archive-place\uE021' + stripNocaseSpans(_v594) + '\uE022' : ''))
|
|
3157
|
+
}
|
|
3158
|
+
const _g582 = _gp583.filter(v => v !== '').join(", ")
|
|
3159
|
+
return _g582
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
function macro_source_location(item, ctx) {
|
|
3163
|
+
let _ch595 = ''
|
|
3164
|
+
if (((item.event != null && item.event !== '') || (item["event-title"] != null && item["event-title"] !== ''))) {
|
|
3165
|
+
let _ch596 = ''
|
|
3166
|
+
if (item.type === "paper-conference") {
|
|
3167
|
+
let _ch597 = ''
|
|
3168
|
+
if (!((item["collection-editor"] != null && item["collection-editor"] !== '')) && !((item.compiler != null && item.compiler !== '')) && !((item.editor != null && item.editor !== '')) && !((item["editorial-director"] != null && item["editorial-director"] !== '')) && !((item.issue != null && item.issue !== '')) && !((item.page != null && item.page !== '')) && !((item["supplement-number"] != null && item["supplement-number"] !== '')) && !((item.volume != null && item.volume !== ''))) {
|
|
3169
|
+
const _v598 = macro_source_location_title_place_date(item, ctx)
|
|
3170
|
+
_ch597 = _v598
|
|
3171
|
+
}
|
|
3172
|
+
_ch596 = _ch597
|
|
3173
|
+
}
|
|
3174
|
+
else {
|
|
3175
|
+
const _v599 = macro_source_location_title_place_date(item, ctx)
|
|
3176
|
+
_ch596 = _v599
|
|
3177
|
+
}
|
|
3178
|
+
_ch595 = _ch596
|
|
3179
|
+
}
|
|
3180
|
+
return _ch595
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
function macro_source_location_title_place_date(item, ctx) {
|
|
3184
|
+
const _gp601 = []
|
|
3185
|
+
if ((item["event-title"] != null && item["event-title"] !== '')) {
|
|
3186
|
+
const _v602 = (item["event-title"] != null && item["event-title"] !== '' ? String(item["event-title"]) : '')
|
|
3187
|
+
_gp601.push((applyTextCase(_v602, "capitalize-first") ? '\uE020event-title\uE021' + applyTextCase(_v602, "capitalize-first") + '\uE022' : ''))
|
|
3188
|
+
}
|
|
3189
|
+
else {
|
|
3190
|
+
const _v603 = (item.event != null && item.event !== '' ? String(item.event) : '')
|
|
3191
|
+
_gp601.push((applyTextCase(_v603, "capitalize-first") ? '\uE020event\uE021' + applyTextCase(_v603, "capitalize-first") + '\uE022' : ''))
|
|
3192
|
+
}
|
|
3193
|
+
const _v604 = (item["event-place"] != null && item["event-place"] !== '' ? String(item["event-place"]) : '')
|
|
3194
|
+
_gp601.push((stripNocaseSpans(_v604) ? '\uE020event-place\uE021' + stripNocaseSpans(_v604) + '\uE022' : ''))
|
|
3195
|
+
const _v605 = macro_date_event_full(item, ctx)
|
|
3196
|
+
_gp601.push(_v605)
|
|
3197
|
+
const _g600 = _gp601.filter(v => v !== '').join(", ")
|
|
3198
|
+
return _g600
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
function macro_source_website(item, ctx) {
|
|
3202
|
+
let _ch606 = ''
|
|
3203
|
+
if ((item.type === "post" || item.type === "webpage")) {
|
|
3204
|
+
const _v607 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
3205
|
+
_ch606 = (applyTextCase(_v607, "title") ? '\uE020container-title\uE021' + applyTextCase(_v607, "title") + '\uE022' : '')
|
|
3206
|
+
}
|
|
3207
|
+
return _ch606
|
|
3208
|
+
}
|
|
3209
|
+
|
|
3210
|
+
function macro_source_DOI_URL(item, ctx) {
|
|
3211
|
+
let _ch608 = ''
|
|
3212
|
+
if ((item.DOI != null && item.DOI !== '')) {
|
|
3213
|
+
const _v609 = (item.DOI != null && item.DOI !== '' ? String(item.DOI) : '')
|
|
3214
|
+
_ch608 = ((stripNocaseSpans(_v609) ? "https://doi.org/" + stripNocaseSpans(_v609) : '') ? '\uE020DOI\uE021' + (stripNocaseSpans(_v609) ? "https://doi.org/" + stripNocaseSpans(_v609) : '') + '\uE022' : '')
|
|
3215
|
+
}
|
|
3216
|
+
else if ((item.URL != null && item.URL !== '')) {
|
|
3217
|
+
const _gp611 = []
|
|
3218
|
+
if (!((item.issued != null && item.issued !== '')) && !((item.status != null && item.status !== ''))) {
|
|
3219
|
+
const _v612 = (T["retrieved"] != null ? (typeof T["retrieved"] === 'string' ? T["retrieved"] : (T["retrieved"].single || '')) : '')
|
|
3220
|
+
_gp611.push(applyTextCase(_v612, "capitalize-first"))
|
|
3221
|
+
const _d615 = item.accessed ? formatDate(item.accessed, {"dateParts":[{"name":"month","form":null,"prefix":"","suffix":" ","rangeDelimiter":null},{"name":"day","form":null,"prefix":"","suffix":", ","rangeDelimiter":null},{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
3222
|
+
const _v616 = (T["from"] != null ? (typeof T["from"] === 'string' ? T["from"] : (T["from"].single || '')) : '')
|
|
3223
|
+
const _g613 = ((item.accessed == null || item.accessed === '')) ? '' : [(_d615 ? '\uE020accessed\uE021' + _d615 + '\uE022' : ''), _v616].filter(v => v !== '').join(", ")
|
|
3224
|
+
_gp611.push(_g613)
|
|
3225
|
+
}
|
|
3226
|
+
const _v617 = (item.URL != null && item.URL !== '' ? String(item.URL) : '')
|
|
3227
|
+
_gp611.push((stripNocaseSpans(_v617) ? '\uE020URL\uE021' + stripNocaseSpans(_v617) + '\uE022' : ''))
|
|
3228
|
+
const _g610 = _gp611.filter(v => v !== '').join(" ")
|
|
3229
|
+
_ch608 = _g610
|
|
3230
|
+
}
|
|
3231
|
+
return _ch608
|
|
3232
|
+
}
|
|
3233
|
+
|
|
3234
|
+
function macro_publication_history(item, ctx) {
|
|
3235
|
+
const _gp619 = []
|
|
3236
|
+
if (item.type === "patent") {
|
|
3237
|
+
const _v620 = (item.references != null && item.references !== '' ? String(item.references) : '')
|
|
3238
|
+
_gp619.push((stripNocaseSpans(_v620) ? '\uE020references\uE021' + stripNocaseSpans(_v620) + '\uE022' : ''))
|
|
3239
|
+
}
|
|
3240
|
+
else {
|
|
3241
|
+
let _ch621 = ''
|
|
3242
|
+
if (!((item.issued != null && item.issued !== ''))) {
|
|
3243
|
+
_ch621 = [].filter(v => v !== '').join('')
|
|
3244
|
+
}
|
|
3245
|
+
else if (((item["collection-title"] != null && item["collection-title"] !== '') || (item.issue != null && item.issue !== '') || (item.number != null && item.number !== '') || (item.page != null && item.page !== '') || (item["supplement-number"] != null && item["supplement-number"] !== '') || (item.volume != null && item.volume !== ''))) {
|
|
3246
|
+
const _v622 = (item.status != null && item.status !== '' ? String(item.status) : '')
|
|
3247
|
+
_ch621 = (applyTextCase(_v622, "capitalize-first") ? '\uE020status\uE021' + applyTextCase(_v622, "capitalize-first") + '\uE022' : '')
|
|
3248
|
+
}
|
|
3249
|
+
_gp619.push(_ch621)
|
|
3250
|
+
let _ch623 = ''
|
|
3251
|
+
if ((item.references != null && item.references !== '')) {
|
|
3252
|
+
const _v624 = (item.references != null && item.references !== '' ? String(item.references) : '')
|
|
3253
|
+
_ch623 = (stripNocaseSpans(_v624) ? '\uE020references\uE021' + stripNocaseSpans(_v624) + '\uE022' : '')
|
|
3254
|
+
}
|
|
3255
|
+
else {
|
|
3256
|
+
const _v627 = (T["original-work-published"] != null ? (typeof T["original-work-published"] === 'string' ? T["original-work-published"] : (T["original-work-published"].single || '')) : '')
|
|
3257
|
+
const _v632 = "as"
|
|
3258
|
+
const _v633 = (item["original-title"] != null && item["original-title"] !== '' ? String(item["original-title"]) : '')
|
|
3259
|
+
const _g630 = ((item["original-title"] == null || item["original-title"] === '')) ? '' : [_v632, ((stripNocaseSpans(_v633) ? '\uE000' + stripNocaseSpans(_v633) + '\uE001' : '') ? '\uE020original-title\uE021' + (stripNocaseSpans(_v633) ? '\uE000' + stripNocaseSpans(_v633) + '\uE001' : '') + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3260
|
+
const _v634 = macro_date_original_year(item, ctx)
|
|
3261
|
+
const _v635 = (item["original-publisher"] != null && item["original-publisher"] !== '' ? String(item["original-publisher"]) : '')
|
|
3262
|
+
const _g628 = ((item["original-title"] == null || item["original-title"] === '') && !macro_date_original_year(item, ctx) && (item["original-publisher"] == null || item["original-publisher"] === '')) ? '' : [_g630, _v634, (stripNocaseSpans(_v635) ? '\uE020original-publisher\uE021' + stripNocaseSpans(_v635) + '\uE022' : '')].filter(v => v !== '').join(", ")
|
|
3263
|
+
const _g625 = ((item["original-title"] == null || item["original-title"] === '') && !macro_date_original_year(item, ctx) && (item["original-publisher"] == null || item["original-publisher"] === '')) ? '' : [applyTextCase(_v627, "capitalize-first"), _g628].filter(v => v !== '').join(" ")
|
|
3264
|
+
_ch623 = _g625
|
|
3265
|
+
}
|
|
3266
|
+
_gp619.push(_ch623)
|
|
3267
|
+
}
|
|
3268
|
+
const _g618 = _gp619.filter(v => v !== '').join("; ")
|
|
3269
|
+
return (_g618 ? "(" + _g618 + ")" : '')
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
function macro_legal_reference(item, ctx) {
|
|
3273
|
+
const _gp637 = []
|
|
3274
|
+
if (item.type === "treaty") {
|
|
3275
|
+
const _v638 = macro_legal_title(item, ctx)
|
|
3276
|
+
_gp637.push(_v638)
|
|
3277
|
+
let _n639 = ''
|
|
3278
|
+
if (item.author && item.author.length) {
|
|
3279
|
+
_n639 = formatNames(item.author, _nameConfig(ctx, {"delimiter":"-","etAlMin":100,"etAlUseFirst":99,"etAlUseLast":false,"initialize":false,"sortSeparator":", ","form":"short"}))
|
|
3280
|
+
if (_n639) _n639 = '\uE020author\uE021' + _n639 + '\uE022'
|
|
3281
|
+
}
|
|
3282
|
+
_gp637.push(_n639)
|
|
3283
|
+
const _v640 = macro_legal_date(item, ctx)
|
|
3284
|
+
_gp637.push(_v640)
|
|
3285
|
+
const _v641 = macro_legal_source(item, ctx)
|
|
3286
|
+
_gp637.push(_v641)
|
|
3287
|
+
}
|
|
3288
|
+
else {
|
|
3289
|
+
const _v646 = macro_legal_title(item, ctx)
|
|
3290
|
+
const _v647 = macro_legal_source(item, ctx)
|
|
3291
|
+
const _g644 = (!macro_legal_title(item, ctx) && !macro_legal_source(item, ctx)) ? '' : [_v646, _v647].filter(v => v !== '').join(", ")
|
|
3292
|
+
const _v648 = macro_legal_date(item, ctx)
|
|
3293
|
+
const _v649 = macro_legal_identifier(item, ctx)
|
|
3294
|
+
const _g642 = (!macro_legal_title(item, ctx) && !macro_legal_source(item, ctx) && !macro_legal_date(item, ctx) && !macro_legal_identifier(item, ctx)) ? '' : [_g644, _v648, _v649].filter(v => v !== '').join(" ")
|
|
3295
|
+
_gp637.push(_g642)
|
|
3296
|
+
}
|
|
3297
|
+
const _gp651 = []
|
|
3298
|
+
if (((item.page != null && item.page !== '') && ctx.locator === "page")) {
|
|
3299
|
+
const _v652 = (T["at"] != null ? (typeof T["at"] === 'string' ? T["at"] : (T["at"].single || '')) : '')
|
|
3300
|
+
_gp651.push(_v652)
|
|
3301
|
+
}
|
|
3302
|
+
const _v653 = macro_label_locator(item, ctx)
|
|
3303
|
+
_gp651.push(_v653)
|
|
3304
|
+
const _g650 = _gp651.filter(v => v !== '').join(" ")
|
|
3305
|
+
_gp637.push(_g650)
|
|
3306
|
+
const _g636 = _gp637.filter(v => v !== '').join(", ")
|
|
3307
|
+
return _g636
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
function macro_legal_date(item, ctx) {
|
|
3311
|
+
let _ch654 = ''
|
|
3312
|
+
if (item.type === "treaty") {
|
|
3313
|
+
const _v655 = macro_date_issued_full(item, ctx)
|
|
3314
|
+
_ch654 = _v655
|
|
3315
|
+
}
|
|
3316
|
+
else if (item.type === "legal_case") {
|
|
3317
|
+
const _v656 = macro_legal_date_case(item, ctx)
|
|
3318
|
+
_ch654 = _v656
|
|
3319
|
+
}
|
|
3320
|
+
else if ((item.type === "bill" || item.type === "hearing" || item.type === "legislation" || item.type === "regulation")) {
|
|
3321
|
+
const _gp658 = []
|
|
3322
|
+
const _v661 = macro_date_original_year(item, ctx)
|
|
3323
|
+
const _v662 = (T["and:symbol"] != null ? (typeof T["and:symbol"] === 'string' ? T["and:symbol"] : (T["and:symbol"].single || '')) : '')
|
|
3324
|
+
const _g659 = (!macro_date_original_year(item, ctx)) ? '' : [_v661, _v662].filter(v => v !== '').join(" ")
|
|
3325
|
+
_gp658.push(_g659)
|
|
3326
|
+
if ((item.issued != null && item.issued !== '')) {
|
|
3327
|
+
const _v663 = macro_date_issued_year(item, ctx)
|
|
3328
|
+
_gp658.push(_v663)
|
|
3329
|
+
}
|
|
3330
|
+
else {
|
|
3331
|
+
const _d664 = item.submitted ? formatDate(item.submitted, {"dateParts":[{"name":"month","form":null,"prefix":"","suffix":" ","rangeDelimiter":null},{"name":"day","form":null,"prefix":"","suffix":", ","rangeDelimiter":null},{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
|
|
3332
|
+
_gp658.push((_d664 ? '\uE020submitted\uE021' + _d664 + '\uE022' : ''))
|
|
3333
|
+
}
|
|
3334
|
+
const _g657 = _gp658.filter(v => v !== '').join(" ")
|
|
3335
|
+
_ch654 = (_g657 ? "(" + _g657 + ")" : '')
|
|
3336
|
+
}
|
|
3337
|
+
return _ch654
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
function macro_legal_date_case(item, ctx) {
|
|
3341
|
+
const _gp666 = []
|
|
3342
|
+
const _v667 = (item.authority != null && item.authority !== '' ? String(item.authority) : '')
|
|
3343
|
+
_gp666.push((stripNocaseSpans(_v667) ? '\uE020authority\uE021' + stripNocaseSpans(_v667) + '\uE022' : ''))
|
|
3344
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
3345
|
+
const _v668 = macro_date_issued_year(item, ctx)
|
|
3346
|
+
_gp666.push(_v668)
|
|
3347
|
+
}
|
|
3348
|
+
else {
|
|
3349
|
+
const _v669 = macro_date_issued_full(item, ctx)
|
|
3350
|
+
_gp666.push(_v669)
|
|
3351
|
+
}
|
|
3352
|
+
const _g665 = _gp666.filter(v => v !== '').join(" ")
|
|
3353
|
+
return (_g665 ? "(" + _g665 + ")" : '')
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
function macro_legal_title(item, ctx) {
|
|
3357
|
+
let _ch670 = ''
|
|
3358
|
+
if ((item.type === "bill" || item.type === "legal_case" || item.type === "legislation" || item.type === "regulation" || item.type === "treaty")) {
|
|
3359
|
+
const _v671 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
3360
|
+
_ch670 = (applyTextCase(_v671, "title") ? '\uE020title\uE021' + applyTextCase(_v671, "title") + '\uE022' : '')
|
|
3361
|
+
}
|
|
3362
|
+
else if (item.type === "hearing") {
|
|
3363
|
+
const _v674 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
3364
|
+
const _v677 = (T["hearing"] != null ? (typeof T["hearing"] === 'string' ? T["hearing"] : (T["hearing"].single || '')) : '')
|
|
3365
|
+
const _v680 = (T["on"] != null ? (typeof T["on"] === 'string' ? T["on"] : (T["on"].single || '')) : '')
|
|
3366
|
+
const _v681 = (item.number != null && item.number !== '' ? String(item.number) : '')
|
|
3367
|
+
const _g678 = ((item.number == null || item.number === '')) ? '' : [_v680, (stripNocaseSpans(_v681) ? '\uE020number\uE021' + stripNocaseSpans(_v681) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3368
|
+
const _v684 = "before the"
|
|
3369
|
+
const _v685 = (item.section != null && item.section !== '' ? String(item.section) : '')
|
|
3370
|
+
const _g682 = ((item.section == null || item.section === '')) ? '' : [_v684, (stripNocaseSpans(_v685) ? '\uE020section\uE021' + stripNocaseSpans(_v685) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3371
|
+
const _g675 = ((item.number == null || item.number === '') && (item.section == null || item.section === '')) ? '' : [applyTextCase(_v677, "capitalize-first"), _g678, _g682].filter(v => v !== '').join(" ")
|
|
3372
|
+
const _g672 = ((item.title == null || item.title === '') && (item.number == null || item.number === '') && (item.section == null || item.section === '')) ? '' : [(applyTextCase(_v674, "capitalize-first") ? '\uE020title\uE021' + applyTextCase(_v674, "capitalize-first") + '\uE022' : ''), _g675].filter(v => v !== '').join(": ")
|
|
3373
|
+
_ch670 = (_g672 ? '\uE000' + _g672 + '\uE001' : '')
|
|
3374
|
+
}
|
|
3375
|
+
return _ch670
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
function macro_legal_identifier(item, ctx) {
|
|
3379
|
+
const _gp687 = []
|
|
3380
|
+
if (item.type === "hearing") {
|
|
3381
|
+
const _v688 = (T["hearing:verb"] != null ? (typeof T["hearing:verb"] === 'string' ? T["hearing:verb"] : (T["hearing:verb"].single || '')) : '')
|
|
3382
|
+
_gp687.push(_v688)
|
|
3383
|
+
let _n689 = ''
|
|
3384
|
+
if (item.author && item.author.length) {
|
|
3385
|
+
_n689 = formatNames(item.author, _nameConfig(ctx, {"and":"symbol","delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
3386
|
+
if (_n689) _n689 = '\uE020author\uE021' + _n689 + '\uE022'
|
|
3387
|
+
}
|
|
3388
|
+
_gp687.push(_n689)
|
|
3389
|
+
}
|
|
3390
|
+
else if ((item.type === "bill" || item.type === "legislation" || item.type === "regulation")) {
|
|
3391
|
+
const _v690 = (item.status != null && item.status !== '' ? String(item.status) : '')
|
|
3392
|
+
_gp687.push((stripNocaseSpans(_v690) ? '\uE020status\uE021' + stripNocaseSpans(_v690) + '\uE022' : ''))
|
|
3393
|
+
}
|
|
3394
|
+
const _g686 = _gp687.filter(v => v !== '').join(" ")
|
|
3395
|
+
return (_g686 ? "(" + _g686 + ")" : '')
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
function macro_legal_identifier_bill_report(item, ctx) {
|
|
3399
|
+
const _gp692 = []
|
|
3400
|
+
const _v693 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
3401
|
+
_gp692.push((stripNocaseSpans(_v693) ? '\uE020genre\uE021' + stripNocaseSpans(_v693) + '\uE022' : ''))
|
|
3402
|
+
if (((item.authority != null && item.authority !== '') || (item["chapter-number"] != null && item["chapter-number"] !== '') || (item["container-title"] != null && item["container-title"] !== ''))) {
|
|
3403
|
+
const _v694 = (item.number != null && item.number !== '' ? String(item.number) : '')
|
|
3404
|
+
_gp692.push((stripNocaseSpans(_v694) ? '\uE020number\uE021' + stripNocaseSpans(_v694) + '\uE022' : ''))
|
|
3405
|
+
}
|
|
3406
|
+
else {
|
|
3407
|
+
const _v695 = macro_label_number_capitalized(item, ctx)
|
|
3408
|
+
_gp692.push(_v695)
|
|
3409
|
+
}
|
|
3410
|
+
const _g691 = _gp692.filter(v => v !== '').join(" ")
|
|
3411
|
+
return _g691
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
function macro_legal_source(item, ctx) {
|
|
3415
|
+
let _ch696 = ''
|
|
3416
|
+
if (item.type === "bill") {
|
|
3417
|
+
const _v697 = macro_legal_source_bill(item, ctx)
|
|
3418
|
+
_ch696 = _v697
|
|
3419
|
+
}
|
|
3420
|
+
else if (item.type === "hearing") {
|
|
3421
|
+
const _v698 = macro_legal_source_hearing(item, ctx)
|
|
3422
|
+
_ch696 = _v698
|
|
3423
|
+
}
|
|
3424
|
+
else if (item.type === "legal_case") {
|
|
3425
|
+
const _v699 = macro_legal_source_case(item, ctx)
|
|
3426
|
+
_ch696 = _v699
|
|
3427
|
+
}
|
|
3428
|
+
else if (item.type === "legislation") {
|
|
3429
|
+
const _v700 = macro_legal_source_legislation(item, ctx)
|
|
3430
|
+
_ch696 = _v700
|
|
3431
|
+
}
|
|
3432
|
+
else if (item.type === "regulation") {
|
|
3433
|
+
const _v701 = macro_legal_source_regulation(item, ctx)
|
|
3434
|
+
_ch696 = _v701
|
|
3435
|
+
}
|
|
3436
|
+
else if (item.type === "treaty") {
|
|
3437
|
+
const _v702 = macro_legal_source_treaty(item, ctx)
|
|
3438
|
+
_ch696 = _v702
|
|
3439
|
+
}
|
|
3440
|
+
return _ch696
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
function macro_legal_source_bill(item, ctx) {
|
|
3444
|
+
const _v705 = macro_legal_identifier_bill_report(item, ctx)
|
|
3445
|
+
const _v708 = (item.authority != null && item.authority !== '' ? String(item.authority) : '')
|
|
3446
|
+
const _v709 = (item["chapter-number"] != null && item["chapter-number"] !== '' ? String(item["chapter-number"]) : '')
|
|
3447
|
+
const _g706 = ((item.authority == null || item.authority === '') && (item["chapter-number"] == null || item["chapter-number"] === '')) ? '' : [(stripNocaseSpans(_v708) ? '\uE020authority\uE021' + stripNocaseSpans(_v708) + '\uE022' : ''), (stripNocaseSpans(_v709) ? '\uE020chapter-number\uE021' + stripNocaseSpans(_v709) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3448
|
+
const _v712 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
3449
|
+
const _v713 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
3450
|
+
const _v714 = (item.page != null && item.page !== '' ? stripNocaseSpans(String(item.page)).split(/[-–,\s]/)[0] : '')
|
|
3451
|
+
const _g710 = ((item.volume == null || item.volume === '') && (item["container-title"] == null || item["container-title"] === '') && (item["page-first"] == null || item["page-first"] === '')) ? '' : [(stripNocaseSpans(_v712) ? '\uE020volume\uE021' + stripNocaseSpans(_v712) + '\uE022' : ''), (stripNocaseSpans(_v713) ? '\uE020container-title\uE021' + stripNocaseSpans(_v713) + '\uE022' : ''), (stripNocaseSpans(_v714) ? '\uE020page-first\uE021' + stripNocaseSpans(_v714) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3452
|
+
const _g703 = (!macro_legal_identifier_bill_report(item, ctx) && (item.authority == null || item.authority === '') && (item["chapter-number"] == null || item["chapter-number"] === '') && (item.volume == null || item.volume === '') && (item["container-title"] == null || item["container-title"] === '') && (item["page-first"] == null || item["page-first"] === '')) ? '' : [_v705, _g706, _g710].filter(v => v !== '').join(", ")
|
|
3453
|
+
return _g703
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
function macro_legal_source_case(item, ctx) {
|
|
3457
|
+
const _gp716 = []
|
|
3458
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
3459
|
+
const _v717 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
3460
|
+
_gp716.push((stripNocaseSpans(_v717) ? '\uE020volume\uE021' + stripNocaseSpans(_v717) + '\uE022' : ''))
|
|
3461
|
+
const _v718 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
3462
|
+
_gp716.push((stripNocaseSpans(_v718) ? '\uE020container-title\uE021' + stripNocaseSpans(_v718) + '\uE022' : ''))
|
|
3463
|
+
const _v719 = macro_label_section_symbol(item, ctx)
|
|
3464
|
+
_gp716.push(_v719)
|
|
3465
|
+
let _ch720 = ''
|
|
3466
|
+
if (((item.page != null && item.page !== '') || (item["page-first"] != null && item["page-first"] !== ''))) {
|
|
3467
|
+
const _v721 = (item.page != null && item.page !== '' ? stripNocaseSpans(String(item.page)).split(/[-–,\s]/)[0] : '')
|
|
3468
|
+
_ch720 = (stripNocaseSpans(_v721) ? '\uE020page-first\uE021' + stripNocaseSpans(_v721) + '\uE022' : '')
|
|
3469
|
+
}
|
|
3470
|
+
else {
|
|
3471
|
+
const _v722 = "___"
|
|
3472
|
+
_ch720 = _v722
|
|
3473
|
+
}
|
|
3474
|
+
_gp716.push(_ch720)
|
|
3475
|
+
}
|
|
3476
|
+
else {
|
|
3477
|
+
const _v723 = macro_label_number_capitalized(item, ctx)
|
|
3478
|
+
_gp716.push(_v723)
|
|
3479
|
+
}
|
|
3480
|
+
const _g715 = _gp716.filter(v => v !== '').join(" ")
|
|
3481
|
+
return _g715
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
function macro_legal_source_hearing(item, ctx) {
|
|
3485
|
+
const _v726 = (item.authority != null && item.authority !== '' ? String(item.authority) : '')
|
|
3486
|
+
const _v727 = (item["chapter-number"] != null && item["chapter-number"] !== '' ? String(item["chapter-number"]) : '')
|
|
3487
|
+
const _g724 = ((item.authority == null || item.authority === '') && (item["chapter-number"] == null || item["chapter-number"] === '')) ? '' : [(stripNocaseSpans(_v726) ? '\uE020authority\uE021' + stripNocaseSpans(_v726) + '\uE022' : ''), (stripNocaseSpans(_v727) ? '\uE020chapter-number\uE021' + stripNocaseSpans(_v727) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3488
|
+
return _g724
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
function macro_legal_source_legislation(item, ctx) {
|
|
3492
|
+
let _ch728 = ''
|
|
3493
|
+
if ((item.number != null && item.number !== '')) {
|
|
3494
|
+
const _gp732 = []
|
|
3495
|
+
if ((item.genre != null && item.genre !== '')) {
|
|
3496
|
+
const _v733 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
3497
|
+
_gp732.push((applyTextCase(_v733, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v733, "capitalize-first") + '\uE022' : ''))
|
|
3498
|
+
}
|
|
3499
|
+
else {
|
|
3500
|
+
const _v734 = (T["legislation:short"] != null ? (typeof T["legislation:short"] === 'string' ? T["legislation:short"] : (T["legislation:short"].single || '')) : '')
|
|
3501
|
+
_gp732.push(applyTextCase(_v734, "capitalize-first"))
|
|
3502
|
+
}
|
|
3503
|
+
const _v735 = macro_label_number_capitalized(item, ctx)
|
|
3504
|
+
_gp732.push(_v735)
|
|
3505
|
+
const _g731 = _gp732.filter(v => v !== '').join(" ")
|
|
3506
|
+
const _v738 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
3507
|
+
const _v739 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
3508
|
+
const _v740 = (item.page != null && item.page !== '' ? stripNocaseSpans(String(item.page)).split(/[-–,\s]/)[0] : '')
|
|
3509
|
+
const _g736 = ((item.volume == null || item.volume === '') && (item["container-title"] == null || item["container-title"] === '') && (item["page-first"] == null || item["page-first"] === '')) ? '' : [(stripNocaseSpans(_v738) ? '\uE020volume\uE021' + stripNocaseSpans(_v738) + '\uE022' : ''), (stripNocaseSpans(_v739) ? '\uE020container-title\uE021' + stripNocaseSpans(_v739) + '\uE022' : ''), (stripNocaseSpans(_v740) ? '\uE020page-first\uE021' + stripNocaseSpans(_v740) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
3510
|
+
const _g729 = ((item.genre == null || item.genre === '') && !macro_label_number_capitalized(item, ctx) && (item.volume == null || item.volume === '') && (item["container-title"] == null || item["container-title"] === '') && (item["page-first"] == null || item["page-first"] === '')) ? '' : [_g731, _g736].filter(v => v !== '').join(", ")
|
|
3511
|
+
_ch728 = _g729
|
|
3512
|
+
}
|
|
3513
|
+
else {
|
|
3514
|
+
const _gp742 = []
|
|
3515
|
+
const _v743 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
3516
|
+
_gp742.push((stripNocaseSpans(_v743) ? '\uE020volume\uE021' + stripNocaseSpans(_v743) + '\uE022' : ''))
|
|
3517
|
+
const _v744 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
3518
|
+
_gp742.push((stripNocaseSpans(_v744) ? '\uE020container-title\uE021' + stripNocaseSpans(_v744) + '\uE022' : ''))
|
|
3519
|
+
if ((item.section != null && item.section !== '')) {
|
|
3520
|
+
const _v745 = macro_label_section_symbol(item, ctx)
|
|
3521
|
+
_gp742.push(_v745)
|
|
3522
|
+
}
|
|
3523
|
+
else {
|
|
3524
|
+
const _v746 = (item.page != null && item.page !== '' ? stripNocaseSpans(String(item.page)).split(/[-–,\s]/)[0] : '')
|
|
3525
|
+
_gp742.push((stripNocaseSpans(_v746) ? '\uE020page-first\uE021' + stripNocaseSpans(_v746) + '\uE022' : ''))
|
|
3526
|
+
}
|
|
3527
|
+
const _g741 = _gp742.filter(v => v !== '').join(" ")
|
|
3528
|
+
_ch728 = _g741
|
|
3529
|
+
}
|
|
3530
|
+
return _ch728
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
function macro_legal_source_regulation(item, ctx) {
|
|
3534
|
+
const _v751 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
3535
|
+
const _v752 = macro_label_number_capitalized(item, ctx)
|
|
3536
|
+
const _g749 = ((item.genre == null || item.genre === '') && !macro_label_number_capitalized(item, ctx)) ? '' : [(stripNocaseSpans(_v751) ? '\uE020genre\uE021' + stripNocaseSpans(_v751) + '\uE022' : ''), _v752].filter(v => v !== '').join(" ")
|
|
3537
|
+
const _gp754 = []
|
|
3538
|
+
const _v755 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
3539
|
+
_gp754.push((stripNocaseSpans(_v755) ? '\uE020volume\uE021' + stripNocaseSpans(_v755) + '\uE022' : ''))
|
|
3540
|
+
const _v756 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
3541
|
+
_gp754.push((stripNocaseSpans(_v756) ? '\uE020container-title\uE021' + stripNocaseSpans(_v756) + '\uE022' : ''))
|
|
3542
|
+
if ((item.section != null && item.section !== '')) {
|
|
3543
|
+
const _v757 = macro_label_section_symbol(item, ctx)
|
|
3544
|
+
_gp754.push(_v757)
|
|
3545
|
+
}
|
|
3546
|
+
else {
|
|
3547
|
+
const _v758 = (item.page != null && item.page !== '' ? stripNocaseSpans(String(item.page)).split(/[-–,\s]/)[0] : '')
|
|
3548
|
+
_gp754.push((stripNocaseSpans(_v758) ? '\uE020page-first\uE021' + stripNocaseSpans(_v758) + '\uE022' : ''))
|
|
3549
|
+
}
|
|
3550
|
+
const _g753 = _gp754.filter(v => v !== '').join(" ")
|
|
3551
|
+
const _g747 = ((item.genre == null || item.genre === '') && !macro_label_number_capitalized(item, ctx) && (item.volume == null || item.volume === '') && (item["container-title"] == null || item["container-title"] === '') && !macro_label_section_symbol(item, ctx) && (item["page-first"] == null || item["page-first"] === '')) ? '' : [_g749, _g753].filter(v => v !== '').join(", ")
|
|
3552
|
+
return _g747
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
function macro_legal_source_treaty(item, ctx) {
|
|
3556
|
+
const _gp760 = []
|
|
3557
|
+
const _v761 = item.volume != null ? String(item.volume) : ''
|
|
3558
|
+
_gp760.push((_v761 ? '\uE020volume\uE021' + _v761 + '\uE022' : ''))
|
|
3559
|
+
const _v762 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
3560
|
+
_gp760.push((stripNocaseSpans(_v762) ? '\uE020container-title\uE021' + stripNocaseSpans(_v762) + '\uE022' : ''))
|
|
3561
|
+
if (((item.page != null && item.page !== '') || (item["page-first"] != null && item["page-first"] !== ''))) {
|
|
3562
|
+
const _v763 = (item.page != null && item.page !== '' ? stripNocaseSpans(String(item.page)).split(/[-–,\s]/)[0] : '')
|
|
3563
|
+
_gp760.push((stripNocaseSpans(_v763) ? '\uE020page-first\uE021' + stripNocaseSpans(_v763) + '\uE022' : ''))
|
|
3564
|
+
}
|
|
3565
|
+
else {
|
|
3566
|
+
const _v764 = macro_label_number_capitalized(item, ctx)
|
|
3567
|
+
_gp760.push(_v764)
|
|
3568
|
+
}
|
|
3569
|
+
const _g759 = _gp760.filter(v => v !== '').join(" ")
|
|
3570
|
+
return _g759
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
function macro_bibliography(item, ctx) {
|
|
3574
|
+
const _gp766 = []
|
|
3575
|
+
if ((item.type === "bill" || item.type === "hearing" || item.type === "legal_case" || item.type === "legislation" || item.type === "regulation" || item.type === "treaty")) {
|
|
3576
|
+
const _v767 = macro_legal_reference(item, ctx)
|
|
3577
|
+
_gp766.push((_v767 ? _v767 + "." : ''))
|
|
3578
|
+
const _v768 = macro_source_DOI_URL(item, ctx)
|
|
3579
|
+
_gp766.push(_v768)
|
|
3580
|
+
const _v769 = (item.references != null && item.references !== '' ? String(item.references) : '')
|
|
3581
|
+
_gp766.push((stripNocaseSpans(_v769) ? '\uE020references\uE021' + stripNocaseSpans(_v769) + '\uE022' : ''))
|
|
3582
|
+
}
|
|
3583
|
+
else {
|
|
3584
|
+
const _v772 = macro_author_and_contributors(item, ctx)
|
|
3585
|
+
const _v773 = macro_date(item, ctx)
|
|
3586
|
+
const _v774 = macro_title_and_descriptions(item, ctx)
|
|
3587
|
+
const _v775 = macro_source(item, ctx)
|
|
3588
|
+
const _g770 = (!macro_author_and_contributors(item, ctx) && !macro_date(item, ctx) && !macro_title_and_descriptions(item, ctx) && !macro_source(item, ctx)) ? '' : [_v772, _v773, _v774, _v775].filter(v => v !== '').join(". ")
|
|
3589
|
+
_gp766.push((_g770 ? _g770 + "." : ''))
|
|
3590
|
+
const _v776 = macro_source_DOI_URL(item, ctx)
|
|
3591
|
+
_gp766.push(_v776)
|
|
3592
|
+
const _v777 = macro_publication_history(item, ctx)
|
|
3593
|
+
_gp766.push(_v777)
|
|
3594
|
+
}
|
|
3595
|
+
const _g765 = _gp766.filter(v => v !== '').join(" ")
|
|
3596
|
+
return _g765
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
const BIB_NAME_OPTS = {"namesDelimiter":", ","initializeWith":". ","etAlMin":21,"etAlUseFirst":19,"etAlUseLast":true}
|
|
3600
|
+
|
|
3601
|
+
export function bibliography(item, ctx = {}) {
|
|
3602
|
+
ctx = { ...ctx, _secOpts: BIB_NAME_OPTS }
|
|
3603
|
+
let _ch778 = ''
|
|
3604
|
+
if (((item.archive != null && item.archive !== '') || (item["archive-place"] != null && item["archive-place"] !== '') || (item["container-title"] != null && item["container-title"] !== '') || (item.DOI != null && item.DOI !== '') || (item.number != null && item.number !== '') || (item.publisher != null && item.publisher !== '') || (item.references != null && item.references !== '') || (item.URL != null && item.URL !== ''))) {
|
|
3605
|
+
const _v779 = macro_bibliography(item, ctx)
|
|
3606
|
+
_ch778 = _v779
|
|
3607
|
+
}
|
|
3608
|
+
else if ((item.type === "interview" || item.type === "personal_communication")) {
|
|
3609
|
+
_ch778 = [].filter(v => v !== '').join('')
|
|
3610
|
+
}
|
|
3611
|
+
else {
|
|
3612
|
+
const _v780 = macro_bibliography(item, ctx)
|
|
3613
|
+
_ch778 = _v780
|
|
3614
|
+
}
|
|
3615
|
+
const _layout = [_ch778].filter(v => v !== '')
|
|
3616
|
+
const _raw = _layout.join("")
|
|
3617
|
+
const _norm = _normalizePunctuation(_raw)
|
|
3618
|
+
const text = stripFormatting(_norm)
|
|
3619
|
+
const html = '<div class="csl-entry">' + toHtml(_norm) + '</div>'
|
|
3620
|
+
return {
|
|
3621
|
+
text,
|
|
3622
|
+
html,
|
|
3623
|
+
parts: _extractParts(item),
|
|
3624
|
+
links: _extractLinks(item),
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
function _extractParts(item) {
|
|
3629
|
+
return {
|
|
3630
|
+
authors: item.author || [],
|
|
3631
|
+
year: item.issued?.['date-parts']?.[0]?.[0]?.toString() || '',
|
|
3632
|
+
title: item.title || '',
|
|
3633
|
+
container: item['container-title'] || '',
|
|
3634
|
+
volume: item.volume?.toString() || '',
|
|
3635
|
+
issue: item.issue?.toString() || '',
|
|
3636
|
+
pages: item.page || '',
|
|
3637
|
+
doi: item.DOI || '',
|
|
3638
|
+
url: item.URL || '',
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
function _extractLinks(item) {
|
|
3643
|
+
return {
|
|
3644
|
+
doi: item.DOI ? 'https://doi.org/' + item.DOI : null,
|
|
3645
|
+
url: item.URL || null,
|
|
3646
|
+
pdf: item.extended?.pdf_url || null,
|
|
3647
|
+
}
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
function _normalizePunctuation(str) {
|
|
3651
|
+
if (!str) return ''
|
|
3652
|
+
// F matches PUA tokens (formatting U+E000-E007 and semantic U+E020-E022) that may appear between dots
|
|
3653
|
+
const F = '[\uE000-\uE007\uE020-\uE022]*'
|
|
3654
|
+
return str
|
|
3655
|
+
.replace(new RegExp('([.!?])(' + F + ')\\. ', 'g'), '$1$2 ')
|
|
3656
|
+
.replace(new RegExp('\\.(' + F + ')\\.', 'g'), '.$1')
|
|
3657
|
+
.replace(/ +/g, ' ')
|
|
3658
|
+
.trim()
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
export function bibliographySort(a, b) {
|
|
3662
|
+
const keys = [
|
|
3663
|
+
{ fn: (item) => macro_author_sort(item, {}), dir: 1 },
|
|
3664
|
+
{ fn: (item) => macro_date_sort_group(item, {}), dir: 1 },
|
|
3665
|
+
{ fn: (item) => macro_date_sort(item, {}), dir: 1 },
|
|
3666
|
+
{ fn: (item) => String(item["status"] || ''), dir: 1 },
|
|
3667
|
+
{ fn: (item) => macro_title(item, {}), dir: 1 },
|
|
3668
|
+
{ fn: (item) => String(item["volume"] || ''), dir: 1 },
|
|
3669
|
+
{ fn: (item) => String(item["part-number"] || ''), dir: 1 },
|
|
3670
|
+
{ fn: (item) => { const d = item["event-date"]; if (!d || !d['date-parts'] || !d['date-parts'][0]) return ''; const p = d['date-parts'][0]; return String(p[0] || 0).padStart(4, '0') + String(p[1] || 0).padStart(2, '0') + String(p[2] || 0).padStart(2, '0') }, dir: 1 },
|
|
3671
|
+
{ fn: (item) => { const d = item["original-date"]; if (!d || !d['date-parts'] || !d['date-parts'][0]) return ''; const p = d['date-parts'][0]; return String(p[0] || 0).padStart(4, '0') + String(p[1] || 0).padStart(2, '0') + String(p[2] || 0).padStart(2, '0') }, dir: 1 },
|
|
3672
|
+
{ fn: (item) => macro_source_archive(item, {}), dir: 1 }
|
|
3673
|
+
]
|
|
3674
|
+
for (const k of keys) {
|
|
3675
|
+
const va = k.fn(a)
|
|
3676
|
+
const vb = k.fn(b)
|
|
3677
|
+
const cmp = va < vb ? -1 : va > vb ? 1 : 0
|
|
3678
|
+
if (cmp !== 0) return cmp * k.dir
|
|
3679
|
+
}
|
|
3680
|
+
return 0
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
const CIT_NAME_OPTS = {"namesDelimiter":", ","initializeWith":". ","etAlMin":3,"etAlUseFirst":1}
|
|
3684
|
+
|
|
3685
|
+
export function citation(cites, ctx = {}) {
|
|
3686
|
+
const _outerCtx = { ...ctx, _secOpts: CIT_NAME_OPTS }
|
|
3687
|
+
const rendered = cites.map(cite => {
|
|
3688
|
+
let ctx = cite._disambig ? { ..._outerCtx, _disambig: cite._disambig } : _outerCtx
|
|
3689
|
+
let item = cite.item || cite
|
|
3690
|
+
if (cite.locator != null) { item = { ...item, locator: cite.locator, _locatorLabel: cite.label || 'page' } }
|
|
3691
|
+
const _v783 = macro_author_short(item, ctx)
|
|
3692
|
+
const _v784 = macro_date_short(item, ctx)
|
|
3693
|
+
const _v785 = macro_label_locator(item, ctx)
|
|
3694
|
+
const _g781 = (!macro_author_short(item, ctx) && !macro_date_short(item, ctx) && !macro_label_locator(item, ctx)) ? '' : [_v783, _v784, _v785].filter(v => v !== '').join(", ")
|
|
3695
|
+
return [_g781].filter(v => v !== '').join('')
|
|
3696
|
+
})
|
|
3697
|
+
const _raw = "(" + rendered.join("; ") + ")"
|
|
3698
|
+
const text = stripFormatting(_raw)
|
|
3699
|
+
const html = '<span class="csl-citation">' + toHtml(_raw) + '</span>'
|
|
3700
|
+
return { text, html }
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3703
|
+
function _resolveTerm(key) {
|
|
3704
|
+
const val = T[key]
|
|
3705
|
+
if (val == null) return null
|
|
3706
|
+
return typeof val === 'string' ? val : val.single || ''
|
|
3707
|
+
}
|