Skip to content

Commit b1eafb6

Browse files
committed
Minor improvements, bugfixes, and cleanup. For detailed committ log, see citation-style-language/style-variant-builder#3
1 parent 9ebad06 commit b1eafb6

File tree

2 files changed

+90
-92
lines changed

2 files changed

+90
-92
lines changed

norsk-henvisningsstandard-for-rettsvitenskapelige-tekster-full-firstnote.csl

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</locale>
4646
<macro name="type-sorting">
4747
<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">
4949
<text value="1"/>
5050
</if>
5151
<else-if type="webpage">
@@ -66,9 +66,6 @@
6666
<else-if type="treaty">
6767
<text value="7"/>
6868
</else-if>
69-
<else>
70-
<text value="8"/>
71-
</else>
7269
</choose>
7370
</macro>
7471
<macro name="legal_case-authority">
@@ -98,7 +95,7 @@
9895
</macro>
9996
<macro name="author-short">
10097
<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"/>
10299
<et-al term="and others"/>
103100
<substitute>
104101
<names variable="editor"/>
@@ -156,13 +153,13 @@
156153
</macro>
157154
<macro name="issued">
158155
<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=")">
161158
<date-part name="year"/>
162159
</date>
163160
</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">
166163
<date-part name="year"/>
167164
</date>
168165
</else-if>
@@ -233,7 +230,7 @@
233230
</macro>
234231
<macro name="volume">
235232
<choose>
236-
<if variable="volume" match="any">
233+
<if variable="volume">
237234
<group delimiter=" ">
238235
<label variable="volume"/>
239236
<text variable="volume"/>
@@ -259,7 +256,7 @@
259256
</macro>
260257
<macro name="nor-case">
261258
<choose>
262-
<if variable="container-title" match="any">
259+
<if variable="container-title">
263260
<group delimiter=" ">
264261
<text variable="container-title"/>
265262
<text variable="volume"/>
@@ -270,7 +267,7 @@
270267
<text prefix="(" suffix=")" font-style="italic" variable="title-short"/>
271268
</group>
272269
</if>
273-
<else-if variable="number" match="any">
270+
<else-if variable="number">
274271
<group delimiter=" ">
275272
<text variable="number"/>
276273
<text prefix="(" suffix=")" font-style="italic" variable="title-short"/>
@@ -304,7 +301,7 @@
304301
<text variable="container-title"/>
305302
<choose>
306303
<!-- Preparatory works and other documents from the Storting (parliament) have volume number -->
307-
<if variable="volume" match="any">
304+
<if variable="volume">
308305
<text variable="number"/>
309306
<text variable="volume" prefix="(" suffix=")"/>
310307
</if>
@@ -329,15 +326,15 @@
329326
<text variable="container-title" font-style="italic"/>
330327
<text macro="issued-no-parenthesis"/>
331328
</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=" ">
336333
<label variable="number" form="short"/>
337334
<text variable="number"/>
338-
</if>
339-
</choose>
340-
</group>
335+
</group>
336+
</if>
337+
</choose>
341338
<group delimiter=" ">
342339
<label variable="page" form="short"/>
343340
<text variable="page"/>
@@ -352,35 +349,37 @@
352349
<text macro="title"/>
353350
<text font-style="italic" variable="container-title"/>
354351
<choose>
355-
<if variable="issued" match="any">
352+
<if variable="issued">
356353
<text macro="issued-full-date"/>
357354
</if>
358355
</choose>
359-
<group delimiter=" ">
360-
<choose>
361-
<if variable="page" match="any">
356+
<choose>
357+
<if variable="page">
358+
<group delimiter=" ">
362359
<label variable="page" form="short"/>
363360
<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>
376364
</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>
377376
</macro>
378377
<macro name="webpage-post-bib">
379378
<group delimiter=", ">
380379
<text macro="author-full"/>
381380
<text macro="title"/>
382381
<choose>
383-
<if variable="URL" match="any">
382+
<if variable="URL">
384383
<group>
385384
<text variable="URL"/>
386385
<text macro="accessed-date"/>
@@ -417,11 +416,11 @@
417416
</group>
418417
</group>
419418
<choose>
420-
<if variable="DOI" match="any">
419+
<if variable="DOI">
421420
<text macro="DOI"/>
422421
</if>
423-
<else-if variable="URL" match="any">
424-
<group delimiter=" " prefix=", ">
422+
<else-if variable="URL">
423+
<group prefix=", ">
425424
<text variable="URL"/>
426425
<text macro="accessed-date"/>
427426
</group>
@@ -513,7 +512,7 @@
513512
<sort>
514513
<key macro="author-short"/>
515514
<key macro="title-short"/>
516-
<key macro="issued"/>
515+
<key macro="issued-no-parenthesis"/>
517516
</sort>
518517
<layout delimiter="; ">
519518
<group delimiter=" ">
@@ -581,7 +580,7 @@
581580
<text macro="title-short" prefix="(" suffix=")"/>
582581
</group>
583582
</if>
584-
<else-if variable="title-short" match="any">
583+
<else-if variable="title-short">
585584
<text macro="title-short"/>
586585
</else-if>
587586
<else>
@@ -606,7 +605,7 @@
606605
<text macro="treaty-details"/>
607606
</group>
608607
</if>
609-
<else-if variable="title-short" match="any">
608+
<else-if variable="title-short">
610609
<text macro="title-short"/>
611610
</else-if>
612611
<else>
@@ -660,7 +659,7 @@
660659
<else-if type="article-newspaper article-magazine post-weblog" match="any">
661660
<text macro="article-newspaper-magazine-weblog-bib" suffix="."/>
662661
</else-if>
663-
<else-if type="thesis" match="any">
662+
<else-if type="thesis">
664663
<text macro="thesis-bib" suffix="."/>
665664
</else-if>
666665
<else-if type="chapter entry-encyclopedia paper-conference" match="any">
@@ -673,9 +672,9 @@
673672
<text macro="nor-prepworks" suffix="."/>
674673
</else-if>
675674
<else-if type="treaty">
676-
<group delimiter=", ">
675+
<group delimiter=", " suffix=".">
677676
<text macro="title"/>
678-
<text macro="treaty-details" suffix="."/>
677+
<text macro="treaty-details"/>
679678
</group>
680679
</else-if>
681680
<else-if type="legal_case">

0 commit comments

Comments
 (0)