@citestyle/styles 0.0.2 → 1.0.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/README.md +79 -60
- package/ama.js +1139 -0
- package/apa.js +3707 -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 +30 -5
- package/science.js +1070 -0
- package/types.d.ts +5 -1
- package/vancouver.js +993 -0
package/mla.js
ADDED
|
@@ -0,0 +1,2349 @@
|
|
|
1
|
+
// Generated by @citestyle/compiler — do not edit
|
|
2
|
+
// Source: MLA Handbook 9th edition (in-text citations)
|
|
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": "modern-language-association",
|
|
7
|
+
"title": "MLA Handbook 9th edition (in-text citations)",
|
|
8
|
+
"class": "in-text",
|
|
9
|
+
"version": "1.0",
|
|
10
|
+
"compiledWith": "@citestyle/compiler@0.1.0",
|
|
11
|
+
"subsequentAuthorSubstitute": "———",
|
|
12
|
+
"disambiguateAddNames": true,
|
|
13
|
+
"disambiguateAddGivenname": true,
|
|
14
|
+
"givennameDisambiguationRule": "by-cite",
|
|
15
|
+
"citationLayoutDelimiter": "; ",
|
|
16
|
+
"citationLayoutPrefix": "(",
|
|
17
|
+
"citationLayoutSuffix": ")"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const T = {
|
|
21
|
+
"accessed": "accessed",
|
|
22
|
+
"advance-online-publication": "advance online publication",
|
|
23
|
+
"album": "album",
|
|
24
|
+
"and": "and",
|
|
25
|
+
"and others": "and others",
|
|
26
|
+
"anonymous": "anonymous",
|
|
27
|
+
"at": "at",
|
|
28
|
+
"audio-recording": "audio recording",
|
|
29
|
+
"available at": "available at",
|
|
30
|
+
"by": "by",
|
|
31
|
+
"circa": "circa",
|
|
32
|
+
"cited": "cited",
|
|
33
|
+
"et-al": "et al.",
|
|
34
|
+
"film": "film",
|
|
35
|
+
"forthcoming": "forthcoming",
|
|
36
|
+
"from": "from",
|
|
37
|
+
"henceforth": "henceforth",
|
|
38
|
+
"ibid": "ibid.",
|
|
39
|
+
"in": "in",
|
|
40
|
+
"in press": "in press",
|
|
41
|
+
"internet": "internet",
|
|
42
|
+
"letter": "letter",
|
|
43
|
+
"loc-cit": "loc. cit.",
|
|
44
|
+
"no date": "no date",
|
|
45
|
+
"no-place": "no place",
|
|
46
|
+
"no-publisher": "no publisher",
|
|
47
|
+
"on": "on",
|
|
48
|
+
"online": "online",
|
|
49
|
+
"op-cit": "op. cit.",
|
|
50
|
+
"original-work-published": "original work published",
|
|
51
|
+
"personal-communication": "personal communication",
|
|
52
|
+
"podcast": "podcast",
|
|
53
|
+
"podcast-episode": "podcast episode",
|
|
54
|
+
"preprint": "preprint",
|
|
55
|
+
"presented at": "presented at the",
|
|
56
|
+
"radio-broadcast": "radio broadcast",
|
|
57
|
+
"radio-series": "radio series",
|
|
58
|
+
"radio-series-episode": "radio series episode",
|
|
59
|
+
"reference": {
|
|
60
|
+
"single": "reference",
|
|
61
|
+
"multiple": "references"
|
|
62
|
+
},
|
|
63
|
+
"retrieved": "retrieved",
|
|
64
|
+
"review-of": "review of",
|
|
65
|
+
"scale": "scale",
|
|
66
|
+
"special-issue": "special issue",
|
|
67
|
+
"special-section": "special section",
|
|
68
|
+
"television-broadcast": "television broadcast",
|
|
69
|
+
"television-series": "television series",
|
|
70
|
+
"television-series-episode": "television series episode",
|
|
71
|
+
"video": "video",
|
|
72
|
+
"working-paper": "working paper",
|
|
73
|
+
"advance-online-publication:short": "adv. online pub.",
|
|
74
|
+
"anonymous:short": "anon.",
|
|
75
|
+
"audio-recording:short": "au. rec.",
|
|
76
|
+
"available at:short": "avail. at",
|
|
77
|
+
"circa:short": "c.",
|
|
78
|
+
"cited:short": "cit.",
|
|
79
|
+
"film:short": "flm.",
|
|
80
|
+
"from:short": "fr.",
|
|
81
|
+
"letter:short": "let.",
|
|
82
|
+
"no date:short": "n.d.",
|
|
83
|
+
"no-place:short": "n.p.",
|
|
84
|
+
"no-publisher:short": "n.p.",
|
|
85
|
+
"original-work-published:short": "orig. pub.",
|
|
86
|
+
"personal-communication:short": "pers. comm.",
|
|
87
|
+
"podcast-episode:short": "podcast ep.",
|
|
88
|
+
"radio-broadcast:short": "radio bdcst.",
|
|
89
|
+
"radio-series:short": "radio ser.",
|
|
90
|
+
"radio-series-episode:short": "radio ser. ep.",
|
|
91
|
+
"reference:short": {
|
|
92
|
+
"single": "ref.",
|
|
93
|
+
"multiple": "refs."
|
|
94
|
+
},
|
|
95
|
+
"retrieved:short": "rtvd.",
|
|
96
|
+
"review-of:short": "rev. of",
|
|
97
|
+
"scale:short": "sc.",
|
|
98
|
+
"special-issue:short": "spec. iss.",
|
|
99
|
+
"special-section:short": "spec. sec.",
|
|
100
|
+
"television-broadcast:short": "TV bdcst.",
|
|
101
|
+
"television-series:short": "TV ser.",
|
|
102
|
+
"television-series-episode:short": "TV ser. ep.",
|
|
103
|
+
"video:short": "vid.",
|
|
104
|
+
"working-paper:short": "wkg. paper",
|
|
105
|
+
"and:symbol": "&",
|
|
106
|
+
"at:symbol": "@",
|
|
107
|
+
"article": "preprint",
|
|
108
|
+
"article-journal": "journal article",
|
|
109
|
+
"article-magazine": "magazine article",
|
|
110
|
+
"article-newspaper": "newspaper article",
|
|
111
|
+
"bill": "bill",
|
|
112
|
+
"broadcast": "broadcast",
|
|
113
|
+
"classic": "classical work",
|
|
114
|
+
"collection": "archival collection",
|
|
115
|
+
"dataset": "dataset",
|
|
116
|
+
"document": "document",
|
|
117
|
+
"entry": "entry",
|
|
118
|
+
"entry-dictionary": "dictionary entry",
|
|
119
|
+
"entry-encyclopedia": "encyclopedia entry",
|
|
120
|
+
"event": "event",
|
|
121
|
+
"graphic": "graphic",
|
|
122
|
+
"hearing": "hearing",
|
|
123
|
+
"interview": "interview",
|
|
124
|
+
"legal_case": "legal case",
|
|
125
|
+
"legislation": "legislation",
|
|
126
|
+
"manuscript": "manuscript",
|
|
127
|
+
"map": "map",
|
|
128
|
+
"motion_picture": "video recording",
|
|
129
|
+
"musical_score": "musical score",
|
|
130
|
+
"pamphlet": "pamphlet",
|
|
131
|
+
"paper-conference": "conference paper",
|
|
132
|
+
"patent": "patent",
|
|
133
|
+
"performance": "performance",
|
|
134
|
+
"periodical": "periodical",
|
|
135
|
+
"personal_communication": "personal communication",
|
|
136
|
+
"post": "post",
|
|
137
|
+
"post-weblog": "blog post",
|
|
138
|
+
"regulation": "regulation",
|
|
139
|
+
"report": "report",
|
|
140
|
+
"review": "review",
|
|
141
|
+
"review-book": "book review",
|
|
142
|
+
"software": "software",
|
|
143
|
+
"song": "audio recording",
|
|
144
|
+
"speech": "presentation",
|
|
145
|
+
"standard": "standard",
|
|
146
|
+
"thesis": "thesis",
|
|
147
|
+
"treaty": "treaty",
|
|
148
|
+
"webpage": "webpage",
|
|
149
|
+
"article-journal:short": "jour. art.",
|
|
150
|
+
"article-magazine:short": "mag. art.",
|
|
151
|
+
"article-newspaper:short": "newspaper art.",
|
|
152
|
+
"broadcast:short": "bdcst.",
|
|
153
|
+
"classic:short": "class. wk.",
|
|
154
|
+
"collection:short": "arch. coll.",
|
|
155
|
+
"document:short": "doc.",
|
|
156
|
+
"entry-dictionary:short": "dict. entry",
|
|
157
|
+
"entry-encyclopedia:short": "ency. entry",
|
|
158
|
+
"graphic:short": "gr.",
|
|
159
|
+
"interview:short": "int.",
|
|
160
|
+
"legal_case:short": "leg. case",
|
|
161
|
+
"legislation:short": "legis.",
|
|
162
|
+
"manuscript:short": {
|
|
163
|
+
"single": "MS",
|
|
164
|
+
"multiple": "MSS"
|
|
165
|
+
},
|
|
166
|
+
"motion_picture:short": "vid. rec.",
|
|
167
|
+
"musical_score:short": "mus. score",
|
|
168
|
+
"pamphlet:short": "pam.",
|
|
169
|
+
"paper-conference:short": "conf. paper",
|
|
170
|
+
"patent:short": "pat.",
|
|
171
|
+
"performance:short": "prfm.",
|
|
172
|
+
"personal_communication:short": "pers. comm.",
|
|
173
|
+
"regulation:short": "reg.",
|
|
174
|
+
"report:short": "rep.",
|
|
175
|
+
"review:short": "rev.",
|
|
176
|
+
"review-book:short": "bk. rev.",
|
|
177
|
+
"software:short": "sftw.",
|
|
178
|
+
"song:short": "au. rec.",
|
|
179
|
+
"standard:short": "std.",
|
|
180
|
+
"thesis:short": "thes.",
|
|
181
|
+
"webpage:short": "webpg.",
|
|
182
|
+
"hearing:verb": "testimony of",
|
|
183
|
+
"review:verb": "review of",
|
|
184
|
+
"review-book:verb": "review of the book",
|
|
185
|
+
"hearing:verb-short": "test. of",
|
|
186
|
+
"review:verb-short": "rev. of",
|
|
187
|
+
"review-book:verb-short": "rev. of the bk.",
|
|
188
|
+
"ad": "AD",
|
|
189
|
+
"bc": "BC",
|
|
190
|
+
"bce": "BCE",
|
|
191
|
+
"ce": "CE",
|
|
192
|
+
"open-quote": "“",
|
|
193
|
+
"close-quote": "”",
|
|
194
|
+
"open-inner-quote": "‘",
|
|
195
|
+
"close-inner-quote": "’",
|
|
196
|
+
"page-range-delimiter": "–",
|
|
197
|
+
"colon": ":",
|
|
198
|
+
"comma": ",",
|
|
199
|
+
"semicolon": ";",
|
|
200
|
+
"ordinal": "th",
|
|
201
|
+
"ordinal-01": "st",
|
|
202
|
+
"ordinal-02": "nd",
|
|
203
|
+
"ordinal-03": "rd",
|
|
204
|
+
"ordinal-11": "th",
|
|
205
|
+
"ordinal-12": "th",
|
|
206
|
+
"ordinal-13": "th",
|
|
207
|
+
"long-ordinal-01": "first",
|
|
208
|
+
"long-ordinal-02": "second",
|
|
209
|
+
"long-ordinal-03": "third",
|
|
210
|
+
"long-ordinal-04": "fourth",
|
|
211
|
+
"long-ordinal-05": "fifth",
|
|
212
|
+
"long-ordinal-06": "sixth",
|
|
213
|
+
"long-ordinal-07": "seventh",
|
|
214
|
+
"long-ordinal-08": "eighth",
|
|
215
|
+
"long-ordinal-09": "ninth",
|
|
216
|
+
"long-ordinal-10": "tenth",
|
|
217
|
+
"act": {
|
|
218
|
+
"single": "act",
|
|
219
|
+
"multiple": "acts"
|
|
220
|
+
},
|
|
221
|
+
"appendix": {
|
|
222
|
+
"single": "appendix",
|
|
223
|
+
"multiple": "appendices"
|
|
224
|
+
},
|
|
225
|
+
"article-locator": {
|
|
226
|
+
"single": "article",
|
|
227
|
+
"multiple": "articles"
|
|
228
|
+
},
|
|
229
|
+
"book": {
|
|
230
|
+
"single": "book",
|
|
231
|
+
"multiple": "books"
|
|
232
|
+
},
|
|
233
|
+
"canon": {
|
|
234
|
+
"single": "canon",
|
|
235
|
+
"multiple": "canons"
|
|
236
|
+
},
|
|
237
|
+
"chapter": {
|
|
238
|
+
"single": "chapter",
|
|
239
|
+
"multiple": "chapters"
|
|
240
|
+
},
|
|
241
|
+
"column": {
|
|
242
|
+
"single": "column",
|
|
243
|
+
"multiple": "columns"
|
|
244
|
+
},
|
|
245
|
+
"elocation": {
|
|
246
|
+
"single": "location",
|
|
247
|
+
"multiple": "locations"
|
|
248
|
+
},
|
|
249
|
+
"equation": {
|
|
250
|
+
"single": "equation",
|
|
251
|
+
"multiple": "equations"
|
|
252
|
+
},
|
|
253
|
+
"figure": {
|
|
254
|
+
"single": "figure",
|
|
255
|
+
"multiple": "figures"
|
|
256
|
+
},
|
|
257
|
+
"folio": {
|
|
258
|
+
"single": "folio",
|
|
259
|
+
"multiple": "folios"
|
|
260
|
+
},
|
|
261
|
+
"issue": {
|
|
262
|
+
"single": "issue",
|
|
263
|
+
"multiple": "issues"
|
|
264
|
+
},
|
|
265
|
+
"line": {
|
|
266
|
+
"single": "line",
|
|
267
|
+
"multiple": "lines"
|
|
268
|
+
},
|
|
269
|
+
"note": {
|
|
270
|
+
"single": "note",
|
|
271
|
+
"multiple": "notes"
|
|
272
|
+
},
|
|
273
|
+
"opus": {
|
|
274
|
+
"single": "opus",
|
|
275
|
+
"multiple": "opera"
|
|
276
|
+
},
|
|
277
|
+
"page": {
|
|
278
|
+
"single": "page",
|
|
279
|
+
"multiple": "pages"
|
|
280
|
+
},
|
|
281
|
+
"paragraph": {
|
|
282
|
+
"single": "paragraph",
|
|
283
|
+
"multiple": "paragraphs"
|
|
284
|
+
},
|
|
285
|
+
"part": {
|
|
286
|
+
"single": "part",
|
|
287
|
+
"multiple": "parts"
|
|
288
|
+
},
|
|
289
|
+
"rule": {
|
|
290
|
+
"single": "rule",
|
|
291
|
+
"multiple": "rules"
|
|
292
|
+
},
|
|
293
|
+
"scene": {
|
|
294
|
+
"single": "scene",
|
|
295
|
+
"multiple": "scenes"
|
|
296
|
+
},
|
|
297
|
+
"section": {
|
|
298
|
+
"single": "section",
|
|
299
|
+
"multiple": "sections"
|
|
300
|
+
},
|
|
301
|
+
"sub-verbo": {
|
|
302
|
+
"single": "sub verbo",
|
|
303
|
+
"multiple": "sub verbis"
|
|
304
|
+
},
|
|
305
|
+
"supplement": {
|
|
306
|
+
"single": "supplement",
|
|
307
|
+
"multiple": "supplements"
|
|
308
|
+
},
|
|
309
|
+
"table": {
|
|
310
|
+
"single": "table",
|
|
311
|
+
"multiple": "tables"
|
|
312
|
+
},
|
|
313
|
+
"timestamp": "",
|
|
314
|
+
"title-locator": {
|
|
315
|
+
"single": "title",
|
|
316
|
+
"multiple": "titles"
|
|
317
|
+
},
|
|
318
|
+
"verse": {
|
|
319
|
+
"single": "verse",
|
|
320
|
+
"multiple": "verses"
|
|
321
|
+
},
|
|
322
|
+
"volume": {
|
|
323
|
+
"single": "volume",
|
|
324
|
+
"multiple": "volumes"
|
|
325
|
+
},
|
|
326
|
+
"appendix:short": {
|
|
327
|
+
"single": "app.",
|
|
328
|
+
"multiple": "apps."
|
|
329
|
+
},
|
|
330
|
+
"article-locator:short": {
|
|
331
|
+
"single": "art.",
|
|
332
|
+
"multiple": "arts."
|
|
333
|
+
},
|
|
334
|
+
"book:short": {
|
|
335
|
+
"single": "bk.",
|
|
336
|
+
"multiple": "bks."
|
|
337
|
+
},
|
|
338
|
+
"canon:short": {
|
|
339
|
+
"single": "can.",
|
|
340
|
+
"multiple": "cann."
|
|
341
|
+
},
|
|
342
|
+
"chapter:short": {
|
|
343
|
+
"single": "chap.",
|
|
344
|
+
"multiple": "chaps."
|
|
345
|
+
},
|
|
346
|
+
"column:short": {
|
|
347
|
+
"single": "col.",
|
|
348
|
+
"multiple": "cols."
|
|
349
|
+
},
|
|
350
|
+
"elocation:short": {
|
|
351
|
+
"single": "loc.",
|
|
352
|
+
"multiple": "locs."
|
|
353
|
+
},
|
|
354
|
+
"equation:short": {
|
|
355
|
+
"single": "eq.",
|
|
356
|
+
"multiple": "eqq."
|
|
357
|
+
},
|
|
358
|
+
"figure:short": {
|
|
359
|
+
"single": "fig.",
|
|
360
|
+
"multiple": "figs."
|
|
361
|
+
},
|
|
362
|
+
"folio:short": {
|
|
363
|
+
"single": "fol.",
|
|
364
|
+
"multiple": "fols."
|
|
365
|
+
},
|
|
366
|
+
"issue:short": {
|
|
367
|
+
"single": "no.",
|
|
368
|
+
"multiple": "nos."
|
|
369
|
+
},
|
|
370
|
+
"line:short": {
|
|
371
|
+
"single": "l.",
|
|
372
|
+
"multiple": "ll."
|
|
373
|
+
},
|
|
374
|
+
"note:short": {
|
|
375
|
+
"single": "n.",
|
|
376
|
+
"multiple": "nn."
|
|
377
|
+
},
|
|
378
|
+
"opus:short": {
|
|
379
|
+
"single": "op.",
|
|
380
|
+
"multiple": "opp."
|
|
381
|
+
},
|
|
382
|
+
"page:short": {
|
|
383
|
+
"single": "p.",
|
|
384
|
+
"multiple": "pp."
|
|
385
|
+
},
|
|
386
|
+
"paragraph:short": {
|
|
387
|
+
"single": "para.",
|
|
388
|
+
"multiple": "paras."
|
|
389
|
+
},
|
|
390
|
+
"part:short": {
|
|
391
|
+
"single": "pt.",
|
|
392
|
+
"multiple": "pts."
|
|
393
|
+
},
|
|
394
|
+
"rule:short": {
|
|
395
|
+
"single": "r.",
|
|
396
|
+
"multiple": "rr."
|
|
397
|
+
},
|
|
398
|
+
"scene:short": {
|
|
399
|
+
"single": "sc.",
|
|
400
|
+
"multiple": "scs."
|
|
401
|
+
},
|
|
402
|
+
"section:short": {
|
|
403
|
+
"single": "sec.",
|
|
404
|
+
"multiple": "secs."
|
|
405
|
+
},
|
|
406
|
+
"sub-verbo:short": {
|
|
407
|
+
"single": "s.v.",
|
|
408
|
+
"multiple": "s.vv."
|
|
409
|
+
},
|
|
410
|
+
"supplement:short": {
|
|
411
|
+
"single": "supp.",
|
|
412
|
+
"multiple": "supps."
|
|
413
|
+
},
|
|
414
|
+
"table:short": {
|
|
415
|
+
"single": "tbl.",
|
|
416
|
+
"multiple": "tbls."
|
|
417
|
+
},
|
|
418
|
+
"title-locator:short": {
|
|
419
|
+
"single": "tit.",
|
|
420
|
+
"multiple": "titt."
|
|
421
|
+
},
|
|
422
|
+
"verse:short": {
|
|
423
|
+
"single": "v.",
|
|
424
|
+
"multiple": "vv."
|
|
425
|
+
},
|
|
426
|
+
"volume:short": {
|
|
427
|
+
"single": "vol.",
|
|
428
|
+
"multiple": "vols."
|
|
429
|
+
},
|
|
430
|
+
"chapter:symbol": {
|
|
431
|
+
"single": "c.",
|
|
432
|
+
"multiple": "cc."
|
|
433
|
+
},
|
|
434
|
+
"paragraph:symbol": {
|
|
435
|
+
"single": "¶",
|
|
436
|
+
"multiple": "¶¶"
|
|
437
|
+
},
|
|
438
|
+
"section:symbol": {
|
|
439
|
+
"single": "§",
|
|
440
|
+
"multiple": "§§"
|
|
441
|
+
},
|
|
442
|
+
"chapter-number": {
|
|
443
|
+
"single": "chapter",
|
|
444
|
+
"multiple": "chapters"
|
|
445
|
+
},
|
|
446
|
+
"citation-number": {
|
|
447
|
+
"single": "citation",
|
|
448
|
+
"multiple": "citations"
|
|
449
|
+
},
|
|
450
|
+
"collection-number": {
|
|
451
|
+
"single": "number",
|
|
452
|
+
"multiple": "numbers"
|
|
453
|
+
},
|
|
454
|
+
"edition": {
|
|
455
|
+
"single": "edition",
|
|
456
|
+
"multiple": "editions"
|
|
457
|
+
},
|
|
458
|
+
"first-reference-note-number": {
|
|
459
|
+
"single": "reference",
|
|
460
|
+
"multiple": "references"
|
|
461
|
+
},
|
|
462
|
+
"number": {
|
|
463
|
+
"single": "number",
|
|
464
|
+
"multiple": "numbers"
|
|
465
|
+
},
|
|
466
|
+
"number-of-pages": {
|
|
467
|
+
"single": "page",
|
|
468
|
+
"multiple": "pages"
|
|
469
|
+
},
|
|
470
|
+
"number-of-volumes": {
|
|
471
|
+
"single": "volume",
|
|
472
|
+
"multiple": "volumes"
|
|
473
|
+
},
|
|
474
|
+
"page-first": {
|
|
475
|
+
"single": "page",
|
|
476
|
+
"multiple": "pages"
|
|
477
|
+
},
|
|
478
|
+
"printing": {
|
|
479
|
+
"single": "printing",
|
|
480
|
+
"multiple": "printings"
|
|
481
|
+
},
|
|
482
|
+
"version": {
|
|
483
|
+
"single": "version",
|
|
484
|
+
"multiple": "versions"
|
|
485
|
+
},
|
|
486
|
+
"chapter-number:short": {
|
|
487
|
+
"single": "chap.",
|
|
488
|
+
"multiple": "chaps."
|
|
489
|
+
},
|
|
490
|
+
"citation-number:short": {
|
|
491
|
+
"single": "cit.",
|
|
492
|
+
"multiple": "cits."
|
|
493
|
+
},
|
|
494
|
+
"collection-number:short": {
|
|
495
|
+
"single": "no.",
|
|
496
|
+
"multiple": "nos."
|
|
497
|
+
},
|
|
498
|
+
"edition:short": {
|
|
499
|
+
"single": "ed.",
|
|
500
|
+
"multiple": "eds."
|
|
501
|
+
},
|
|
502
|
+
"first-reference-note-number:short": {
|
|
503
|
+
"single": "ref.",
|
|
504
|
+
"multiple": "refs."
|
|
505
|
+
},
|
|
506
|
+
"number:short": {
|
|
507
|
+
"single": "no.",
|
|
508
|
+
"multiple": "nos."
|
|
509
|
+
},
|
|
510
|
+
"number-of-pages:short": {
|
|
511
|
+
"single": "p.",
|
|
512
|
+
"multiple": "pp."
|
|
513
|
+
},
|
|
514
|
+
"number-of-volumes:short": {
|
|
515
|
+
"single": "vol.",
|
|
516
|
+
"multiple": "vols."
|
|
517
|
+
},
|
|
518
|
+
"page-first:short": {
|
|
519
|
+
"single": "p.",
|
|
520
|
+
"multiple": "pp."
|
|
521
|
+
},
|
|
522
|
+
"printing:short": {
|
|
523
|
+
"single": "ptg.",
|
|
524
|
+
"multiple": "ptgs."
|
|
525
|
+
},
|
|
526
|
+
"version:short": "v.",
|
|
527
|
+
"author": "",
|
|
528
|
+
"chair": {
|
|
529
|
+
"single": "chair",
|
|
530
|
+
"multiple": "chairs"
|
|
531
|
+
},
|
|
532
|
+
"collection-editor": {
|
|
533
|
+
"single": "editor",
|
|
534
|
+
"multiple": "editors"
|
|
535
|
+
},
|
|
536
|
+
"compiler": {
|
|
537
|
+
"single": "compiler",
|
|
538
|
+
"multiple": "compilers"
|
|
539
|
+
},
|
|
540
|
+
"composer": "",
|
|
541
|
+
"container-author": "",
|
|
542
|
+
"contributor": {
|
|
543
|
+
"single": "contributor",
|
|
544
|
+
"multiple": "contributors"
|
|
545
|
+
},
|
|
546
|
+
"curator": {
|
|
547
|
+
"single": "curator",
|
|
548
|
+
"multiple": "curators"
|
|
549
|
+
},
|
|
550
|
+
"director": {
|
|
551
|
+
"single": "director",
|
|
552
|
+
"multiple": "directors"
|
|
553
|
+
},
|
|
554
|
+
"editor": {
|
|
555
|
+
"single": "editor",
|
|
556
|
+
"multiple": "editors"
|
|
557
|
+
},
|
|
558
|
+
"editor-translator": {
|
|
559
|
+
"single": "editor & translator",
|
|
560
|
+
"multiple": "editors & translators"
|
|
561
|
+
},
|
|
562
|
+
"editortranslator": {
|
|
563
|
+
"single": "editor & translator",
|
|
564
|
+
"multiple": "editors & translators"
|
|
565
|
+
},
|
|
566
|
+
"editorial-director": {
|
|
567
|
+
"single": "editor",
|
|
568
|
+
"multiple": "editors"
|
|
569
|
+
},
|
|
570
|
+
"executive-producer": {
|
|
571
|
+
"single": "executive producer",
|
|
572
|
+
"multiple": "executive producers"
|
|
573
|
+
},
|
|
574
|
+
"guest": {
|
|
575
|
+
"single": "guest",
|
|
576
|
+
"multiple": "guests"
|
|
577
|
+
},
|
|
578
|
+
"host": {
|
|
579
|
+
"single": "host",
|
|
580
|
+
"multiple": "hosts"
|
|
581
|
+
},
|
|
582
|
+
"illustrator": {
|
|
583
|
+
"single": "illustrator",
|
|
584
|
+
"multiple": "illustrators"
|
|
585
|
+
},
|
|
586
|
+
"interviewer": "",
|
|
587
|
+
"narrator": {
|
|
588
|
+
"single": "narrator",
|
|
589
|
+
"multiple": "narrators"
|
|
590
|
+
},
|
|
591
|
+
"organizer": {
|
|
592
|
+
"single": "organizer",
|
|
593
|
+
"multiple": "organizers"
|
|
594
|
+
},
|
|
595
|
+
"original-author": "",
|
|
596
|
+
"performer": {
|
|
597
|
+
"single": "performer",
|
|
598
|
+
"multiple": "performers"
|
|
599
|
+
},
|
|
600
|
+
"producer": {
|
|
601
|
+
"single": "producer",
|
|
602
|
+
"multiple": "producers"
|
|
603
|
+
},
|
|
604
|
+
"recipient": "",
|
|
605
|
+
"reviewed-author": "",
|
|
606
|
+
"script-writer": {
|
|
607
|
+
"single": "writer",
|
|
608
|
+
"multiple": "writers"
|
|
609
|
+
},
|
|
610
|
+
"series-creator": {
|
|
611
|
+
"single": "series creator",
|
|
612
|
+
"multiple": "series creators"
|
|
613
|
+
},
|
|
614
|
+
"translator": {
|
|
615
|
+
"single": "translator",
|
|
616
|
+
"multiple": "translators"
|
|
617
|
+
},
|
|
618
|
+
"collection-editor:short": {
|
|
619
|
+
"single": "ed.",
|
|
620
|
+
"multiple": "eds."
|
|
621
|
+
},
|
|
622
|
+
"compiler:short": {
|
|
623
|
+
"single": "comp.",
|
|
624
|
+
"multiple": "comps."
|
|
625
|
+
},
|
|
626
|
+
"contributor:short": {
|
|
627
|
+
"single": "contrib.",
|
|
628
|
+
"multiple": "contribs."
|
|
629
|
+
},
|
|
630
|
+
"curator:short": {
|
|
631
|
+
"single": "cur.",
|
|
632
|
+
"multiple": "curs."
|
|
633
|
+
},
|
|
634
|
+
"director:short": {
|
|
635
|
+
"single": "dir.",
|
|
636
|
+
"multiple": "dirs."
|
|
637
|
+
},
|
|
638
|
+
"editor:short": {
|
|
639
|
+
"single": "ed.",
|
|
640
|
+
"multiple": "eds."
|
|
641
|
+
},
|
|
642
|
+
"editor-translator:short": {
|
|
643
|
+
"single": "ed. & trans.",
|
|
644
|
+
"multiple": "eds. & trans."
|
|
645
|
+
},
|
|
646
|
+
"editortranslator:short": {
|
|
647
|
+
"single": "ed. & trans.",
|
|
648
|
+
"multiple": "eds. & trans."
|
|
649
|
+
},
|
|
650
|
+
"editorial-director:short": {
|
|
651
|
+
"single": "ed.",
|
|
652
|
+
"multiple": "eds."
|
|
653
|
+
},
|
|
654
|
+
"executive-producer:short": {
|
|
655
|
+
"single": "exec. prod.",
|
|
656
|
+
"multiple": "exec. prods."
|
|
657
|
+
},
|
|
658
|
+
"illustrator:short": {
|
|
659
|
+
"single": "ill.",
|
|
660
|
+
"multiple": "ills."
|
|
661
|
+
},
|
|
662
|
+
"narrator:short": {
|
|
663
|
+
"single": "narr.",
|
|
664
|
+
"multiple": "narrs."
|
|
665
|
+
},
|
|
666
|
+
"organizer:short": {
|
|
667
|
+
"single": "org.",
|
|
668
|
+
"multiple": "orgs."
|
|
669
|
+
},
|
|
670
|
+
"performer:short": {
|
|
671
|
+
"single": "perf.",
|
|
672
|
+
"multiple": "perfs."
|
|
673
|
+
},
|
|
674
|
+
"producer:short": {
|
|
675
|
+
"single": "prod.",
|
|
676
|
+
"multiple": "prods."
|
|
677
|
+
},
|
|
678
|
+
"script-writer:short": {
|
|
679
|
+
"single": "wrtr.",
|
|
680
|
+
"multiple": "wrtrs."
|
|
681
|
+
},
|
|
682
|
+
"series-creator:short": {
|
|
683
|
+
"single": "ser. creator",
|
|
684
|
+
"multiple": "ser. creators"
|
|
685
|
+
},
|
|
686
|
+
"translator:short": "trans.",
|
|
687
|
+
"chair:verb": "chaired by",
|
|
688
|
+
"collection-editor:verb": "edited by",
|
|
689
|
+
"compiler:verb": "compiled by",
|
|
690
|
+
"composer:verb": "composed by",
|
|
691
|
+
"container-author:verb": "by",
|
|
692
|
+
"contributor:verb": "with",
|
|
693
|
+
"curator:verb": "curated by",
|
|
694
|
+
"director:verb": "directed by",
|
|
695
|
+
"editor:verb": "edited by",
|
|
696
|
+
"editor-translator:verb": "edited & translated by",
|
|
697
|
+
"editortranslator:verb": "edited & translated by",
|
|
698
|
+
"editorial-director:verb": "edited by",
|
|
699
|
+
"executive-producer:verb": "executive produced by",
|
|
700
|
+
"guest:verb": {
|
|
701
|
+
"single": "with guest",
|
|
702
|
+
"multiple": "with guests"
|
|
703
|
+
},
|
|
704
|
+
"host:verb": "hosted by",
|
|
705
|
+
"illustrator:verb": "illustrated by",
|
|
706
|
+
"interviewer:verb": "interview by",
|
|
707
|
+
"narrator:verb": "narrated by",
|
|
708
|
+
"organizer:verb": "organized by",
|
|
709
|
+
"original-author:verb": "by",
|
|
710
|
+
"performer:verb": "performed by",
|
|
711
|
+
"producer:verb": "produced by",
|
|
712
|
+
"recipient:verb": "to",
|
|
713
|
+
"reviewed-author:verb": "by",
|
|
714
|
+
"script-writer:verb": "written by",
|
|
715
|
+
"series-creator:verb": "created by",
|
|
716
|
+
"translator:verb": "translated by",
|
|
717
|
+
"collection-editor:verb-short": "ed. by",
|
|
718
|
+
"compiler:verb-short": "comp. by",
|
|
719
|
+
"composer:verb-short": "comp. by",
|
|
720
|
+
"curator:verb-short": "cur. by",
|
|
721
|
+
"director:verb-short": "dir. by",
|
|
722
|
+
"editor:verb-short": "ed. by",
|
|
723
|
+
"editor-translator:verb-short": "ed. & trans. by",
|
|
724
|
+
"editortranslator:verb-short": "ed. & trans. by",
|
|
725
|
+
"editorial-director:verb-short": "ed. by",
|
|
726
|
+
"executive-producer:verb-short": "exec. prod. by",
|
|
727
|
+
"illustrator:verb-short": "ill. by",
|
|
728
|
+
"narrator:verb-short": "narr. by",
|
|
729
|
+
"organizer:verb-short": "org. by",
|
|
730
|
+
"performer:verb-short": "perf. by",
|
|
731
|
+
"producer:verb-short": "prod. by",
|
|
732
|
+
"script-writer:verb-short": "writ. by",
|
|
733
|
+
"translator:verb-short": "trans. by",
|
|
734
|
+
"month-01": "January",
|
|
735
|
+
"month-02": "February",
|
|
736
|
+
"month-03": "March",
|
|
737
|
+
"month-04": "April",
|
|
738
|
+
"month-05": "May",
|
|
739
|
+
"month-06": "June",
|
|
740
|
+
"month-07": "July",
|
|
741
|
+
"month-08": "August",
|
|
742
|
+
"month-09": "September",
|
|
743
|
+
"month-10": "October",
|
|
744
|
+
"month-11": "November",
|
|
745
|
+
"month-12": "December",
|
|
746
|
+
"month-01:short": "Jan.",
|
|
747
|
+
"month-02:short": "Feb.",
|
|
748
|
+
"month-03:short": "Mar.",
|
|
749
|
+
"month-04:short": "Apr.",
|
|
750
|
+
"month-05:short": "May",
|
|
751
|
+
"month-06:short": "June",
|
|
752
|
+
"month-07:short": "July",
|
|
753
|
+
"month-08:short": "Aug.",
|
|
754
|
+
"month-09:short": "Sept.",
|
|
755
|
+
"month-10:short": "Oct.",
|
|
756
|
+
"month-11:short": "Nov.",
|
|
757
|
+
"month-12:short": "Dec.",
|
|
758
|
+
"season-01": "Spring",
|
|
759
|
+
"season-02": "Summer",
|
|
760
|
+
"season-03": "Autumn",
|
|
761
|
+
"season-04": "Winter"
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
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"}
|
|
765
|
+
|
|
766
|
+
const NAME_OPTS = {"initializeWith":". ","and":"text"}
|
|
767
|
+
|
|
768
|
+
function _nameConfig(ctx, el) {
|
|
769
|
+
const c = Object.assign({}, NAME_OPTS, ctx._secOpts || {}, el)
|
|
770
|
+
if (el.initialize === false || (ctx._secOpts || {}).initialize === false || NAME_OPTS.initialize === false) c.initialize = false
|
|
771
|
+
if (c.and === 'text') c.andTerm = T['and'] || 'and'
|
|
772
|
+
else if (c.and === 'symbol') c.andTerm = '&'
|
|
773
|
+
if (!c.etAlTerm) c.etAlTerm = T[el._etAlTerm || 'et-al'] || 'et al.'
|
|
774
|
+
if (ctx._disambig) c._disambig = ctx._disambig
|
|
775
|
+
return c
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
function macro_label_edition_capitalized(item, ctx) {
|
|
779
|
+
const _gp1 = []
|
|
780
|
+
if ((item.edition != null && /^\s*\d/.test(String(item.edition)))) {
|
|
781
|
+
const _v2 = item.edition != null ? String(item.edition) : ''
|
|
782
|
+
_gp1.push(((_v2 && !isNaN(Number(_v2)) ? ordinal(Number(_v2)) : _v2) ? '\uE020edition\uE021' + (_v2 && !isNaN(Number(_v2)) ? ordinal(Number(_v2)) : _v2) + '\uE022' : ''))
|
|
783
|
+
const _v3 = (() => {
|
|
784
|
+
const _val = item.edition
|
|
785
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
786
|
+
const _term = T["edition:short"]
|
|
787
|
+
if (_term == null) return ''
|
|
788
|
+
if (typeof _term === 'string') return _term
|
|
789
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
790
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
791
|
+
})()
|
|
792
|
+
_gp1.push(_v3)
|
|
793
|
+
}
|
|
794
|
+
else {
|
|
795
|
+
const _v4 = (item.edition != null && item.edition !== '' ? String(item.edition) : '')
|
|
796
|
+
_gp1.push((applyTextCase(_v4, "capitalize-first") ? '\uE020edition\uE021' + applyTextCase(_v4, "capitalize-first") + '\uE022' : ''))
|
|
797
|
+
}
|
|
798
|
+
const _g0 = _gp1.filter(v => v !== '').join(" ")
|
|
799
|
+
return _g0
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
function macro_label_issue(item, ctx) {
|
|
803
|
+
const _v7 = (() => {
|
|
804
|
+
const _val = item.issue
|
|
805
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
806
|
+
const _term = T["issue:short"]
|
|
807
|
+
if (_term == null) return ''
|
|
808
|
+
if (typeof _term === 'string') return _term
|
|
809
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
810
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
811
|
+
})()
|
|
812
|
+
const _v8 = (item.issue != null && item.issue !== '' ? String(item.issue) : '')
|
|
813
|
+
const _g5 = ((item.issue == null || item.issue === '')) ? '' : [_v7, (stripNocaseSpans(_v8) ? '\uE020issue\uE021' + stripNocaseSpans(_v8) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
814
|
+
return _g5
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
function macro_label_locator(item, ctx) {
|
|
818
|
+
const _v11 = (() => {
|
|
819
|
+
const _val = item.locator
|
|
820
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
821
|
+
const _term = T[(item._locatorLabel || 'page') + ":short"]
|
|
822
|
+
if (_term == null) return ''
|
|
823
|
+
if (typeof _term === 'string') return _term
|
|
824
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
825
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
826
|
+
})()
|
|
827
|
+
const _v12 = (item.locator != null && item.locator !== '' ? String(item.locator) : '')
|
|
828
|
+
const _g9 = ((item.locator == null || item.locator === '')) ? '' : [_v11, (stripNocaseSpans(_v12) ? '\uE020locator\uE021' + stripNocaseSpans(_v12) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
829
|
+
return _g9
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
function macro_label_number(item, ctx) {
|
|
833
|
+
const _gp14 = []
|
|
834
|
+
if (item.type === "standard") {
|
|
835
|
+
}
|
|
836
|
+
else if ((item.number != null && /^\s*\d/.test(String(item.number)))) {
|
|
837
|
+
const _v15 = (() => {
|
|
838
|
+
const _val = item.number
|
|
839
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
840
|
+
const _term = T["number:short"]
|
|
841
|
+
if (_term == null) return ''
|
|
842
|
+
if (typeof _term === 'string') return _term
|
|
843
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
844
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
845
|
+
})()
|
|
846
|
+
_gp14.push(_v15)
|
|
847
|
+
}
|
|
848
|
+
const _v16 = (item.number != null && item.number !== '' ? String(item.number) : '')
|
|
849
|
+
_gp14.push((stripNocaseSpans(_v16) ? '\uE020number\uE021' + stripNocaseSpans(_v16) + '\uE022' : ''))
|
|
850
|
+
const _g13 = _gp14.filter(v => v !== '').join(" ")
|
|
851
|
+
return _g13
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
function macro_label_number_of_volumes(item, ctx) {
|
|
855
|
+
const _gp18 = []
|
|
856
|
+
const _v19 = (item["number-of-volumes"] != null && item["number-of-volumes"] !== '' ? String(item["number-of-volumes"]) : '')
|
|
857
|
+
_gp18.push((stripNocaseSpans(_v19) ? '\uE020number-of-volumes\uE021' + stripNocaseSpans(_v19) + '\uE022' : ''))
|
|
858
|
+
if ((item["number-of-volumes"] != null && /^\s*\d/.test(String(item["number-of-volumes"])))) {
|
|
859
|
+
const _v20 = (() => {
|
|
860
|
+
const _val = item["number-of-volumes"]
|
|
861
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
862
|
+
const _term = T["number-of-volumes:short"]
|
|
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
|
+
_gp18.push(_v20)
|
|
869
|
+
}
|
|
870
|
+
const _g17 = _gp18.filter(v => v !== '').join(" ")
|
|
871
|
+
return _g17
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
function macro_label_page(item, ctx) {
|
|
875
|
+
const _v23 = (() => {
|
|
876
|
+
const _val = item.page
|
|
877
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
878
|
+
const _term = T["page:short"]
|
|
879
|
+
if (_term == null) return ''
|
|
880
|
+
if (typeof _term === 'string') return _term
|
|
881
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
882
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
883
|
+
})()
|
|
884
|
+
const _v24 = (item.page != null && item.page !== '' ? pageRange(stripNocaseSpans(String(item.page)), "minimal-two") : '')
|
|
885
|
+
const _g21 = ((item.page == null || item.page === '')) ? '' : [_v23, (stripNocaseSpans(_v24) ? '\uE020page\uE021' + stripNocaseSpans(_v24) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
886
|
+
return _g21
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
function macro_label_part_number(item, ctx) {
|
|
890
|
+
const _gp26 = []
|
|
891
|
+
if ((item["part-number"] != null && /^\s*\d/.test(String(item["part-number"])))) {
|
|
892
|
+
const _v27 = (T["part:short"] != null ? (typeof T["part:short"] === 'string' ? T["part:short"] : (T["part:short"].single || '')) : '')
|
|
893
|
+
_gp26.push(_v27)
|
|
894
|
+
}
|
|
895
|
+
const _v28 = (item["part-number"] != null && item["part-number"] !== '' ? String(item["part-number"]) : '')
|
|
896
|
+
_gp26.push((stripNocaseSpans(_v28) ? '\uE020part-number\uE021' + stripNocaseSpans(_v28) + '\uE022' : ''))
|
|
897
|
+
const _g25 = _gp26.filter(v => v !== '').join(" ")
|
|
898
|
+
return _g25
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
function macro_label_part_number_capitalized(item, ctx) {
|
|
902
|
+
const _gp30 = []
|
|
903
|
+
if ((item["part-number"] != null && /^\s*\d/.test(String(item["part-number"])))) {
|
|
904
|
+
const _v31 = (T["part:short"] != null ? (typeof T["part:short"] === 'string' ? T["part:short"] : (T["part:short"].single || '')) : '')
|
|
905
|
+
_gp30.push(applyTextCase(_v31, "capitalize-first"))
|
|
906
|
+
}
|
|
907
|
+
const _v32 = (item["part-number"] != null && item["part-number"] !== '' ? String(item["part-number"]) : '')
|
|
908
|
+
_gp30.push((applyTextCase(_v32, "capitalize-first") ? '\uE020part-number\uE021' + applyTextCase(_v32, "capitalize-first") + '\uE022' : ''))
|
|
909
|
+
const _g29 = _gp30.filter(v => v !== '').join(" ")
|
|
910
|
+
return _g29
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
function macro_label_supplement_number(item, ctx) {
|
|
914
|
+
const _gp34 = []
|
|
915
|
+
if ((item["supplement-number"] != null && /^\s*\d/.test(String(item["supplement-number"])))) {
|
|
916
|
+
const _v35 = (T["supplement:short"] != null ? (typeof T["supplement:short"] === 'string' ? T["supplement:short"] : (T["supplement:short"].single || '')) : '')
|
|
917
|
+
_gp34.push(_v35)
|
|
918
|
+
}
|
|
919
|
+
const _v36 = (item["supplement-number"] != null && item["supplement-number"] !== '' ? String(item["supplement-number"]) : '')
|
|
920
|
+
_gp34.push((stripNocaseSpans(_v36) ? '\uE020supplement-number\uE021' + stripNocaseSpans(_v36) + '\uE022' : ''))
|
|
921
|
+
const _g33 = _gp34.filter(v => v !== '').join(" ")
|
|
922
|
+
return _g33
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
function macro_label_version(item, ctx) {
|
|
926
|
+
const _v39 = (() => {
|
|
927
|
+
const _val = item.version
|
|
928
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
929
|
+
const _term = T["version"]
|
|
930
|
+
if (_term == null) return ''
|
|
931
|
+
if (typeof _term === 'string') return _term
|
|
932
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
933
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
934
|
+
})()
|
|
935
|
+
const _v40 = (item.version != null && item.version !== '' ? String(item.version) : '')
|
|
936
|
+
const _g37 = ((item.version == null || item.version === '')) ? '' : [_v39, (stripNocaseSpans(_v40) ? '\uE020version\uE021' + stripNocaseSpans(_v40) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
937
|
+
return _g37
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
function macro_label_version_capitalized(item, ctx) {
|
|
941
|
+
const _v43 = (() => {
|
|
942
|
+
const _val = item.version
|
|
943
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
944
|
+
const _term = T["version"]
|
|
945
|
+
if (_term == null) return ''
|
|
946
|
+
if (typeof _term === 'string') return _term
|
|
947
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
948
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
949
|
+
})()
|
|
950
|
+
const _v44 = (item.version != null && item.version !== '' ? String(item.version) : '')
|
|
951
|
+
const _g41 = ((item.version == null || item.version === '')) ? '' : [applyTextCase(_v43, "capitalize-first"), (stripNocaseSpans(_v44) ? '\uE020version\uE021' + stripNocaseSpans(_v44) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
952
|
+
return _g41
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
function macro_label_volume(item, ctx) {
|
|
956
|
+
const _gp46 = []
|
|
957
|
+
if ((item.volume != null && /^\s*\d/.test(String(item.volume)))) {
|
|
958
|
+
const _v47 = (() => {
|
|
959
|
+
const _val = item.volume
|
|
960
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
961
|
+
const _term = T["volume:short"]
|
|
962
|
+
if (_term == null) return ''
|
|
963
|
+
if (typeof _term === 'string') return _term
|
|
964
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
965
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
966
|
+
})()
|
|
967
|
+
_gp46.push(_v47)
|
|
968
|
+
}
|
|
969
|
+
const _v48 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
970
|
+
_gp46.push((stripNocaseSpans(_v48) ? '\uE020volume\uE021' + stripNocaseSpans(_v48) + '\uE022' : ''))
|
|
971
|
+
const _g45 = _gp46.filter(v => v !== '').join(" ")
|
|
972
|
+
return _g45
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
function macro_label_volume_capitalized(item, ctx) {
|
|
976
|
+
const _gp50 = []
|
|
977
|
+
if ((item.volume != null && /^\s*\d/.test(String(item.volume)))) {
|
|
978
|
+
const _v51 = (() => {
|
|
979
|
+
const _val = item.volume
|
|
980
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
981
|
+
const _term = T["volume:short"]
|
|
982
|
+
if (_term == null) return ''
|
|
983
|
+
if (typeof _term === 'string') return _term
|
|
984
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
985
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
986
|
+
})()
|
|
987
|
+
_gp50.push(applyTextCase(_v51, "capitalize-first"))
|
|
988
|
+
}
|
|
989
|
+
const _v52 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
|
|
990
|
+
_gp50.push((applyTextCase(_v52, "capitalize-first") ? '\uE020volume\uE021' + applyTextCase(_v52, "capitalize-first") + '\uE022' : ''))
|
|
991
|
+
const _g49 = _gp50.filter(v => v !== '').join(" ")
|
|
992
|
+
return _g49
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
function macro_author(item, ctx) {
|
|
996
|
+
let _n53 = ''
|
|
997
|
+
if (item.composer && item.composer.length) {
|
|
998
|
+
_n53 = formatNames(item.composer, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initialize":false,"nameAsSortOrder":"first","sortSeparator":", ","delimiterPrecedesEtAl":"always"}))
|
|
999
|
+
if (_n53) _n53 = '\uE020composer\uE021' + _n53 + '\uE022'
|
|
1000
|
+
}
|
|
1001
|
+
if (!_n53) {
|
|
1002
|
+
let _n54 = ''
|
|
1003
|
+
if (item.author && item.author.length) {
|
|
1004
|
+
_n54 = formatNames(item.author, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initialize":false,"nameAsSortOrder":"first","sortSeparator":", ","delimiterPrecedesEtAl":"always"}))
|
|
1005
|
+
if (_n54) _n54 = '\uE020author\uE021' + _n54 + '\uE022'
|
|
1006
|
+
}
|
|
1007
|
+
if (!_n53) _n53 = _n54
|
|
1008
|
+
let _n55 = ''
|
|
1009
|
+
if (item.guest && item.guest.length) {
|
|
1010
|
+
_n55 = formatNames(item.guest, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initialize":false,"nameAsSortOrder":"first","sortSeparator":", ","delimiterPrecedesEtAl":"always"}))
|
|
1011
|
+
if (_n55) _n55 = '\uE020guest\uE021' + _n55 + '\uE022'
|
|
1012
|
+
}
|
|
1013
|
+
if (!_n53) _n53 = _n55
|
|
1014
|
+
let _n56 = ''
|
|
1015
|
+
if (item["editor-translator"] && item["editor-translator"].length) {
|
|
1016
|
+
_n56 = formatNames(item["editor-translator"], _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initialize":false,"nameAsSortOrder":"first","sortSeparator":", ","delimiterPrecedesEtAl":"always"}))
|
|
1017
|
+
if (_n56) _n56 = '\uE020editor-translator\uE021' + _n56 + '\uE022'
|
|
1018
|
+
}
|
|
1019
|
+
if (!_n53) _n53 = _n56
|
|
1020
|
+
let _n57 = ''
|
|
1021
|
+
if (item.editor && item.editor.length) {
|
|
1022
|
+
_n57 = formatNames(item.editor, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initialize":false,"nameAsSortOrder":"first","sortSeparator":", ","delimiterPrecedesEtAl":"always"}))
|
|
1023
|
+
if (_n57) _n57 = '\uE020editor\uE021' + _n57 + '\uE022'
|
|
1024
|
+
}
|
|
1025
|
+
if (!_n53) _n53 = _n57
|
|
1026
|
+
let _n58 = ''
|
|
1027
|
+
if (item.translator && item.translator.length) {
|
|
1028
|
+
_n58 = formatNames(item.translator, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initialize":false,"nameAsSortOrder":"first","sortSeparator":", ","delimiterPrecedesEtAl":"always"}))
|
|
1029
|
+
if (_n58) _n58 = '\uE020translator\uE021' + _n58 + '\uE022'
|
|
1030
|
+
}
|
|
1031
|
+
if (!_n53) _n53 = _n58
|
|
1032
|
+
let _ch59 = ''
|
|
1033
|
+
if (item.type === "standard") {
|
|
1034
|
+
const _v60 = (item.authority != null && item.authority !== '' ? String(item.authority) : '')
|
|
1035
|
+
_ch59 = (stripNocaseSpans(_v60) ? '\uE020authority\uE021' + stripNocaseSpans(_v60) + '\uE022' : '')
|
|
1036
|
+
}
|
|
1037
|
+
if (!_n53) _n53 = _ch59
|
|
1038
|
+
const _v61 = macro_title(item, ctx)
|
|
1039
|
+
if (!_n53) _n53 = _v61
|
|
1040
|
+
}
|
|
1041
|
+
return _n53
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
function macro_author_short(item, ctx) {
|
|
1045
|
+
const _gp63 = []
|
|
1046
|
+
let _n64 = ''
|
|
1047
|
+
if (item.composer && item.composer.length) {
|
|
1048
|
+
_n64 = formatNames(item.composer, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1049
|
+
if (_n64) _n64 = '\uE020composer\uE021' + _n64 + '\uE022'
|
|
1050
|
+
}
|
|
1051
|
+
if (!_n64) {
|
|
1052
|
+
let _n65 = ''
|
|
1053
|
+
if (item.author && item.author.length) {
|
|
1054
|
+
_n65 = formatNames(item.author, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1055
|
+
if (_n65) _n65 = '\uE020author\uE021' + _n65 + '\uE022'
|
|
1056
|
+
}
|
|
1057
|
+
if (!_n64) _n64 = _n65
|
|
1058
|
+
let _n66 = ''
|
|
1059
|
+
if (item.guest && item.guest.length) {
|
|
1060
|
+
_n66 = formatNames(item.guest, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1061
|
+
if (_n66) _n66 = '\uE020guest\uE021' + _n66 + '\uE022'
|
|
1062
|
+
}
|
|
1063
|
+
if (!_n64) _n64 = _n66
|
|
1064
|
+
let _n67 = ''
|
|
1065
|
+
if (item["editor-translator"] && item["editor-translator"].length) {
|
|
1066
|
+
_n67 = formatNames(item["editor-translator"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1067
|
+
if (_n67) _n67 = '\uE020editor-translator\uE021' + _n67 + '\uE022'
|
|
1068
|
+
}
|
|
1069
|
+
if (!_n64) _n64 = _n67
|
|
1070
|
+
let _n68 = ''
|
|
1071
|
+
if (item.editor && item.editor.length) {
|
|
1072
|
+
_n68 = formatNames(item.editor, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1073
|
+
if (_n68) _n68 = '\uE020editor\uE021' + _n68 + '\uE022'
|
|
1074
|
+
}
|
|
1075
|
+
if (!_n64) _n64 = _n68
|
|
1076
|
+
let _n69 = ''
|
|
1077
|
+
if (item.translator && item.translator.length) {
|
|
1078
|
+
_n69 = formatNames(item.translator, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"sortSeparator":", ","form":"short"}))
|
|
1079
|
+
if (_n69) _n69 = '\uE020translator\uE021' + _n69 + '\uE022'
|
|
1080
|
+
}
|
|
1081
|
+
if (!_n64) _n64 = _n69
|
|
1082
|
+
let _ch70 = ''
|
|
1083
|
+
if (item.type === "standard") {
|
|
1084
|
+
const _v71 = (item.authority != null && item.authority !== '' ? String(item.authority) : '')
|
|
1085
|
+
_ch70 = (stripNocaseSpans(_v71) ? '\uE020authority\uE021' + stripNocaseSpans(_v71) + '\uE022' : '')
|
|
1086
|
+
}
|
|
1087
|
+
if (!_n64) _n64 = _ch70
|
|
1088
|
+
const _v72 = macro_title_short(item, ctx)
|
|
1089
|
+
if (!_n64) _n64 = _v72
|
|
1090
|
+
}
|
|
1091
|
+
_gp63.push(_n64)
|
|
1092
|
+
if (ctx.disambiguate) {
|
|
1093
|
+
const _v73 = macro_title_short(item, ctx)
|
|
1094
|
+
_gp63.push(_v73)
|
|
1095
|
+
}
|
|
1096
|
+
const _g62 = _gp63.filter(v => v !== '').join(", ")
|
|
1097
|
+
return _g62
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
function macro_title(item, ctx) {
|
|
1101
|
+
let _ch74 = ''
|
|
1102
|
+
if ((item.type === "post" || item.type === "webpage")) {
|
|
1103
|
+
const _v75 = macro_title_and_part_filter_review(item, ctx)
|
|
1104
|
+
_ch74 = _v75
|
|
1105
|
+
}
|
|
1106
|
+
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")) {
|
|
1107
|
+
const _v76 = macro_title_and_part_filter_review(item, ctx)
|
|
1108
|
+
_ch74 = _v76
|
|
1109
|
+
}
|
|
1110
|
+
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"] !== ''))) {
|
|
1111
|
+
const _v77 = macro_title_monographic(item, ctx)
|
|
1112
|
+
_ch74 = _v77
|
|
1113
|
+
}
|
|
1114
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
1115
|
+
const _v78 = macro_title_and_part_filter_review(item, ctx)
|
|
1116
|
+
_ch74 = _v78
|
|
1117
|
+
}
|
|
1118
|
+
else {
|
|
1119
|
+
const _v79 = macro_title_monographic(item, ctx)
|
|
1120
|
+
_ch74 = _v79
|
|
1121
|
+
}
|
|
1122
|
+
return _ch74
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
function macro_title_short(item, ctx) {
|
|
1126
|
+
let _ch80 = ''
|
|
1127
|
+
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"] !== ''))) {
|
|
1128
|
+
let _ch81 = ''
|
|
1129
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1130
|
+
const _v82 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1131
|
+
_ch81 = ((applyTextCase(_v82, "title") ? '“' + applyTextCase(_v82, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v82, "title") ? '“' + applyTextCase(_v82, "title") + '”' : '') + '\uE022' : '')
|
|
1132
|
+
}
|
|
1133
|
+
else if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') && (item["reviewed-title"] != null && item["reviewed-title"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1134
|
+
const _v83 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1135
|
+
_ch81 = ((applyTextCase(_v83, "title") ? '“' + applyTextCase(_v83, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v83, "title") ? '“' + applyTextCase(_v83, "title") + '”' : '') + '\uE022' : '')
|
|
1136
|
+
}
|
|
1137
|
+
else {
|
|
1138
|
+
const _v84 = macro_supplemental_generic_label_short(item, ctx)
|
|
1139
|
+
_ch81 = _v84
|
|
1140
|
+
}
|
|
1141
|
+
_ch80 = _ch81
|
|
1142
|
+
}
|
|
1143
|
+
else if ((item.title != null && item.title !== '')) {
|
|
1144
|
+
const _v85 = macro_title_primary_short(item, ctx)
|
|
1145
|
+
_ch80 = _v85
|
|
1146
|
+
}
|
|
1147
|
+
else {
|
|
1148
|
+
const _v86 = macro_supplemental_generic_label_short(item, ctx)
|
|
1149
|
+
_ch80 = _v86
|
|
1150
|
+
}
|
|
1151
|
+
return _ch80
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
function macro_title_and_part_filter_review(item, ctx) {
|
|
1155
|
+
let _ch87 = ''
|
|
1156
|
+
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"] !== ''))) {
|
|
1157
|
+
let _ch88 = ''
|
|
1158
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
1159
|
+
const _v89 = macro_title_and_part_title(item, ctx)
|
|
1160
|
+
_ch88 = _v89
|
|
1161
|
+
}
|
|
1162
|
+
_ch87 = _ch88
|
|
1163
|
+
}
|
|
1164
|
+
else {
|
|
1165
|
+
const _v90 = macro_title_and_part_title(item, ctx)
|
|
1166
|
+
_ch87 = _v90
|
|
1167
|
+
}
|
|
1168
|
+
return _ch87
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
function macro_title_and_part_title(item, ctx) {
|
|
1172
|
+
const _v93 = macro_title_primary(item, ctx)
|
|
1173
|
+
const _v94 = macro_label_part_number(item, ctx)
|
|
1174
|
+
const _v95 = macro_title_part(item, ctx)
|
|
1175
|
+
const _g91 = (!macro_title_primary(item, ctx) && !macro_label_part_number(item, ctx) && !macro_title_part(item, ctx)) ? '' : [_v93, _v94, _v95].filter(v => v !== '').join(", ")
|
|
1176
|
+
return _g91
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
function macro_title_monographic(item, ctx) {
|
|
1180
|
+
let _ch96 = ''
|
|
1181
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
1182
|
+
const _v97 = macro_title_primary(item, ctx)
|
|
1183
|
+
_ch96 = _v97
|
|
1184
|
+
}
|
|
1185
|
+
else if ((item["part-title"] != null && item["part-title"] !== '')) {
|
|
1186
|
+
const _v98 = (item["part-title"] != null && item["part-title"] !== '' ? String(item["part-title"]) : '')
|
|
1187
|
+
_ch96 = ((applyTextCase(_v98, "title") ? '\uE000' + applyTextCase(_v98, "title") + '\uE001' : '') ? '\uE020part-title\uE021' + (applyTextCase(_v98, "title") ? '\uE000' + applyTextCase(_v98, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1188
|
+
}
|
|
1189
|
+
else if ((item["volume-title"] != null && item["volume-title"] !== '')) {
|
|
1190
|
+
const _v99 = (item["volume-title"] != null && item["volume-title"] !== '' ? String(item["volume-title"]) : '')
|
|
1191
|
+
_ch96 = ((applyTextCase(_v99, "title") ? '\uE000' + applyTextCase(_v99, "title") + '\uE001' : '') ? '\uE020volume-title\uE021' + (applyTextCase(_v99, "title") ? '\uE000' + applyTextCase(_v99, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1192
|
+
}
|
|
1193
|
+
else {
|
|
1194
|
+
const _v100 = macro_title_primary(item, ctx)
|
|
1195
|
+
_ch96 = _v100
|
|
1196
|
+
}
|
|
1197
|
+
return _ch96
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
function macro_title_part(item, ctx) {
|
|
1201
|
+
let _ch101 = ''
|
|
1202
|
+
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")) {
|
|
1203
|
+
const _v102 = (item["part-title"] != null && item["part-title"] !== '' ? String(item["part-title"]) : '')
|
|
1204
|
+
_ch101 = ((applyTextCase(_v102, "title") ? '“' + applyTextCase(_v102, "title") + '”' : '') ? '\uE020part-title\uE021' + (applyTextCase(_v102, "title") ? '“' + applyTextCase(_v102, "title") + '”' : '') + '\uE022' : '')
|
|
1205
|
+
}
|
|
1206
|
+
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"] !== ''))) {
|
|
1207
|
+
const _v103 = (item["part-title"] != null && item["part-title"] !== '' ? String(item["part-title"]) : '')
|
|
1208
|
+
_ch101 = ((applyTextCase(_v103, "title") ? '\uE000' + applyTextCase(_v103, "title") + '\uE001' : '') ? '\uE020part-title\uE021' + (applyTextCase(_v103, "title") ? '\uE000' + applyTextCase(_v103, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1209
|
+
}
|
|
1210
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
1211
|
+
const _v104 = (item["part-title"] != null && item["part-title"] !== '' ? String(item["part-title"]) : '')
|
|
1212
|
+
_ch101 = ((applyTextCase(_v104, "title") ? '“' + applyTextCase(_v104, "title") + '”' : '') ? '\uE020part-title\uE021' + (applyTextCase(_v104, "title") ? '“' + applyTextCase(_v104, "title") + '”' : '') + '\uE022' : '')
|
|
1213
|
+
}
|
|
1214
|
+
else {
|
|
1215
|
+
const _v105 = (item["part-title"] != null && item["part-title"] !== '' ? String(item["part-title"]) : '')
|
|
1216
|
+
_ch101 = ((applyTextCase(_v105, "title") ? '\uE000' + applyTextCase(_v105, "title") + '\uE001' : '') ? '\uE020part-title\uE021' + (applyTextCase(_v105, "title") ? '\uE000' + applyTextCase(_v105, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1217
|
+
}
|
|
1218
|
+
return _ch101
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
function macro_title_primary(item, ctx) {
|
|
1222
|
+
let _ch106 = ''
|
|
1223
|
+
if ((item.type === "bill" || item.type === "collection" || item.type === "legislation" || item.type === "regulation" || item.type === "treaty")) {
|
|
1224
|
+
const _v107 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1225
|
+
_ch106 = (applyTextCase(_v107, "title") ? '\uE020title\uE021' + applyTextCase(_v107, "title") + '\uE022' : '')
|
|
1226
|
+
}
|
|
1227
|
+
else if (item.type === "legal_case") {
|
|
1228
|
+
const _v108 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1229
|
+
_ch106 = ((stripNocaseSpans(_v108) ? '\uE000' + stripNocaseSpans(_v108) + '\uE001' : '') ? '\uE020title\uE021' + (stripNocaseSpans(_v108) ? '\uE000' + stripNocaseSpans(_v108) + '\uE001' : '') + '\uE022' : '')
|
|
1230
|
+
}
|
|
1231
|
+
else if ((item.type === "book" || item.type === "classic" || item.type === "graphic" || item.type === "hearing" || item.type === "map" || item.type === "periodical")) {
|
|
1232
|
+
const _v109 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1233
|
+
_ch106 = ((applyTextCase(_v109, "title") ? '\uE000' + applyTextCase(_v109, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v109, "title") ? '\uE000' + applyTextCase(_v109, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1234
|
+
}
|
|
1235
|
+
else if (item.type === "post") {
|
|
1236
|
+
const _v110 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1237
|
+
_ch106 = ((stripNocaseSpans(_v110) ? '“' + stripNocaseSpans(_v110) + '”' : '') ? '\uE020title\uE021' + (stripNocaseSpans(_v110) ? '“' + stripNocaseSpans(_v110) + '”' : '') + '\uE022' : '')
|
|
1238
|
+
}
|
|
1239
|
+
else if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
1240
|
+
const _v111 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1241
|
+
_ch106 = ((applyTextCase(_v111, "title") ? '“' + applyTextCase(_v111, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v111, "title") ? '“' + applyTextCase(_v111, "title") + '”' : '') + '\uE022' : '')
|
|
1242
|
+
}
|
|
1243
|
+
else if ((item.type === "article" || item.type === "dataset" || item.type === "document" || item.type === "interview" || item.type === "manuscript" || item.type === "paper-conference" || item.type === "personal_communication" || item.type === "speech")) {
|
|
1244
|
+
const _v112 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1245
|
+
_ch106 = ((applyTextCase(_v112, "title") ? '“' + applyTextCase(_v112, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v112, "title") ? '“' + applyTextCase(_v112, "title") + '”' : '') + '\uE022' : '')
|
|
1246
|
+
}
|
|
1247
|
+
else {
|
|
1248
|
+
const _v113 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1249
|
+
_ch106 = ((applyTextCase(_v113, "title") ? '\uE000' + applyTextCase(_v113, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v113, "title") ? '\uE000' + applyTextCase(_v113, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1250
|
+
}
|
|
1251
|
+
return _ch106
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
function macro_title_primary_short(item, ctx) {
|
|
1255
|
+
let _ch114 = ''
|
|
1256
|
+
if ((item.type === "bill" || item.type === "collection" || item.type === "legislation" || item.type === "regulation" || item.type === "treaty")) {
|
|
1257
|
+
const _v115 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1258
|
+
_ch114 = (applyTextCase(_v115, "title") ? '\uE020title\uE021' + applyTextCase(_v115, "title") + '\uE022' : '')
|
|
1259
|
+
}
|
|
1260
|
+
else if (item.type === "legal_case") {
|
|
1261
|
+
const _v116 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1262
|
+
_ch114 = ((stripNocaseSpans(_v116) ? '\uE000' + stripNocaseSpans(_v116) + '\uE001' : '') ? '\uE020title\uE021' + (stripNocaseSpans(_v116) ? '\uE000' + stripNocaseSpans(_v116) + '\uE001' : '') + '\uE022' : '')
|
|
1263
|
+
}
|
|
1264
|
+
else if ((item.type === "book" || item.type === "classic" || item.type === "graphic" || item.type === "hearing" || item.type === "map" || item.type === "periodical")) {
|
|
1265
|
+
const _v117 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1266
|
+
_ch114 = ((applyTextCase(_v117, "title") ? '\uE000' + applyTextCase(_v117, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v117, "title") ? '\uE000' + applyTextCase(_v117, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1267
|
+
}
|
|
1268
|
+
else if (item.type === "post") {
|
|
1269
|
+
const _v118 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1270
|
+
_ch114 = ((stripNocaseSpans(_v118) ? '“' + stripNocaseSpans(_v118) + '”' : '') ? '\uE020title\uE021' + (stripNocaseSpans(_v118) ? '“' + stripNocaseSpans(_v118) + '”' : '') + '\uE022' : '')
|
|
1271
|
+
}
|
|
1272
|
+
else if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
1273
|
+
const _v119 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1274
|
+
_ch114 = ((applyTextCase(_v119, "title") ? '“' + applyTextCase(_v119, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v119, "title") ? '“' + applyTextCase(_v119, "title") + '”' : '') + '\uE022' : '')
|
|
1275
|
+
}
|
|
1276
|
+
else if ((item.type === "article" || item.type === "dataset" || item.type === "document" || item.type === "interview" || item.type === "manuscript" || item.type === "paper-conference" || item.type === "personal_communication" || item.type === "speech")) {
|
|
1277
|
+
const _v120 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1278
|
+
_ch114 = ((applyTextCase(_v120, "title") ? '“' + applyTextCase(_v120, "title") + '”' : '') ? '\uE020title\uE021' + (applyTextCase(_v120, "title") ? '“' + applyTextCase(_v120, "title") + '”' : '') + '\uE022' : '')
|
|
1279
|
+
}
|
|
1280
|
+
else {
|
|
1281
|
+
const _v121 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1282
|
+
_ch114 = ((applyTextCase(_v121, "title") ? '\uE000' + applyTextCase(_v121, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v121, "title") ? '\uE000' + applyTextCase(_v121, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1283
|
+
}
|
|
1284
|
+
return _ch114
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
function macro_supplemental_element_after_title(item, ctx) {
|
|
1288
|
+
const _v124 = macro_supplemental_contributor(item, ctx)
|
|
1289
|
+
const _v125 = macro_supplemental_original_date(item, ctx)
|
|
1290
|
+
const _v126 = macro_supplemental_generic_label(item, ctx)
|
|
1291
|
+
const _g122 = (!macro_supplemental_contributor(item, ctx) && !macro_supplemental_original_date(item, ctx) && !macro_supplemental_generic_label(item, ctx)) ? '' : [_v124, _v125, _v126].filter(v => v !== '').join(", ")
|
|
1292
|
+
return _g122
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
function macro_supplemental_contributor(item, ctx) {
|
|
1296
|
+
let _n127 = ''
|
|
1297
|
+
if (item.interviewer && item.interviewer.length) {
|
|
1298
|
+
_n127 = formatNames(item.interviewer, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1299
|
+
if (_n127) _n127 = '\uE020interviewer\uE021' + _n127 + '\uE022'
|
|
1300
|
+
}
|
|
1301
|
+
return _n127
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
function macro_supplemental_original_date(item, ctx) {
|
|
1305
|
+
let _ch128 = ''
|
|
1306
|
+
if (item.type === "personal_communication") {
|
|
1307
|
+
const _v129 = macro_container1_location_event(item, ctx)
|
|
1308
|
+
_ch128 = _v129
|
|
1309
|
+
}
|
|
1310
|
+
else if (((item["original-publisher"] != null && item["original-publisher"] !== '') || (item["original-publisher-place"] != null && item["original-publisher-place"] !== ''))) {
|
|
1311
|
+
_ch128 = [].filter(v => v !== '').join('')
|
|
1312
|
+
}
|
|
1313
|
+
else if ((item["original-date"] && item["original-date"].circa)) {
|
|
1314
|
+
const _d130 = item["original-date"] ? formatDate(item["original-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"}}) : ''
|
|
1315
|
+
_ch128 = ((_d130 ? "[" + _d130 + "?]" : '') ? '\uE020original-date\uE021' + (_d130 ? "[" + _d130 + "?]" : '') + '\uE022' : '')
|
|
1316
|
+
}
|
|
1317
|
+
else {
|
|
1318
|
+
const _d131 = item["original-date"] ? formatDate(item["original-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"}}) : ''
|
|
1319
|
+
_ch128 = (_d131 ? '\uE020original-date\uE021' + _d131 + '\uE022' : '')
|
|
1320
|
+
}
|
|
1321
|
+
return _ch128
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
function macro_supplemental_generic_label(item, ctx) {
|
|
1325
|
+
let _ch132 = ''
|
|
1326
|
+
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"] !== ''))) {
|
|
1327
|
+
const _v133 = macro_supplemental_generic_label_review(item, ctx)
|
|
1328
|
+
_ch132 = _v133
|
|
1329
|
+
}
|
|
1330
|
+
else if (item.type === "thesis") {
|
|
1331
|
+
_ch132 = [].filter(v => v !== '').join('')
|
|
1332
|
+
}
|
|
1333
|
+
else if ((item.number != null && item.number !== '')) {
|
|
1334
|
+
_ch132 = [].filter(v => v !== '').join('')
|
|
1335
|
+
}
|
|
1336
|
+
else {
|
|
1337
|
+
const _v134 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
1338
|
+
_ch132 = (applyTextCase(_v134, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v134, "capitalize-first") + '\uE022' : '')
|
|
1339
|
+
}
|
|
1340
|
+
return _ch132
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
function macro_supplemental_generic_label_short(item, ctx) {
|
|
1344
|
+
let _ch135 = ''
|
|
1345
|
+
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"] !== ''))) {
|
|
1346
|
+
const _v136 = macro_supplemental_generic_label_review_short(item, ctx)
|
|
1347
|
+
_ch135 = _v136
|
|
1348
|
+
}
|
|
1349
|
+
else {
|
|
1350
|
+
const _v137 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
1351
|
+
_ch135 = (applyTextCase(_v137, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v137, "capitalize-first") + '\uE022' : '')
|
|
1352
|
+
}
|
|
1353
|
+
return _ch135
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
function macro_supplemental_generic_label_review(item, ctx) {
|
|
1357
|
+
const _gp139 = []
|
|
1358
|
+
if ((item["reviewed-genre"] != null && item["reviewed-genre"] !== '')) {
|
|
1359
|
+
const _v140 = (T["review-of"] != null ? (typeof T["review-of"] === 'string' ? T["review-of"] : (T["review-of"].single || '')) : '')
|
|
1360
|
+
_gp139.push(applyTextCase(_v140, "capitalize-first"))
|
|
1361
|
+
const _v141 = (item["reviewed-genre"] != null && item["reviewed-genre"] !== '' ? String(item["reviewed-genre"]) : '')
|
|
1362
|
+
_gp139.push((stripNocaseSpans(_v141) ? '\uE020reviewed-genre\uE021' + stripNocaseSpans(_v141) + '\uE022' : ''))
|
|
1363
|
+
let _ch142 = ''
|
|
1364
|
+
if (!((item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
1365
|
+
let _n143 = ''
|
|
1366
|
+
if (item["reviewed-author"] && item["reviewed-author"].length) {
|
|
1367
|
+
_n143 = formatNames(item["reviewed-author"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1368
|
+
if (_n143) _n143 = '\uE020reviewed-author\uE021' + _n143 + '\uE022'
|
|
1369
|
+
}
|
|
1370
|
+
_ch142 = _n143
|
|
1371
|
+
}
|
|
1372
|
+
_gp139.push(_ch142)
|
|
1373
|
+
}
|
|
1374
|
+
else if ((item.number != null && item.number !== '')) {
|
|
1375
|
+
const _v144 = (T["review-of"] != null ? (typeof T["review-of"] === 'string' ? T["review-of"] : (T["review-of"].single || '')) : '')
|
|
1376
|
+
_gp139.push(applyTextCase(_v144, "capitalize-first"))
|
|
1377
|
+
}
|
|
1378
|
+
else if ((item.genre != null && item.genre !== '')) {
|
|
1379
|
+
const _v145 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
1380
|
+
_gp139.push((applyTextCase(_v145, "capitalize-first") ? '\uE020genre\uE021' + applyTextCase(_v145, "capitalize-first") + '\uE022' : ''))
|
|
1381
|
+
}
|
|
1382
|
+
else {
|
|
1383
|
+
const _v146 = (T["review-of"] != null ? (typeof T["review-of"] === 'string' ? T["review-of"] : (T["review-of"].single || '')) : '')
|
|
1384
|
+
_gp139.push(applyTextCase(_v146, "capitalize-first"))
|
|
1385
|
+
}
|
|
1386
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
1387
|
+
const _v147 = (item["reviewed-title"] != null && item["reviewed-title"] !== '' ? String(item["reviewed-title"]) : '')
|
|
1388
|
+
_gp139.push(((applyTextCase(_v147, "title") ? '\uE000' + applyTextCase(_v147, "title") + '\uE001' : '') ? '\uE020reviewed-title\uE021' + (applyTextCase(_v147, "title") ? '\uE000' + applyTextCase(_v147, "title") + '\uE001' : '') + '\uE022' : ''))
|
|
1389
|
+
}
|
|
1390
|
+
else {
|
|
1391
|
+
const _v148 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1392
|
+
_gp139.push(((applyTextCase(_v148, "title") ? '\uE000' + applyTextCase(_v148, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v148, "title") ? '\uE000' + applyTextCase(_v148, "title") + '\uE001' : '') + '\uE022' : ''))
|
|
1393
|
+
}
|
|
1394
|
+
const _g138 = _gp139.filter(v => v !== '').join(" ")
|
|
1395
|
+
let _ch149 = ''
|
|
1396
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') && (item["reviewed-title"] != null && item["reviewed-title"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1397
|
+
let _n150 = ''
|
|
1398
|
+
if (item["reviewed-author"] && item["reviewed-author"].length) {
|
|
1399
|
+
_n150 = formatNames(item["reviewed-author"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1400
|
+
if (_n150) _n150 = '\uE020reviewed-author\uE021' + _n150 + '\uE022'
|
|
1401
|
+
}
|
|
1402
|
+
_ch149 = _n150
|
|
1403
|
+
}
|
|
1404
|
+
else if ((item["reviewed-genre"] != null && item["reviewed-genre"] !== '')) {
|
|
1405
|
+
_ch149 = [].filter(v => v !== '').join('')
|
|
1406
|
+
}
|
|
1407
|
+
else {
|
|
1408
|
+
let _n151 = ''
|
|
1409
|
+
if (item["reviewed-author"] && item["reviewed-author"].length) {
|
|
1410
|
+
_n151 = formatNames(item["reviewed-author"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1411
|
+
if (_n151) _n151 = '\uE020reviewed-author\uE021' + _n151 + '\uE022'
|
|
1412
|
+
}
|
|
1413
|
+
_ch149 = _n151
|
|
1414
|
+
}
|
|
1415
|
+
return [_g138, _ch149].filter(v => v !== '').join('')
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
function macro_supplemental_generic_label_review_short(item, ctx) {
|
|
1419
|
+
const _gp153 = []
|
|
1420
|
+
const _v154 = (T["review-of"] != null ? (typeof T["review-of"] === 'string' ? T["review-of"] : (T["review-of"].single || '')) : '')
|
|
1421
|
+
_gp153.push(_v154)
|
|
1422
|
+
if (((item["reviewed-genre"] != null && item["reviewed-genre"] !== '') || (item["reviewed-title"] != null && item["reviewed-title"] !== ''))) {
|
|
1423
|
+
const _v155 = (item["reviewed-title"] != null && item["reviewed-title"] !== '' ? String(item["reviewed-title"]) : '')
|
|
1424
|
+
_gp153.push(((applyTextCase(_v155, "title") ? '\uE000' + applyTextCase(_v155, "title") + '\uE001' : '') ? '\uE020reviewed-title\uE021' + (applyTextCase(_v155, "title") ? '\uE000' + applyTextCase(_v155, "title") + '\uE001' : '') + '\uE022' : ''))
|
|
1425
|
+
}
|
|
1426
|
+
else {
|
|
1427
|
+
const _v156 = (item.title != null && item.title !== '' ? String(item.title) : '')
|
|
1428
|
+
_gp153.push(((applyTextCase(_v156, "title") ? '\uE000' + applyTextCase(_v156, "title") + '\uE001' : '') ? '\uE020title\uE021' + (applyTextCase(_v156, "title") ? '\uE000' + applyTextCase(_v156, "title") + '\uE001' : '') + '\uE022' : ''))
|
|
1429
|
+
}
|
|
1430
|
+
const _g152 = _gp153.filter(v => v !== '').join(" ")
|
|
1431
|
+
return _g152
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
function macro_container1(item, ctx) {
|
|
1435
|
+
const _v159 = macro_container1_title(item, ctx)
|
|
1436
|
+
const _v160 = macro_container1_contributor(item, ctx)
|
|
1437
|
+
const _v161 = macro_container1_version(item, ctx)
|
|
1438
|
+
const _v162 = macro_container1_number(item, ctx)
|
|
1439
|
+
const _v163 = macro_container1_publisher(item, ctx)
|
|
1440
|
+
const _v164 = macro_container1_publication_date(item, ctx)
|
|
1441
|
+
const _v165 = macro_container1_location(item, ctx)
|
|
1442
|
+
const _g157 = (!macro_container1_title(item, ctx) && !macro_container1_contributor(item, ctx) && !macro_container1_version(item, ctx) && !macro_container1_number(item, ctx) && !macro_container1_publisher(item, ctx) && !macro_container1_publication_date(item, ctx) && !macro_container1_location(item, ctx)) ? '' : [_v159, _v160, _v161, _v162, _v163, _v164, _v165].filter(v => v !== '').join(", ")
|
|
1443
|
+
return _g157
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
function macro_container1_title(item, ctx) {
|
|
1447
|
+
let _ch166 = ''
|
|
1448
|
+
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")) {
|
|
1449
|
+
const _v167 = macro_container1_title_serial(item, ctx)
|
|
1450
|
+
_ch166 = _v167
|
|
1451
|
+
}
|
|
1452
|
+
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"] !== ''))) {
|
|
1453
|
+
const _v168 = macro_container1_title_monographic(item, ctx)
|
|
1454
|
+
_ch166 = _v168
|
|
1455
|
+
}
|
|
1456
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
1457
|
+
const _v169 = macro_container1_title_serial(item, ctx)
|
|
1458
|
+
_ch166 = _v169
|
|
1459
|
+
}
|
|
1460
|
+
else {
|
|
1461
|
+
const _v170 = macro_container1_title_monographic(item, ctx)
|
|
1462
|
+
_ch166 = _v170
|
|
1463
|
+
}
|
|
1464
|
+
return _ch166
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
function macro_container1_title_serial(item, ctx) {
|
|
1468
|
+
const _v173 = (item["volume-title"] != null && item["volume-title"] !== '' ? String(item["volume-title"]) : '')
|
|
1469
|
+
const _gp175 = []
|
|
1470
|
+
if (!((item["container-title"] != null && item["container-title"] !== ''))) {
|
|
1471
|
+
}
|
|
1472
|
+
else if (((item["supplement-number"] != null && item["supplement-number"] !== '') && (item["volume-title"] != null && item["volume-title"] !== ''))) {
|
|
1473
|
+
const _v176 = (T["supplement"] != null ? (typeof T["supplement"] === 'string' ? T["supplement"] : (T["supplement"].single || '')) : '')
|
|
1474
|
+
_gp175.push(_v176)
|
|
1475
|
+
const _v177 = "to"
|
|
1476
|
+
_gp175.push(_v177)
|
|
1477
|
+
}
|
|
1478
|
+
else if ((item.type === "periodical" && (item["supplement-number"] != null && item["supplement-number"] !== '') && (item.title != null && item.title !== ''))) {
|
|
1479
|
+
const _v178 = (T["supplement"] != null ? (typeof T["supplement"] === 'string' ? T["supplement"] : (T["supplement"].single || '')) : '')
|
|
1480
|
+
_gp175.push(applyTextCase(_v178, "capitalize-first"))
|
|
1481
|
+
const _v179 = "to"
|
|
1482
|
+
_gp175.push(_v179)
|
|
1483
|
+
}
|
|
1484
|
+
else if ((item.type === "periodical" && (item["volume-title"] != null && item["volume-title"] !== ''))) {
|
|
1485
|
+
const _v180 = (T["special-issue"] != null ? (typeof T["special-issue"] === 'string' ? T["special-issue"] : (T["special-issue"].single || '')) : '')
|
|
1486
|
+
_gp175.push(applyTextCase(_v180, "capitalize-first"))
|
|
1487
|
+
const _v181 = "of"
|
|
1488
|
+
_gp175.push(_v181)
|
|
1489
|
+
}
|
|
1490
|
+
else if ((item.type === "periodical" && (item.title != null && item.title !== ''))) {
|
|
1491
|
+
const _v182 = (T["special-issue"] != null ? (typeof T["special-issue"] === 'string' ? T["special-issue"] : (T["special-issue"].single || '')) : '')
|
|
1492
|
+
_gp175.push(applyTextCase(_v182, "capitalize-first"))
|
|
1493
|
+
const _v183 = "of"
|
|
1494
|
+
_gp175.push(_v183)
|
|
1495
|
+
}
|
|
1496
|
+
else if ((item["volume-title"] != null && item["volume-title"] !== '')) {
|
|
1497
|
+
const _v184 = (T["special-issue"] != null ? (typeof T["special-issue"] === 'string' ? T["special-issue"] : (T["special-issue"].single || '')) : '')
|
|
1498
|
+
_gp175.push(_v184)
|
|
1499
|
+
const _v185 = "of"
|
|
1500
|
+
_gp175.push(_v185)
|
|
1501
|
+
}
|
|
1502
|
+
const _v186 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
1503
|
+
_gp175.push(((applyTextCase(_v186, "title") ? '\uE000' + applyTextCase(_v186, "title") + '\uE001' : '') ? '\uE020container-title\uE021' + (applyTextCase(_v186, "title") ? '\uE000' + applyTextCase(_v186, "title") + '\uE001' : '') + '\uE022' : ''))
|
|
1504
|
+
const _v187 = (item["publisher-place"] != null && item["publisher-place"] !== '' ? String(item["publisher-place"]) : '')
|
|
1505
|
+
_gp175.push(((stripNocaseSpans(_v187) ? "[" + stripNocaseSpans(_v187) + "]" : '') ? '\uE020publisher-place\uE021' + (stripNocaseSpans(_v187) ? "[" + stripNocaseSpans(_v187) + "]" : '') + '\uE022' : ''))
|
|
1506
|
+
const _g174 = _gp175.filter(v => v !== '').join(" ")
|
|
1507
|
+
const _g171 = ((item["volume-title"] == null || item["volume-title"] === '') && (item["container-title"] == null || item["container-title"] === '') && (item["publisher-place"] == null || item["publisher-place"] === '')) ? '' : [((applyTextCase(_v173, "title") ? '\uE000' + applyTextCase(_v173, "title") + '\uE001' : '') ? '\uE020volume-title\uE021' + (applyTextCase(_v173, "title") ? '\uE000' + applyTextCase(_v173, "title") + '\uE001' : '') + '\uE022' : ''), _g174].filter(v => v !== '').join(", ")
|
|
1508
|
+
return _g171
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
function macro_container1_title_monographic(item, ctx) {
|
|
1512
|
+
let _ch188 = ''
|
|
1513
|
+
if (((item["container-title"] != null && item["container-title"] !== '') && (item["part-title"] != null && item["part-title"] !== ''))) {
|
|
1514
|
+
const _v189 = (item["part-title"] != null && item["part-title"] !== '' ? String(item["part-title"]) : '')
|
|
1515
|
+
_ch188 = ((applyTextCase(_v189, "title") ? '\uE000' + applyTextCase(_v189, "title") + '\uE001' : '') ? '\uE020part-title\uE021' + (applyTextCase(_v189, "title") ? '\uE000' + applyTextCase(_v189, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1516
|
+
}
|
|
1517
|
+
else if (((item["container-title"] != null && item["container-title"] !== '') && (item["volume-title"] != null && item["volume-title"] !== ''))) {
|
|
1518
|
+
const _v190 = (item["volume-title"] != null && item["volume-title"] !== '' ? String(item["volume-title"]) : '')
|
|
1519
|
+
_ch188 = ((applyTextCase(_v190, "title") ? '\uE000' + applyTextCase(_v190, "title") + '\uE001' : '') ? '\uE020volume-title\uE021' + (applyTextCase(_v190, "title") ? '\uE000' + applyTextCase(_v190, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1520
|
+
}
|
|
1521
|
+
else {
|
|
1522
|
+
const _v191 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
1523
|
+
_ch188 = ((applyTextCase(_v191, "title") ? '\uE000' + applyTextCase(_v191, "title") + '\uE001' : '') ? '\uE020container-title\uE021' + (applyTextCase(_v191, "title") ? '\uE000' + applyTextCase(_v191, "title") + '\uE001' : '') + '\uE022' : '')
|
|
1524
|
+
}
|
|
1525
|
+
return _ch188
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
function macro_container1_contributor(item, ctx) {
|
|
1529
|
+
const _gp193 = []
|
|
1530
|
+
let _n194 = ''
|
|
1531
|
+
if (item["container-author"] && item["container-author"].length) {
|
|
1532
|
+
_n194 = formatNames(item["container-author"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1533
|
+
if (_n194) _n194 = '\uE020container-author\uE021' + _n194 + '\uE022'
|
|
1534
|
+
}
|
|
1535
|
+
_gp193.push(_n194)
|
|
1536
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
1537
|
+
let _n195 = ''
|
|
1538
|
+
if (item["editor-translator"] && item["editor-translator"].length) {
|
|
1539
|
+
_n195 = formatNames(item["editor-translator"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1540
|
+
if (_n195) _n195 = '\uE020editor-translator\uE021' + _n195 + '\uE022'
|
|
1541
|
+
}
|
|
1542
|
+
_gp193.push(_n195)
|
|
1543
|
+
let _n196 = ''
|
|
1544
|
+
if (item.editor && item.editor.length) {
|
|
1545
|
+
_n196 = formatNames(item.editor, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1546
|
+
if (_n196) _n196 = '\uE020editor\uE021' + _n196 + '\uE022'
|
|
1547
|
+
}
|
|
1548
|
+
else if (item.translator && item.translator.length) {
|
|
1549
|
+
_n196 = formatNames(item.translator, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1550
|
+
const _v197 = (() => {
|
|
1551
|
+
const _val = item.translator
|
|
1552
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1553
|
+
const _term = T["translator:verb"]
|
|
1554
|
+
if (_term == null) return ''
|
|
1555
|
+
if (typeof _term === 'string') return _term
|
|
1556
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1557
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1558
|
+
})()
|
|
1559
|
+
if (_n196) _n196 += ' ' + (_v197 ? _v197 + " " : '')
|
|
1560
|
+
if (_n196) _n196 = '\uE020translator\uE021' + _n196 + '\uE022'
|
|
1561
|
+
}
|
|
1562
|
+
_gp193.push(_n196)
|
|
1563
|
+
let _n198 = ''
|
|
1564
|
+
if (item.director && item.director.length) {
|
|
1565
|
+
_n198 = formatNames(item.director, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1566
|
+
if (_n198) _n198 = '\uE020director\uE021' + _n198 + '\uE022'
|
|
1567
|
+
}
|
|
1568
|
+
else if (item["series-creator"] && item["series-creator"].length) {
|
|
1569
|
+
_n198 = formatNames(item["series-creator"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1570
|
+
const _v199 = (() => {
|
|
1571
|
+
const _val = item["series-creator"]
|
|
1572
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1573
|
+
const _term = T["series-creator:verb"]
|
|
1574
|
+
if (_term == null) return ''
|
|
1575
|
+
if (typeof _term === 'string') return _term
|
|
1576
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1577
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1578
|
+
})()
|
|
1579
|
+
if (_n198) _n198 += ' ' + (_v199 ? _v199 + " " : '')
|
|
1580
|
+
if (_n198) _n198 = '\uE020series-creator\uE021' + _n198 + '\uE022'
|
|
1581
|
+
}
|
|
1582
|
+
else if (item.illustrator && item.illustrator.length) {
|
|
1583
|
+
_n198 = formatNames(item.illustrator, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1584
|
+
const _v200 = (() => {
|
|
1585
|
+
const _val = item.illustrator
|
|
1586
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1587
|
+
const _term = T["illustrator:verb"]
|
|
1588
|
+
if (_term == null) return ''
|
|
1589
|
+
if (typeof _term === 'string') return _term
|
|
1590
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1591
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1592
|
+
})()
|
|
1593
|
+
if (_n198) _n198 += ' ' + (_v200 ? _v200 + " " : '')
|
|
1594
|
+
if (_n198) _n198 = '\uE020illustrator\uE021' + _n198 + '\uE022'
|
|
1595
|
+
}
|
|
1596
|
+
else if (item.host && item.host.length) {
|
|
1597
|
+
_n198 = formatNames(item.host, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1598
|
+
const _v201 = (() => {
|
|
1599
|
+
const _val = item.host
|
|
1600
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1601
|
+
const _term = T["host:verb"]
|
|
1602
|
+
if (_term == null) return ''
|
|
1603
|
+
if (typeof _term === 'string') return _term
|
|
1604
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1605
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1606
|
+
})()
|
|
1607
|
+
if (_n198) _n198 += ' ' + (_v201 ? _v201 + " " : '')
|
|
1608
|
+
if (_n198) _n198 = '\uE020host\uE021' + _n198 + '\uE022'
|
|
1609
|
+
}
|
|
1610
|
+
else if (item.narrator && item.narrator.length) {
|
|
1611
|
+
_n198 = formatNames(item.narrator, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1612
|
+
const _v202 = (() => {
|
|
1613
|
+
const _val = item.narrator
|
|
1614
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1615
|
+
const _term = T["narrator:verb"]
|
|
1616
|
+
if (_term == null) return ''
|
|
1617
|
+
if (typeof _term === 'string') return _term
|
|
1618
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1619
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1620
|
+
})()
|
|
1621
|
+
if (_n198) _n198 += ' ' + (_v202 ? _v202 + " " : '')
|
|
1622
|
+
if (_n198) _n198 = '\uE020narrator\uE021' + _n198 + '\uE022'
|
|
1623
|
+
}
|
|
1624
|
+
else if (item.contributor && item.contributor.length) {
|
|
1625
|
+
_n198 = formatNames(item.contributor, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1626
|
+
const _v203 = (() => {
|
|
1627
|
+
const _val = item.contributor
|
|
1628
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1629
|
+
const _term = T["contributor:verb"]
|
|
1630
|
+
if (_term == null) return ''
|
|
1631
|
+
if (typeof _term === 'string') return _term
|
|
1632
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1633
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1634
|
+
})()
|
|
1635
|
+
if (_n198) _n198 += ' ' + (_v203 ? _v203 + " " : '')
|
|
1636
|
+
if (_n198) _n198 = '\uE020contributor\uE021' + _n198 + '\uE022'
|
|
1637
|
+
}
|
|
1638
|
+
_gp193.push(_n198)
|
|
1639
|
+
}
|
|
1640
|
+
else {
|
|
1641
|
+
let _n204 = ''
|
|
1642
|
+
if (item["editor-translator"] && item["editor-translator"].length) {
|
|
1643
|
+
_n204 = formatNames(item["editor-translator"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1644
|
+
if (_n204) _n204 = '\uE020editor-translator\uE021' + _n204 + '\uE022'
|
|
1645
|
+
}
|
|
1646
|
+
_gp193.push(_n204)
|
|
1647
|
+
let _n205 = ''
|
|
1648
|
+
if (item.editor && item.editor.length) {
|
|
1649
|
+
_n205 = formatNames(item.editor, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1650
|
+
if (_n205) _n205 = '\uE020editor\uE021' + _n205 + '\uE022'
|
|
1651
|
+
}
|
|
1652
|
+
else if (item.translator && item.translator.length) {
|
|
1653
|
+
_n205 = formatNames(item.translator, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1654
|
+
const _v206 = (() => {
|
|
1655
|
+
const _val = item.translator
|
|
1656
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1657
|
+
const _term = T["translator:verb"]
|
|
1658
|
+
if (_term == null) return ''
|
|
1659
|
+
if (typeof _term === 'string') return _term
|
|
1660
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1661
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1662
|
+
})()
|
|
1663
|
+
if (_n205) _n205 += ' ' + (applyTextCase(_v206, "capitalize-first") ? applyTextCase(_v206, "capitalize-first") + " " : '')
|
|
1664
|
+
if (_n205) _n205 = '\uE020translator\uE021' + _n205 + '\uE022'
|
|
1665
|
+
}
|
|
1666
|
+
_gp193.push(_n205)
|
|
1667
|
+
let _n207 = ''
|
|
1668
|
+
if (item.director && item.director.length) {
|
|
1669
|
+
_n207 = formatNames(item.director, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1670
|
+
if (_n207) _n207 = '\uE020director\uE021' + _n207 + '\uE022'
|
|
1671
|
+
}
|
|
1672
|
+
else if (item["series-creator"] && item["series-creator"].length) {
|
|
1673
|
+
_n207 = formatNames(item["series-creator"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1674
|
+
const _v208 = (() => {
|
|
1675
|
+
const _val = item["series-creator"]
|
|
1676
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1677
|
+
const _term = T["series-creator:verb"]
|
|
1678
|
+
if (_term == null) return ''
|
|
1679
|
+
if (typeof _term === 'string') return _term
|
|
1680
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1681
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1682
|
+
})()
|
|
1683
|
+
if (_n207) _n207 += ' ' + (applyTextCase(_v208, "capitalize-first") ? applyTextCase(_v208, "capitalize-first") + " " : '')
|
|
1684
|
+
if (_n207) _n207 = '\uE020series-creator\uE021' + _n207 + '\uE022'
|
|
1685
|
+
}
|
|
1686
|
+
else if (item.illustrator && item.illustrator.length) {
|
|
1687
|
+
_n207 = formatNames(item.illustrator, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1688
|
+
const _v209 = (() => {
|
|
1689
|
+
const _val = item.illustrator
|
|
1690
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1691
|
+
const _term = T["illustrator:verb"]
|
|
1692
|
+
if (_term == null) return ''
|
|
1693
|
+
if (typeof _term === 'string') return _term
|
|
1694
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1695
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1696
|
+
})()
|
|
1697
|
+
if (_n207) _n207 += ' ' + (applyTextCase(_v209, "capitalize-first") ? applyTextCase(_v209, "capitalize-first") + " " : '')
|
|
1698
|
+
if (_n207) _n207 = '\uE020illustrator\uE021' + _n207 + '\uE022'
|
|
1699
|
+
}
|
|
1700
|
+
else if (item.host && item.host.length) {
|
|
1701
|
+
_n207 = formatNames(item.host, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1702
|
+
const _v210 = (() => {
|
|
1703
|
+
const _val = item.host
|
|
1704
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1705
|
+
const _term = T["host:verb"]
|
|
1706
|
+
if (_term == null) return ''
|
|
1707
|
+
if (typeof _term === 'string') return _term
|
|
1708
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1709
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1710
|
+
})()
|
|
1711
|
+
if (_n207) _n207 += ' ' + (applyTextCase(_v210, "capitalize-first") ? applyTextCase(_v210, "capitalize-first") + " " : '')
|
|
1712
|
+
if (_n207) _n207 = '\uE020host\uE021' + _n207 + '\uE022'
|
|
1713
|
+
}
|
|
1714
|
+
else if (item.narrator && item.narrator.length) {
|
|
1715
|
+
_n207 = formatNames(item.narrator, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1716
|
+
const _v211 = (() => {
|
|
1717
|
+
const _val = item.narrator
|
|
1718
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1719
|
+
const _term = T["narrator:verb"]
|
|
1720
|
+
if (_term == null) return ''
|
|
1721
|
+
if (typeof _term === 'string') return _term
|
|
1722
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1723
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1724
|
+
})()
|
|
1725
|
+
if (_n207) _n207 += ' ' + (applyTextCase(_v211, "capitalize-first") ? applyTextCase(_v211, "capitalize-first") + " " : '')
|
|
1726
|
+
if (_n207) _n207 = '\uE020narrator\uE021' + _n207 + '\uE022'
|
|
1727
|
+
}
|
|
1728
|
+
else if (item.contributor && item.contributor.length) {
|
|
1729
|
+
_n207 = formatNames(item.contributor, _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
1730
|
+
const _v212 = (() => {
|
|
1731
|
+
const _val = item.contributor
|
|
1732
|
+
if (_val == null || _val === '' || (Array.isArray(_val) && _val.length === 0)) return ''
|
|
1733
|
+
const _term = T["contributor:verb"]
|
|
1734
|
+
if (_term == null) return ''
|
|
1735
|
+
if (typeof _term === 'string') return _term
|
|
1736
|
+
const _isPlural = typeof _val === 'string' ? /[-,&]/.test(_val) || /\d+\s*[-–]\s*\d+/.test(_val) : Array.isArray(_val) ? _val.length > 1 : Number(_val) !== 1
|
|
1737
|
+
return _isPlural ? (_term.multiple || _term.single || '') : (_term.single || '')
|
|
1738
|
+
})()
|
|
1739
|
+
if (_n207) _n207 += ' ' + (applyTextCase(_v212, "capitalize-first") ? applyTextCase(_v212, "capitalize-first") + " " : '')
|
|
1740
|
+
if (_n207) _n207 = '\uE020contributor\uE021' + _n207 + '\uE022'
|
|
1741
|
+
}
|
|
1742
|
+
_gp193.push(_n207)
|
|
1743
|
+
}
|
|
1744
|
+
const _g192 = _gp193.filter(v => v !== '').join(", ")
|
|
1745
|
+
return _g192
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
function macro_container1_version(item, ctx) {
|
|
1749
|
+
const _gp214 = []
|
|
1750
|
+
const _v215 = macro_label_edition_capitalized(item, ctx)
|
|
1751
|
+
_gp214.push(_v215)
|
|
1752
|
+
if ((item.edition != null && item.edition !== '')) {
|
|
1753
|
+
const _v216 = macro_label_version(item, ctx)
|
|
1754
|
+
_gp214.push(_v216)
|
|
1755
|
+
}
|
|
1756
|
+
else {
|
|
1757
|
+
const _v217 = macro_label_version_capitalized(item, ctx)
|
|
1758
|
+
_gp214.push(_v217)
|
|
1759
|
+
}
|
|
1760
|
+
const _g213 = _gp214.filter(v => v !== '').join(", ")
|
|
1761
|
+
return _g213
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
function macro_container1_number(item, ctx) {
|
|
1765
|
+
const _gp219 = []
|
|
1766
|
+
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")) {
|
|
1767
|
+
const _v220 = (item["collection-title"] != null && item["collection-title"] !== '' ? String(item["collection-title"]) : '')
|
|
1768
|
+
_gp219.push((stripNocaseSpans(_v220) ? '\uE020collection-title\uE021' + stripNocaseSpans(_v220) + '\uE022' : ''))
|
|
1769
|
+
const _v221 = macro_label_volume(item, ctx)
|
|
1770
|
+
_gp219.push(_v221)
|
|
1771
|
+
}
|
|
1772
|
+
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"] !== ''))) {
|
|
1773
|
+
const _v222 = macro_label_volume(item, ctx)
|
|
1774
|
+
_gp219.push(_v222)
|
|
1775
|
+
}
|
|
1776
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
1777
|
+
const _v223 = (item["collection-title"] != null && item["collection-title"] !== '' ? String(item["collection-title"]) : '')
|
|
1778
|
+
_gp219.push((stripNocaseSpans(_v223) ? '\uE020collection-title\uE021' + stripNocaseSpans(_v223) + '\uE022' : ''))
|
|
1779
|
+
const _v224 = macro_label_volume(item, ctx)
|
|
1780
|
+
_gp219.push(_v224)
|
|
1781
|
+
}
|
|
1782
|
+
else if (((item["part-title"] != null && item["part-title"] !== '') || (item["volume-title"] != null && item["volume-title"] !== ''))) {
|
|
1783
|
+
const _v225 = macro_label_volume(item, ctx)
|
|
1784
|
+
_gp219.push(_v225)
|
|
1785
|
+
}
|
|
1786
|
+
else if (((item.edition != null && item.edition !== '') || (item["container-title"] != null && item["container-title"] !== ''))) {
|
|
1787
|
+
const _v226 = macro_label_volume(item, ctx)
|
|
1788
|
+
_gp219.push(_v226)
|
|
1789
|
+
}
|
|
1790
|
+
else if ((item.author != null && item.author !== '')) {
|
|
1791
|
+
let _ch227 = ''
|
|
1792
|
+
if (((item["container-author"] != null && item["container-author"] !== '') || (item.contributor != null && item.contributor !== '') || (item.director != null && item.director !== '') || (item.editor != null && item.editor !== '') || (item["editor-translator"] != null && item["editor-translator"] !== '') || (item.illustrator != null && item.illustrator !== '') || (item.interviewer != null && item.interviewer !== '') || (item.translator != null && item.translator !== ''))) {
|
|
1793
|
+
const _v228 = macro_label_volume(item, ctx)
|
|
1794
|
+
_ch227 = _v228
|
|
1795
|
+
}
|
|
1796
|
+
_gp219.push(_ch227)
|
|
1797
|
+
}
|
|
1798
|
+
else {
|
|
1799
|
+
const _v229 = macro_label_volume_capitalized(item, ctx)
|
|
1800
|
+
_gp219.push(_v229)
|
|
1801
|
+
}
|
|
1802
|
+
const _v230 = macro_label_issue(item, ctx)
|
|
1803
|
+
_gp219.push(_v230)
|
|
1804
|
+
const _v231 = macro_label_supplement_number(item, ctx)
|
|
1805
|
+
_gp219.push(_v231)
|
|
1806
|
+
const _gp233 = []
|
|
1807
|
+
if ((item.type === "broadcast" && (item.genre != null && item.genre !== '') && (item.number != null && /^\s*\d/.test(String(item.number))))) {
|
|
1808
|
+
const _v234 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
1809
|
+
_gp233.push((stripNocaseSpans(_v234) ? '\uE020genre\uE021' + stripNocaseSpans(_v234) + '\uE022' : ''))
|
|
1810
|
+
const _v235 = (item.number != null && item.number !== '' ? String(item.number) : '')
|
|
1811
|
+
_gp233.push((stripNocaseSpans(_v235) ? '\uE020number\uE021' + stripNocaseSpans(_v235) + '\uE022' : ''))
|
|
1812
|
+
}
|
|
1813
|
+
else if ((item.type === "broadcast" && (item.number != null && /^\s*\d/.test(String(item.number))))) {
|
|
1814
|
+
const _v236 = "episode"
|
|
1815
|
+
_gp233.push(_v236)
|
|
1816
|
+
const _v237 = (item.number != null && item.number !== '' ? String(item.number) : '')
|
|
1817
|
+
_gp233.push((stripNocaseSpans(_v237) ? '\uE020number\uE021' + stripNocaseSpans(_v237) + '\uE022' : ''))
|
|
1818
|
+
}
|
|
1819
|
+
else if ((item.number != null && item.number !== '')) {
|
|
1820
|
+
const _v238 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
1821
|
+
_gp233.push((stripNocaseSpans(_v238) ? '\uE020genre\uE021' + stripNocaseSpans(_v238) + '\uE022' : ''))
|
|
1822
|
+
const _v239 = macro_label_number(item, ctx)
|
|
1823
|
+
_gp233.push(_v239)
|
|
1824
|
+
}
|
|
1825
|
+
const _g232 = _gp233.filter(v => v !== '').join(" ")
|
|
1826
|
+
_gp219.push(_g232)
|
|
1827
|
+
const _g218 = _gp219.filter(v => v !== '').join(", ")
|
|
1828
|
+
return _g218
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
function macro_container1_publisher(item, ctx) {
|
|
1832
|
+
let _ch240 = ''
|
|
1833
|
+
if (item.type === "thesis") {
|
|
1834
|
+
_ch240 = [].filter(v => v !== '').join('')
|
|
1835
|
+
}
|
|
1836
|
+
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")) {
|
|
1837
|
+
_ch240 = [].filter(v => v !== '').join('')
|
|
1838
|
+
}
|
|
1839
|
+
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"] !== ''))) {
|
|
1840
|
+
const _v241 = macro_container1_publisher_or_place(item, ctx)
|
|
1841
|
+
_ch240 = _v241
|
|
1842
|
+
}
|
|
1843
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
1844
|
+
_ch240 = [].filter(v => v !== '').join('')
|
|
1845
|
+
}
|
|
1846
|
+
else {
|
|
1847
|
+
const _v242 = macro_container1_publisher_or_place(item, ctx)
|
|
1848
|
+
_ch240 = _v242
|
|
1849
|
+
}
|
|
1850
|
+
return _ch240
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
function macro_container1_publisher_or_place(item, ctx) {
|
|
1854
|
+
let _ch243 = ''
|
|
1855
|
+
if ((item.publisher != null && item.publisher !== '')) {
|
|
1856
|
+
const _v244 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
1857
|
+
_ch243 = (stripNocaseSpans(_v244) ? '\uE020publisher\uE021' + stripNocaseSpans(_v244) + '\uE022' : '')
|
|
1858
|
+
}
|
|
1859
|
+
else {
|
|
1860
|
+
const _v245 = (item["publisher-place"] != null && item["publisher-place"] !== '' ? String(item["publisher-place"]) : '')
|
|
1861
|
+
_ch243 = (stripNocaseSpans(_v245) ? '\uE020publisher-place\uE021' + stripNocaseSpans(_v245) + '\uE022' : '')
|
|
1862
|
+
}
|
|
1863
|
+
return _ch243
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
function macro_container1_publication_date(item, ctx) {
|
|
1867
|
+
let _ch246 = ''
|
|
1868
|
+
if ((item.type === "book" || item.type === "chapter" || item.type === "motion_picture" || item.type === "paper-conference" || item.type === "thesis")) {
|
|
1869
|
+
let _ch247 = ''
|
|
1870
|
+
if ((item.issued && item.issued.circa)) {
|
|
1871
|
+
const _d248 = 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"}}) : ''
|
|
1872
|
+
_ch247 = ((_d248 ? "[" + _d248 + "?]" : '') ? '\uE020issued\uE021' + (_d248 ? "[" + _d248 + "?]" : '') + '\uE022' : '')
|
|
1873
|
+
}
|
|
1874
|
+
else {
|
|
1875
|
+
const _d249 = 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"}}) : ''
|
|
1876
|
+
_ch247 = (_d249 ? '\uE020issued\uE021' + _d249 + '\uE022' : '')
|
|
1877
|
+
}
|
|
1878
|
+
_ch246 = _ch247
|
|
1879
|
+
}
|
|
1880
|
+
else if (item.type === "article-journal") {
|
|
1881
|
+
let _ch250 = ''
|
|
1882
|
+
if ((item.issued && item.issued.circa)) {
|
|
1883
|
+
const _d251 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"month","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"}}) : ''
|
|
1884
|
+
_ch250 = ((_d251 ? "[" + _d251 + "?]" : '') ? '\uE020issued\uE021' + (_d251 ? "[" + _d251 + "?]" : '') + '\uE022' : '')
|
|
1885
|
+
}
|
|
1886
|
+
else {
|
|
1887
|
+
const _d252 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"month","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"}}) : ''
|
|
1888
|
+
_ch250 = (_d252 ? '\uE020issued\uE021' + _d252 + '\uE022' : '')
|
|
1889
|
+
}
|
|
1890
|
+
_ch246 = _ch250
|
|
1891
|
+
}
|
|
1892
|
+
else if (item.type === "speech") {
|
|
1893
|
+
_ch246 = [].filter(v => v !== '').join('')
|
|
1894
|
+
}
|
|
1895
|
+
else {
|
|
1896
|
+
let _ch253 = ''
|
|
1897
|
+
if ((item.issued && item.issued.circa)) {
|
|
1898
|
+
const _v256 = (T["circa"] != null ? (typeof T["circa"] === 'string' ? T["circa"] : (T["circa"].single || '')) : '')
|
|
1899
|
+
const _d257 = 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"}}) : ''
|
|
1900
|
+
const _g254 = ((item.issued == null || item.issued === '')) ? '' : [applyTextCase(_v256, "capitalize-first"), (_d257 ? '\uE020issued\uE021' + _d257 + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
1901
|
+
_ch253 = _g254
|
|
1902
|
+
}
|
|
1903
|
+
else {
|
|
1904
|
+
const _d258 = 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"}}) : ''
|
|
1905
|
+
_ch253 = (_d258 ? '\uE020issued\uE021' + _d258 + '\uE022' : '')
|
|
1906
|
+
}
|
|
1907
|
+
_ch246 = _ch253
|
|
1908
|
+
}
|
|
1909
|
+
return _ch246
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
function macro_container1_location(item, ctx) {
|
|
1913
|
+
const _gp260 = []
|
|
1914
|
+
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")) {
|
|
1915
|
+
}
|
|
1916
|
+
else if (item.type === "personal_communication") {
|
|
1917
|
+
}
|
|
1918
|
+
else if (item.type === "paper-conference") {
|
|
1919
|
+
let _ch261 = ''
|
|
1920
|
+
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 !== ''))) {
|
|
1921
|
+
const _v262 = macro_container1_location_event(item, ctx)
|
|
1922
|
+
_ch261 = _v262
|
|
1923
|
+
}
|
|
1924
|
+
_gp260.push(_ch261)
|
|
1925
|
+
}
|
|
1926
|
+
else {
|
|
1927
|
+
const _v263 = macro_container1_location_event(item, ctx)
|
|
1928
|
+
_gp260.push(_v263)
|
|
1929
|
+
}
|
|
1930
|
+
const _v264 = (item.archive != null && item.archive !== '' ? String(item.archive) : '')
|
|
1931
|
+
_gp260.push((stripNocaseSpans(_v264) ? '\uE020archive\uE021' + stripNocaseSpans(_v264) + '\uE022' : ''))
|
|
1932
|
+
const _v265 = (item["archive-place"] != null && item["archive-place"] !== '' ? String(item["archive-place"]) : '')
|
|
1933
|
+
_gp260.push((stripNocaseSpans(_v265) ? '\uE020archive-place\uE021' + stripNocaseSpans(_v265) + '\uE022' : ''))
|
|
1934
|
+
const _v266 = (item.archive_collection != null && item.archive_collection !== '' ? String(item.archive_collection) : '')
|
|
1935
|
+
_gp260.push((stripNocaseSpans(_v266) ? '\uE020archive_collection\uE021' + stripNocaseSpans(_v266) + '\uE022' : ''))
|
|
1936
|
+
const _v267 = (item.archive_location != null && item.archive_location !== '' ? String(item.archive_location) : '')
|
|
1937
|
+
_gp260.push((stripNocaseSpans(_v267) ? '\uE020archive_location\uE021' + stripNocaseSpans(_v267) + '\uE022' : ''))
|
|
1938
|
+
const _v268 = macro_label_page(item, ctx)
|
|
1939
|
+
_gp260.push(_v268)
|
|
1940
|
+
if (!((item.source != null && item.source !== ''))) {
|
|
1941
|
+
const _v269 = macro_container1_location_URI(item, ctx)
|
|
1942
|
+
_gp260.push(_v269)
|
|
1943
|
+
}
|
|
1944
|
+
const _g259 = _gp260.filter(v => v !== '').join(", ")
|
|
1945
|
+
return _g259
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
function macro_container1_location_event(item, ctx) {
|
|
1949
|
+
const _gp271 = []
|
|
1950
|
+
if (((item.event != null && item.event !== '') || (item["event-date"] != null && item["event-date"] !== '') || (item["event-title"] != null && item["event-title"] !== ''))) {
|
|
1951
|
+
let _ch272 = ''
|
|
1952
|
+
if ((item["event-title"] != null && item["event-title"] !== '')) {
|
|
1953
|
+
const _v273 = (item["event-title"] != null && item["event-title"] !== '' ? String(item["event-title"]) : '')
|
|
1954
|
+
_ch272 = (applyTextCase(_v273, "capitalize-first") ? '\uE020event-title\uE021' + applyTextCase(_v273, "capitalize-first") + '\uE022' : '')
|
|
1955
|
+
}
|
|
1956
|
+
else {
|
|
1957
|
+
const _v274 = (item.event != null && item.event !== '' ? String(item.event) : '')
|
|
1958
|
+
_ch272 = (applyTextCase(_v274, "capitalize-first") ? '\uE020event\uE021' + applyTextCase(_v274, "capitalize-first") + '\uE022' : '')
|
|
1959
|
+
}
|
|
1960
|
+
_gp271.push(_ch272)
|
|
1961
|
+
let _ch275 = ''
|
|
1962
|
+
if ((item["event-date"] && item["event-date"].circa)) {
|
|
1963
|
+
const _d276 = 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"}}) : ''
|
|
1964
|
+
_ch275 = ((_d276 ? "[" + _d276 + "?]" : '') ? '\uE020event-date\uE021' + (_d276 ? "[" + _d276 + "?]" : '') + '\uE022' : '')
|
|
1965
|
+
}
|
|
1966
|
+
else {
|
|
1967
|
+
const _d277 = 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"}}) : ''
|
|
1968
|
+
_ch275 = (_d277 ? '\uE020event-date\uE021' + _d277 + '\uE022' : '')
|
|
1969
|
+
}
|
|
1970
|
+
_gp271.push(_ch275)
|
|
1971
|
+
const _v278 = (item["event-place"] != null && item["event-place"] !== '' ? String(item["event-place"]) : '')
|
|
1972
|
+
_gp271.push((stripNocaseSpans(_v278) ? '\uE020event-place\uE021' + stripNocaseSpans(_v278) + '\uE022' : ''))
|
|
1973
|
+
}
|
|
1974
|
+
const _g270 = _gp271.filter(v => v !== '').join(", ")
|
|
1975
|
+
return _g270
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
function macro_container1_location_URI(item, ctx) {
|
|
1979
|
+
let _ch279 = ''
|
|
1980
|
+
if ((item.DOI != null && item.DOI !== '')) {
|
|
1981
|
+
const _v280 = (item.DOI != null && item.DOI !== '' ? String(item.DOI) : '')
|
|
1982
|
+
_ch279 = ((stripNocaseSpans(_v280) ? "https://doi.org/" + stripNocaseSpans(_v280) : '') ? '\uE020DOI\uE021' + (stripNocaseSpans(_v280) ? "https://doi.org/" + stripNocaseSpans(_v280) : '') + '\uE022' : '')
|
|
1983
|
+
}
|
|
1984
|
+
else {
|
|
1985
|
+
const _v281 = (item.URL != null && item.URL !== '' ? String(item.URL) : '')
|
|
1986
|
+
_ch279 = (stripNocaseSpans(_v281) ? '\uE020URL\uE021' + stripNocaseSpans(_v281) + '\uE022' : '')
|
|
1987
|
+
}
|
|
1988
|
+
return _ch279
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
function macro_supplemental_element_between(item, ctx) {
|
|
1992
|
+
let _ch282 = ''
|
|
1993
|
+
if ((item.source != null && item.source !== '')) {
|
|
1994
|
+
const _v283 = macro_supplemental_element_movable(item, ctx)
|
|
1995
|
+
_ch282 = _v283
|
|
1996
|
+
}
|
|
1997
|
+
return _ch282
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
function macro_container2(item, ctx) {
|
|
2001
|
+
const _gp285 = []
|
|
2002
|
+
if (!((item.source != null && item.source !== ''))) {
|
|
2003
|
+
}
|
|
2004
|
+
else if (((item.DOI != null && item.DOI !== '') || (item.URL != null && item.URL !== ''))) {
|
|
2005
|
+
const _v286 = (item.source != null && item.source !== '' ? String(item.source) : '')
|
|
2006
|
+
_gp285.push(((stripNocaseSpans(_v286) ? '\uE000' + stripNocaseSpans(_v286) + '\uE001' : '') ? '\uE020source\uE021' + (stripNocaseSpans(_v286) ? '\uE000' + stripNocaseSpans(_v286) + '\uE001' : '') + '\uE022' : ''))
|
|
2007
|
+
const _v287 = macro_container1_location_URI(item, ctx)
|
|
2008
|
+
_gp285.push(_v287)
|
|
2009
|
+
}
|
|
2010
|
+
const _g284 = _gp285.filter(v => v !== '').join(", ")
|
|
2011
|
+
return _g284
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
function macro_supplemental_element_end(item, ctx) {
|
|
2015
|
+
const _gp289 = []
|
|
2016
|
+
const _v290 = macro_supplemental_date_access(item, ctx)
|
|
2017
|
+
_gp289.push(_v290)
|
|
2018
|
+
const _v291 = macro_supplemental_medium(item, ctx)
|
|
2019
|
+
_gp289.push(_v291)
|
|
2020
|
+
if ((item.source != null && item.source !== '')) {
|
|
2021
|
+
}
|
|
2022
|
+
else {
|
|
2023
|
+
const _v292 = macro_supplemental_element_movable(item, ctx)
|
|
2024
|
+
_gp289.push(_v292)
|
|
2025
|
+
}
|
|
2026
|
+
const _g288 = _gp289.filter(v => v !== '').join(", ")
|
|
2027
|
+
return _g288
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
function macro_supplemental_element_movable(item, ctx) {
|
|
2031
|
+
const _gp294 = []
|
|
2032
|
+
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")) {
|
|
2033
|
+
const _v295 = macro_supplemental_columns_sections(item, ctx)
|
|
2034
|
+
_gp294.push(_v295)
|
|
2035
|
+
}
|
|
2036
|
+
else if ((item.type === "interview" || item.type === "paper-conference")) {
|
|
2037
|
+
let _ch296 = ''
|
|
2038
|
+
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"] !== ''))) {
|
|
2039
|
+
const _v297 = macro_supplemental_dissertations_theses(item, ctx)
|
|
2040
|
+
const _v298 = macro_supplemental_publication_history(item, ctx)
|
|
2041
|
+
const _v299 = macro_supplemental_book_series(item, ctx)
|
|
2042
|
+
const _v300 = macro_supplemental_multivolume_works(item, ctx)
|
|
2043
|
+
_ch296 = [_v297, _v298, _v299, _v300].filter(v => v !== '').join('')
|
|
2044
|
+
}
|
|
2045
|
+
else {
|
|
2046
|
+
const _v301 = macro_supplemental_columns_sections(item, ctx)
|
|
2047
|
+
_ch296 = _v301
|
|
2048
|
+
}
|
|
2049
|
+
_gp294.push(_ch296)
|
|
2050
|
+
}
|
|
2051
|
+
else {
|
|
2052
|
+
const _v302 = macro_supplemental_dissertations_theses(item, ctx)
|
|
2053
|
+
_gp294.push(_v302)
|
|
2054
|
+
const _v303 = macro_supplemental_publication_history(item, ctx)
|
|
2055
|
+
_gp294.push(_v303)
|
|
2056
|
+
const _v304 = macro_supplemental_book_series(item, ctx)
|
|
2057
|
+
_gp294.push(_v304)
|
|
2058
|
+
const _v305 = macro_supplemental_multivolume_works(item, ctx)
|
|
2059
|
+
_gp294.push(_v305)
|
|
2060
|
+
}
|
|
2061
|
+
const _g293 = _gp294.filter(v => v !== '').join(", ")
|
|
2062
|
+
return _g293
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
function macro_supplemental_date_access(item, ctx) {
|
|
2066
|
+
let _ch306 = ''
|
|
2067
|
+
if (!((item.issued != null && item.issued !== ''))) {
|
|
2068
|
+
const _v309 = (T["accessed"] != null ? (typeof T["accessed"] === 'string' ? T["accessed"] : (T["accessed"].single || '')) : '')
|
|
2069
|
+
const _d310 = 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"}}) : ''
|
|
2070
|
+
const _g307 = ((item.accessed == null || item.accessed === '')) ? '' : [applyTextCase(_v309, "capitalize-first"), (_d310 ? '\uE020accessed\uE021' + _d310 + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
2071
|
+
_ch306 = _g307
|
|
2072
|
+
}
|
|
2073
|
+
return _ch306
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
function macro_supplemental_medium(item, ctx) {
|
|
2077
|
+
const _v311 = (item.medium != null && item.medium !== '' ? String(item.medium) : '')
|
|
2078
|
+
return (applyTextCase(_v311, "capitalize-first") ? '\uE020medium\uE021' + applyTextCase(_v311, "capitalize-first") + '\uE022' : '')
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
function macro_supplemental_dissertations_theses(item, ctx) {
|
|
2082
|
+
let _ch312 = ''
|
|
2083
|
+
if (item.type === "thesis") {
|
|
2084
|
+
const _v315 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
|
|
2085
|
+
const _v316 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
|
|
2086
|
+
const _g313 = ((item.publisher == null || item.publisher === '') && (item.genre == null || item.genre === '')) ? '' : [(stripNocaseSpans(_v315) ? '\uE020publisher\uE021' + stripNocaseSpans(_v315) + '\uE022' : ''), (stripNocaseSpans(_v316) ? '\uE020genre\uE021' + stripNocaseSpans(_v316) + '\uE022' : '')].filter(v => v !== '').join(", ")
|
|
2087
|
+
_ch312 = _g313
|
|
2088
|
+
}
|
|
2089
|
+
return _ch312
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
function macro_supplemental_publication_history(item, ctx) {
|
|
2093
|
+
const _gp318 = []
|
|
2094
|
+
if (((item["original-publisher"] != null && item["original-publisher"] !== '') || (item["original-publisher-place"] != null && item["original-publisher-place"] !== '') || (item["original-title"] != null && item["original-title"] !== ''))) {
|
|
2095
|
+
const _v319 = (T["original-work-published"] != null ? (typeof T["original-work-published"] === 'string' ? T["original-work-published"] : (T["original-work-published"].single || '')) : '')
|
|
2096
|
+
_gp318.push(applyTextCase(_v319, "capitalize-first"))
|
|
2097
|
+
}
|
|
2098
|
+
const _gp321 = []
|
|
2099
|
+
const _v324 = "as"
|
|
2100
|
+
const _v325 = (item["original-title"] != null && item["original-title"] !== '' ? String(item["original-title"]) : '')
|
|
2101
|
+
const _g322 = ((item["original-title"] == null || item["original-title"] === '')) ? '' : [_v324, ((applyTextCase(_v325, "title") ? '\uE000' + applyTextCase(_v325, "title") + '\uE001' : '') ? '\uE020original-title\uE021' + (applyTextCase(_v325, "title") ? '\uE000' + applyTextCase(_v325, "title") + '\uE001' : '') + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
2102
|
+
_gp321.push(_g322)
|
|
2103
|
+
if (((item["original-publisher"] != null && item["original-publisher"] !== '') || (item["original-publisher-place"] != null && item["original-publisher-place"] !== ''))) {
|
|
2104
|
+
let _ch326 = ''
|
|
2105
|
+
if ((item["original-publisher"] != null && item["original-publisher"] !== '')) {
|
|
2106
|
+
const _gp328 = []
|
|
2107
|
+
if (!((item["original-title"] != null && item["original-title"] !== ''))) {
|
|
2108
|
+
const _v329 = (T["by"] != null ? (typeof T["by"] === 'string' ? T["by"] : (T["by"].single || '')) : '')
|
|
2109
|
+
_gp328.push(_v329)
|
|
2110
|
+
}
|
|
2111
|
+
const _v330 = (item["original-publisher"] != null && item["original-publisher"] !== '' ? String(item["original-publisher"]) : '')
|
|
2112
|
+
_gp328.push((stripNocaseSpans(_v330) ? '\uE020original-publisher\uE021' + stripNocaseSpans(_v330) + '\uE022' : ''))
|
|
2113
|
+
const _g327 = _gp328.filter(v => v !== '').join(" ")
|
|
2114
|
+
_ch326 = _g327
|
|
2115
|
+
}
|
|
2116
|
+
else {
|
|
2117
|
+
const _v331 = (item["original-publisher-place"] != null && item["original-publisher-place"] !== '' ? String(item["original-publisher-place"]) : '')
|
|
2118
|
+
_ch326 = (stripNocaseSpans(_v331) ? '\uE020original-publisher-place\uE021' + stripNocaseSpans(_v331) + '\uE022' : '')
|
|
2119
|
+
}
|
|
2120
|
+
_gp321.push(_ch326)
|
|
2121
|
+
let _ch332 = ''
|
|
2122
|
+
if ((item["original-date"] && item["original-date"].circa)) {
|
|
2123
|
+
const _d333 = 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"}}) : ''
|
|
2124
|
+
_ch332 = ((_d333 ? "[" + _d333 + "?]" : '') ? '\uE020original-date\uE021' + (_d333 ? "[" + _d333 + "?]" : '') + '\uE022' : '')
|
|
2125
|
+
}
|
|
2126
|
+
else {
|
|
2127
|
+
const _d334 = 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"}}) : ''
|
|
2128
|
+
_ch332 = (_d334 ? '\uE020original-date\uE021' + _d334 + '\uE022' : '')
|
|
2129
|
+
}
|
|
2130
|
+
_gp321.push(_ch332)
|
|
2131
|
+
}
|
|
2132
|
+
const _g320 = _gp321.filter(v => v !== '').join(", ")
|
|
2133
|
+
_gp318.push(_g320)
|
|
2134
|
+
const _g317 = _gp318.filter(v => v !== '').join(" ")
|
|
2135
|
+
return _g317
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
function macro_supplemental_book_series(item, ctx) {
|
|
2139
|
+
const _gp336 = []
|
|
2140
|
+
if (((item["collection-title"] != null && item["collection-title"] !== '') && (item["collection-number"] != null && /^\s*\d/.test(String(item["collection-number"]))))) {
|
|
2141
|
+
const _v339 = (item["collection-title"] != null && item["collection-title"] !== '' ? String(item["collection-title"]) : '')
|
|
2142
|
+
const _v340 = (item["collection-number"] != null && item["collection-number"] !== '' ? String(item["collection-number"]) : '')
|
|
2143
|
+
const _g337 = ((item["collection-title"] == null || item["collection-title"] === '') && (item["collection-number"] == null || item["collection-number"] === '')) ? '' : [(applyTextCase(_v339, "title") ? '\uE020collection-title\uE021' + applyTextCase(_v339, "title") + '\uE022' : ''), (stripNocaseSpans(_v340) ? '\uE020collection-number\uE021' + stripNocaseSpans(_v340) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
2144
|
+
_gp336.push(_g337)
|
|
2145
|
+
}
|
|
2146
|
+
else if ((item["collection-title"] != null && item["collection-title"] !== '')) {
|
|
2147
|
+
const _v341 = (item["collection-title"] != null && item["collection-title"] !== '' ? String(item["collection-title"]) : '')
|
|
2148
|
+
_gp336.push((applyTextCase(_v341, "title") ? '\uE020collection-title\uE021' + applyTextCase(_v341, "title") + '\uE022' : ''))
|
|
2149
|
+
const _v342 = (item["collection-number"] != null && item["collection-number"] !== '' ? String(item["collection-number"]) : '')
|
|
2150
|
+
_gp336.push((stripNocaseSpans(_v342) ? '\uE020collection-number\uE021' + stripNocaseSpans(_v342) + '\uE022' : ''))
|
|
2151
|
+
}
|
|
2152
|
+
const _g335 = _gp336.filter(v => v !== '').join(", ")
|
|
2153
|
+
return _g335
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
function macro_supplemental_columns_sections(item, ctx) {
|
|
2157
|
+
const _v343 = (item.section != null && item.section !== '' ? String(item.section) : '')
|
|
2158
|
+
return (applyTextCase(_v343, "title") ? '\uE020section\uE021' + applyTextCase(_v343, "title") + '\uE022' : '')
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
function macro_supplemental_multivolume_works(item, ctx) {
|
|
2162
|
+
const _gp345 = []
|
|
2163
|
+
if (((item["part-number"] != null && item["part-number"] !== '') && (item["part-title"] != null && item["part-title"] !== '') && (item.volume != null && item.volume !== '') && (item["volume-title"] != null && item["volume-title"] !== ''))) {
|
|
2164
|
+
const _v348 = macro_label_part_number_capitalized(item, ctx)
|
|
2165
|
+
const _v349 = "of"
|
|
2166
|
+
const _v350 = (item["volume-title"] != null && item["volume-title"] !== '' ? String(item["volume-title"]) : '')
|
|
2167
|
+
const _g346 = (!macro_label_part_number_capitalized(item, ctx) && (item["volume-title"] == null || item["volume-title"] === '')) ? '' : [_v348, _v349, ((applyTextCase(_v350, "title") ? '\uE000' + applyTextCase(_v350, "title") + '\uE001' : '') ? '\uE020volume-title\uE021' + (applyTextCase(_v350, "title") ? '\uE000' + applyTextCase(_v350, "title") + '\uE001' : '') + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
2168
|
+
_gp345.push(_g346)
|
|
2169
|
+
const _v353 = macro_label_volume(item, ctx)
|
|
2170
|
+
const _v354 = "of"
|
|
2171
|
+
const _gp356 = []
|
|
2172
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
2173
|
+
const _v357 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
2174
|
+
_gp356.push(((applyTextCase(_v357, "title") ? '\uE000' + applyTextCase(_v357, "title") + '\uE001' : '') ? '\uE020container-title\uE021' + (applyTextCase(_v357, "title") ? '\uE000' + applyTextCase(_v357, "title") + '\uE001' : '') + '\uE022' : ''))
|
|
2175
|
+
}
|
|
2176
|
+
else {
|
|
2177
|
+
const _v358 = macro_title_primary(item, ctx)
|
|
2178
|
+
_gp356.push(_v358)
|
|
2179
|
+
}
|
|
2180
|
+
let _n359 = ''
|
|
2181
|
+
if (item["collection-editor"] && item["collection-editor"].length) {
|
|
2182
|
+
_n359 = formatNames(item["collection-editor"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
2183
|
+
if (_n359) _n359 = '\uE020collection-editor\uE021' + _n359 + '\uE022'
|
|
2184
|
+
}
|
|
2185
|
+
_gp356.push(_n359)
|
|
2186
|
+
const _g355 = _gp356.filter(v => v !== '').join(", ")
|
|
2187
|
+
const _g351 = (!macro_label_volume(item, ctx) && (item["container-title"] == null || item["container-title"] === '') && !macro_title_primary(item, ctx) && (item["collection-editor"] == null || item["collection-editor"] === '' || (Array.isArray(item["collection-editor"]) && item["collection-editor"].length === 0))) ? '' : [_v353, _v354, _g355].filter(v => v !== '').join(" ")
|
|
2188
|
+
_gp345.push(_g351)
|
|
2189
|
+
}
|
|
2190
|
+
else if (((item["part-title"] != null && item["part-title"] !== '') || (item["volume-title"] != null && item["volume-title"] !== ''))) {
|
|
2191
|
+
const _gp361 = []
|
|
2192
|
+
if (((item["part-number"] != null && item["part-number"] !== '') && (item.volume != null && item.volume !== ''))) {
|
|
2193
|
+
const _v364 = macro_label_volume_capitalized(item, ctx)
|
|
2194
|
+
const _v365 = macro_label_part_number(item, ctx)
|
|
2195
|
+
const _v366 = "of"
|
|
2196
|
+
const _g362 = (!macro_label_volume_capitalized(item, ctx) && !macro_label_part_number(item, ctx)) ? '' : [_v364, _v365, _v366].filter(v => v !== '').join(", ")
|
|
2197
|
+
_gp361.push(_g362)
|
|
2198
|
+
}
|
|
2199
|
+
else if ((item["part-number"] != null && item["part-number"] !== '')) {
|
|
2200
|
+
const _v367 = macro_label_part_number_capitalized(item, ctx)
|
|
2201
|
+
_gp361.push(_v367)
|
|
2202
|
+
const _v368 = "of"
|
|
2203
|
+
_gp361.push(_v368)
|
|
2204
|
+
}
|
|
2205
|
+
else if ((item.volume != null && item.volume !== '')) {
|
|
2206
|
+
const _v369 = macro_label_volume_capitalized(item, ctx)
|
|
2207
|
+
_gp361.push(_v369)
|
|
2208
|
+
const _v370 = "of"
|
|
2209
|
+
_gp361.push(_v370)
|
|
2210
|
+
}
|
|
2211
|
+
const _gp372 = []
|
|
2212
|
+
if ((item["container-title"] != null && item["container-title"] !== '')) {
|
|
2213
|
+
const _v373 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
|
|
2214
|
+
_gp372.push(((applyTextCase(_v373, "title") ? '\uE000' + applyTextCase(_v373, "title") + '\uE001' : '') ? '\uE020container-title\uE021' + (applyTextCase(_v373, "title") ? '\uE000' + applyTextCase(_v373, "title") + '\uE001' : '') + '\uE022' : ''))
|
|
2215
|
+
}
|
|
2216
|
+
else {
|
|
2217
|
+
const _v374 = macro_title_primary(item, ctx)
|
|
2218
|
+
_gp372.push(_v374)
|
|
2219
|
+
}
|
|
2220
|
+
let _n375 = ''
|
|
2221
|
+
if (item["collection-editor"] && item["collection-editor"].length) {
|
|
2222
|
+
_n375 = formatNames(item["collection-editor"], _nameConfig(ctx, {"delimiter":", ","etAlUseLast":false,"initialize":false,"sortSeparator":", "}))
|
|
2223
|
+
if (_n375) _n375 = '\uE020collection-editor\uE021' + _n375 + '\uE022'
|
|
2224
|
+
}
|
|
2225
|
+
_gp372.push(_n375)
|
|
2226
|
+
const _g371 = _gp372.filter(v => v !== '').join(", ")
|
|
2227
|
+
_gp361.push(_g371)
|
|
2228
|
+
const _g360 = _gp361.filter(v => v !== '').join(" ")
|
|
2229
|
+
_gp345.push(_g360)
|
|
2230
|
+
}
|
|
2231
|
+
if (!((item.volume != null && item.volume !== ''))) {
|
|
2232
|
+
const _v376 = macro_label_number_of_volumes(item, ctx)
|
|
2233
|
+
_gp345.push(_v376)
|
|
2234
|
+
}
|
|
2235
|
+
const _g344 = _gp345.filter(v => v !== '').join(", ")
|
|
2236
|
+
return _g344
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
const BIB_NAME_OPTS = {"initializeWith":". ","and":"text","etAlMin":3,"etAlUseFirst":1}
|
|
2240
|
+
|
|
2241
|
+
export function bibliography(item, ctx = {}) {
|
|
2242
|
+
ctx = { ...ctx, _secOpts: BIB_NAME_OPTS }
|
|
2243
|
+
const _v379 = macro_author(item, ctx)
|
|
2244
|
+
const _v380 = macro_title(item, ctx)
|
|
2245
|
+
const _v381 = macro_supplemental_element_after_title(item, ctx)
|
|
2246
|
+
const _v382 = macro_container1(item, ctx)
|
|
2247
|
+
const _v383 = macro_supplemental_element_between(item, ctx)
|
|
2248
|
+
const _v384 = macro_container2(item, ctx)
|
|
2249
|
+
const _v385 = macro_supplemental_element_end(item, ctx)
|
|
2250
|
+
const _g377 = (!macro_author(item, ctx) && !macro_title(item, ctx) && !macro_supplemental_element_after_title(item, ctx) && !macro_container1(item, ctx) && !macro_supplemental_element_between(item, ctx) && !macro_container2(item, ctx) && !macro_supplemental_element_end(item, ctx)) ? '' : [_v379, _v380, _v381, _v382, _v383, _v384, _v385].filter(v => v !== '').join(". ")
|
|
2251
|
+
const _layout = [_g377].filter(v => v !== '')
|
|
2252
|
+
const _raw = _layout.join("") + "."
|
|
2253
|
+
const _norm = _normalizePunctuation(_raw)
|
|
2254
|
+
const text = stripFormatting(_norm)
|
|
2255
|
+
const html = '<div class="csl-entry">' + toHtml(_norm) + '</div>'
|
|
2256
|
+
return {
|
|
2257
|
+
text,
|
|
2258
|
+
html,
|
|
2259
|
+
parts: _extractParts(item),
|
|
2260
|
+
links: _extractLinks(item),
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
function _extractParts(item) {
|
|
2265
|
+
return {
|
|
2266
|
+
authors: item.author || [],
|
|
2267
|
+
year: item.issued?.['date-parts']?.[0]?.[0]?.toString() || '',
|
|
2268
|
+
title: item.title || '',
|
|
2269
|
+
container: item['container-title'] || '',
|
|
2270
|
+
volume: item.volume?.toString() || '',
|
|
2271
|
+
issue: item.issue?.toString() || '',
|
|
2272
|
+
pages: item.page || '',
|
|
2273
|
+
doi: item.DOI || '',
|
|
2274
|
+
url: item.URL || '',
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
function _extractLinks(item) {
|
|
2279
|
+
return {
|
|
2280
|
+
doi: item.DOI ? 'https://doi.org/' + item.DOI : null,
|
|
2281
|
+
url: item.URL || null,
|
|
2282
|
+
pdf: item.extended?.pdf_url || null,
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
function _normalizePunctuation(str) {
|
|
2287
|
+
if (!str) return ''
|
|
2288
|
+
// F matches PUA tokens (formatting U+E000-E007 and semantic U+E020-E022) that may appear between dots
|
|
2289
|
+
const F = '[\uE000-\uE007\uE020-\uE022]*'
|
|
2290
|
+
return str
|
|
2291
|
+
.replace(new RegExp('([.!?])(' + F + ')\\. ', 'g'), '$1$2 ')
|
|
2292
|
+
.replace(new RegExp('\\.(' + F + ')\\.', 'g'), '.$1')
|
|
2293
|
+
.replace(/ +/g, ' ')
|
|
2294
|
+
.trim()
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
export function bibliographySort(a, b) {
|
|
2298
|
+
const keys = [
|
|
2299
|
+
{ fn: (item) => macro_author(item, {}), dir: 1 },
|
|
2300
|
+
{ fn: (item) => macro_title(item, {}), dir: 1 },
|
|
2301
|
+
{ fn: (item) => macro_supplemental_element_after_title(item, {}), dir: 1 },
|
|
2302
|
+
{ fn: (item) => macro_container1(item, {}), dir: 1 },
|
|
2303
|
+
{ fn: (item) => macro_supplemental_element_between(item, {}), dir: 1 },
|
|
2304
|
+
{ fn: (item) => macro_container2(item, {}), dir: 1 },
|
|
2305
|
+
{ fn: (item) => macro_supplemental_element_end(item, {}), dir: 1 }
|
|
2306
|
+
]
|
|
2307
|
+
for (const k of keys) {
|
|
2308
|
+
const va = k.fn(a)
|
|
2309
|
+
const vb = k.fn(b)
|
|
2310
|
+
const cmp = va < vb ? -1 : va > vb ? 1 : 0
|
|
2311
|
+
if (cmp !== 0) return cmp * k.dir
|
|
2312
|
+
}
|
|
2313
|
+
return 0
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
const CIT_NAME_OPTS = {"initializeWith":". ","and":"text","etAlMin":3,"etAlUseFirst":1}
|
|
2317
|
+
|
|
2318
|
+
export function citation(cites, ctx = {}) {
|
|
2319
|
+
const _outerCtx = { ...ctx, _secOpts: CIT_NAME_OPTS }
|
|
2320
|
+
const rendered = cites.map(cite => {
|
|
2321
|
+
let ctx = cite._disambig ? { ..._outerCtx, _disambig: cite._disambig } : _outerCtx
|
|
2322
|
+
let item = cite.item || cite
|
|
2323
|
+
if (cite.locator != null) { item = { ...item, locator: cite.locator, _locatorLabel: cite.label || 'page' } }
|
|
2324
|
+
let _ch386 = ''
|
|
2325
|
+
if ((ctx.locator === "line" || ctx.locator === "page" || ctx.locator === "timestamp")) {
|
|
2326
|
+
const _v389 = macro_author_short(item, ctx)
|
|
2327
|
+
const _v390 = (item.locator != null && item.locator !== '' ? String(item.locator) : '')
|
|
2328
|
+
const _g387 = (!macro_author_short(item, ctx) && (item.locator == null || item.locator === '')) ? '' : [_v389, (stripNocaseSpans(_v390) ? '\uE020locator\uE021' + stripNocaseSpans(_v390) + '\uE022' : '')].filter(v => v !== '').join(" ")
|
|
2329
|
+
_ch386 = _g387
|
|
2330
|
+
}
|
|
2331
|
+
else {
|
|
2332
|
+
const _v393 = macro_author_short(item, ctx)
|
|
2333
|
+
const _v394 = macro_label_locator(item, ctx)
|
|
2334
|
+
const _g391 = (!macro_author_short(item, ctx) && !macro_label_locator(item, ctx)) ? '' : [_v393, _v394].filter(v => v !== '').join(", ")
|
|
2335
|
+
_ch386 = _g391
|
|
2336
|
+
}
|
|
2337
|
+
return [_ch386].filter(v => v !== '').join('')
|
|
2338
|
+
})
|
|
2339
|
+
const _raw = "(" + rendered.join("; ") + ")"
|
|
2340
|
+
const text = stripFormatting(_raw)
|
|
2341
|
+
const html = '<span class="csl-citation">' + toHtml(_raw) + '</span>'
|
|
2342
|
+
return { text, html }
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
function _resolveTerm(key) {
|
|
2346
|
+
const val = T[key]
|
|
2347
|
+
if (val == null) return null
|
|
2348
|
+
return typeof val === 'string' ? val : val.single || ''
|
|
2349
|
+
}
|