|
45 | 45 | </locale> |
46 | 46 | <macro name="type-sorting"> |
47 | 47 | <choose> |
48 | | - <if type="webpage regulation legislation bill legal_case treaty" match="none"> |
| 48 | + <if type="webpage legislation regulation bill legal_case treaty" match="none"> |
49 | 49 | <text value="1"/> |
50 | 50 | </if> |
51 | 51 | <else-if type="webpage"> |
|
66 | 66 | <else-if type="treaty"> |
67 | 67 | <text value="7"/> |
68 | 68 | </else-if> |
69 | | - <else> |
70 | | - <text value="8"/> |
71 | | - </else> |
72 | 69 | </choose> |
73 | 70 | </macro> |
74 | 71 | <macro name="legal_case-authority"> |
|
98 | 95 | </macro> |
99 | 96 | <macro name="author-short"> |
100 | 97 | <names variable="author"> |
101 | | - <name form="short" delimiter-precedes-last="never" name-as-sort-order="first" and="text"/> |
| 98 | + <name form="short" delimiter-precedes-last="never" and="text"/> |
102 | 99 | <et-al term="and others"/> |
103 | 100 | <substitute> |
104 | 101 | <names variable="editor"/> |
|
156 | 153 | </macro> |
157 | 154 | <macro name="issued"> |
158 | 155 | <choose> |
159 | | - <if type="personal_communication" match="none"> |
160 | | - <date prefix="(" suffix=")" variable="issued"> |
| 156 | + <if type="personal_communication" variable="accessed"> |
| 157 | + <date variable="accessed" prefix="(" suffix=")"> |
161 | 158 | <date-part name="year"/> |
162 | 159 | </date> |
163 | 160 | </if> |
164 | | - <else-if type="personal_communication" match="all"> |
165 | | - <date variable="accessed" prefix="(" suffix=")"> |
| 161 | + <else-if variable="issued"> |
| 162 | + <date prefix="(" suffix=")" variable="issued"> |
166 | 163 | <date-part name="year"/> |
167 | 164 | </date> |
168 | 165 | </else-if> |
|
233 | 230 | </macro> |
234 | 231 | <macro name="volume"> |
235 | 232 | <choose> |
236 | | - <if variable="volume" match="any"> |
| 233 | + <if variable="volume"> |
237 | 234 | <group delimiter=" "> |
238 | 235 | <label variable="volume"/> |
239 | 236 | <text variable="volume"/> |
|
259 | 256 | </macro> |
260 | 257 | <macro name="nor-case"> |
261 | 258 | <choose> |
262 | | - <if variable="container-title" match="any"> |
| 259 | + <if variable="container-title"> |
263 | 260 | <group delimiter=" "> |
264 | 261 | <text variable="container-title"/> |
265 | 262 | <text variable="volume"/> |
|
270 | 267 | <text prefix="(" suffix=")" font-style="italic" variable="title-short"/> |
271 | 268 | </group> |
272 | 269 | </if> |
273 | | - <else-if variable="number" match="any"> |
| 270 | + <else-if variable="number"> |
274 | 271 | <group delimiter=" "> |
275 | 272 | <text variable="number"/> |
276 | 273 | <text prefix="(" suffix=")" font-style="italic" variable="title-short"/> |
|
304 | 301 | <text variable="container-title"/> |
305 | 302 | <choose> |
306 | 303 | <!-- Preparatory works and other documents from the Storting (parliament) have volume number --> |
307 | | - <if variable="volume" match="any"> |
| 304 | + <if variable="volume"> |
308 | 305 | <text variable="number"/> |
309 | 306 | <text variable="volume" prefix="(" suffix=")"/> |
310 | 307 | </if> |
|
329 | 326 | <text variable="container-title" font-style="italic"/> |
330 | 327 | <text macro="issued-no-parenthesis"/> |
331 | 328 | </group> |
332 | | - <group delimiter=" "> |
333 | | - <choose> |
334 | | - <!-- For journals with continuous issue numbers, with page numbers restarting for each issue (MarIus etc.) --> |
335 | | - <if variable="number" match="any"> |
| 329 | + <choose> |
| 330 | + <!-- For journals with continuous issue numbers, with page numbers restarting for each issue (MarIus etc.) --> |
| 331 | + <if variable="number"> |
| 332 | + <group delimiter=" "> |
336 | 333 | <label variable="number" form="short"/> |
337 | 334 | <text variable="number"/> |
338 | | - </if> |
339 | | - </choose> |
340 | | - </group> |
| 335 | + </group> |
| 336 | + </if> |
| 337 | + </choose> |
341 | 338 | <group delimiter=" "> |
342 | 339 | <label variable="page" form="short"/> |
343 | 340 | <text variable="page"/> |
|
352 | 349 | <text macro="title"/> |
353 | 350 | <text font-style="italic" variable="container-title"/> |
354 | 351 | <choose> |
355 | | - <if variable="issued" match="any"> |
| 352 | + <if variable="issued"> |
356 | 353 | <text macro="issued-full-date"/> |
357 | 354 | </if> |
358 | 355 | </choose> |
359 | | - <group delimiter=" "> |
360 | | - <choose> |
361 | | - <if variable="page" match="any"> |
| 356 | + <choose> |
| 357 | + <if variable="page"> |
| 358 | + <group delimiter=" "> |
362 | 359 | <label variable="page" form="short"/> |
363 | 360 | <text variable="page"/> |
364 | | - </if> |
365 | | - </choose> |
366 | | - <choose> |
367 | | - <if variable="DOI" match="any"> |
368 | | - <text macro="DOI"/> |
369 | | - </if> |
370 | | - <else-if variable="URL" match="any"> |
371 | | - <text variable="URL"/> |
372 | | - <text macro="accessed-date"/> |
373 | | - </else-if> |
374 | | - </choose> |
375 | | - </group> |
| 361 | + </group> |
| 362 | + </if> |
| 363 | + </choose> |
376 | 364 | </group> |
| 365 | + <choose> |
| 366 | + <if variable="DOI"> |
| 367 | + <text macro="DOI"/> |
| 368 | + </if> |
| 369 | + <else-if variable="URL"> |
| 370 | + <group prefix=", "> |
| 371 | + <text variable="URL"/> |
| 372 | + <text macro="accessed-date"/> |
| 373 | + </group> |
| 374 | + </else-if> |
| 375 | + </choose> |
377 | 376 | </macro> |
378 | 377 | <macro name="webpage-post-bib"> |
379 | 378 | <group delimiter=", "> |
380 | 379 | <text macro="author-full"/> |
381 | 380 | <text macro="title"/> |
382 | 381 | <choose> |
383 | | - <if variable="URL" match="any"> |
| 382 | + <if variable="URL"> |
384 | 383 | <group> |
385 | 384 | <text variable="URL"/> |
386 | 385 | <text macro="accessed-date"/> |
|
417 | 416 | </group> |
418 | 417 | </group> |
419 | 418 | <choose> |
420 | | - <if variable="DOI" match="any"> |
| 419 | + <if variable="DOI"> |
421 | 420 | <text macro="DOI"/> |
422 | 421 | </if> |
423 | | - <else-if variable="URL" match="any"> |
424 | | - <group delimiter=" " prefix=", "> |
| 422 | + <else-if variable="URL"> |
| 423 | + <group prefix=", "> |
425 | 424 | <text variable="URL"/> |
426 | 425 | <text macro="accessed-date"/> |
427 | 426 | </group> |
|
513 | 512 | <sort> |
514 | 513 | <key macro="author-short"/> |
515 | 514 | <key macro="title-short"/> |
516 | | - <key macro="issued"/> |
| 515 | + <key macro="issued-no-parenthesis"/> |
517 | 516 | </sort> |
518 | 517 | <layout delimiter="; "> |
519 | 518 | <group delimiter=" "> |
|
581 | 580 | <text macro="title-short" prefix="(" suffix=")"/> |
582 | 581 | </group> |
583 | 582 | </if> |
584 | | - <else-if variable="title-short" match="any"> |
| 583 | + <else-if variable="title-short"> |
585 | 584 | <text macro="title-short"/> |
586 | 585 | </else-if> |
587 | 586 | <else> |
|
606 | 605 | <text macro="treaty-details"/> |
607 | 606 | </group> |
608 | 607 | </if> |
609 | | - <else-if variable="title-short" match="any"> |
| 608 | + <else-if variable="title-short"> |
610 | 609 | <text macro="title-short"/> |
611 | 610 | </else-if> |
612 | 611 | <else> |
|
660 | 659 | <else-if type="article-newspaper article-magazine post-weblog" match="any"> |
661 | 660 | <text macro="article-newspaper-magazine-weblog-bib" suffix="."/> |
662 | 661 | </else-if> |
663 | | - <else-if type="thesis" match="any"> |
| 662 | + <else-if type="thesis"> |
664 | 663 | <text macro="thesis-bib" suffix="."/> |
665 | 664 | </else-if> |
666 | 665 | <else-if type="chapter entry-encyclopedia paper-conference" match="any"> |
|
673 | 672 | <text macro="nor-prepworks" suffix="."/> |
674 | 673 | </else-if> |
675 | 674 | <else-if type="treaty"> |
676 | | - <group delimiter=", "> |
| 675 | + <group delimiter=", " suffix="."> |
677 | 676 | <text macro="title"/> |
678 | | - <text macro="treaty-details" suffix="."/> |
| 677 | + <text macro="treaty-details"/> |
679 | 678 | </group> |
680 | 679 | </else-if> |
681 | 680 | <else-if type="legal_case"> |
|
0 commit comments