Skip to content

Commit

Permalink
Improvements to norsk-henvisningsstandard-for-rettsvitenskapelige-tek…
Browse files Browse the repository at this point in the history
…ster.csl (#5507)
  • Loading branch information
StianOby committed Jun 15, 2021
1 parent a3706b1 commit 52f9d99
Showing 1 changed file with 60 additions and 35 deletions.
95 changes: 60 additions & 35 deletions norsk-henvisningsstandard-for-rettsvitenskapelige-tekster.csl
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
<term name="translator" form="verb-short">overs.</term>
<term name="translator" form="short">overs.</term>
<term name="editortranslator" form="verb-short">red. og overs.</term>
<term name="editortranslator" form="verb">Redigert og oversatt av</term>
<term name="editortranslator" form="verb">redigert og oversatt av</term>
<term name="translator" form="short">overs.</term>
<term name="and others">et al.</term>
<term name="open-quote">«</term>
<term name="close-quote">»</term>
<term name="accessed">sitert</term>
<term name="accessed">lest</term>
<term name="no date">udatert</term>
<term name="edition">utgave</term>
<term name="edition" form="short">utg.</term>
Expand Down Expand Up @@ -94,9 +94,6 @@
<else-if type="legislation">
<text variable="title-short"/>
</else-if>
<else-if type="legal_case">
<text variable="title"/>
</else-if>
<else>
<text font-style="italic" variable="title-short"/>
</else>
Expand All @@ -107,7 +104,10 @@
<if type="chapter article-journal article-newspaper article-magazine" match="any">
<text quotes="true" variable="title"/>
</if>
<else-if type="legal_case legislation" match="any">
<else-if type="legislation">
<text variable="container-title"/>
<text prefix=" " suffix=" " macro="issued-full-date"/>
<text prefix="nr. " suffix=" " variable="volume"/>
<text variable="title"/>
</else-if>
<else>
Expand Down Expand Up @@ -159,23 +159,14 @@
</choose>
</macro>
<macro name="accessed-date">
<choose>
<if type="personal_communication">
<text variable="genre" prefix=", " suffix=", "/>
<date variable="issued">
<date-part name="day" form="numeric" suffix=". "/>
<date-part name="month" form="long" suffix=" "/>
<date-part name="year"/>
</date>
</if>
<else>
<date variable="accessed" prefix=" [Sitert " suffix="]">
<date-part name="day" form="numeric" suffix=". "/>
<date-part name="month" form="long" suffix=" "/>
<date-part name="year"/>
</date>
</else>
</choose>
<group prefix=" (" suffix=")">
<text term="accessed"/>
<date variable="accessed" prefix=" ">
<date-part name="day" form="numeric" suffix=". "/>
<date-part name="month" form="long" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</macro>
<macro name="locator">
<choose>
Expand All @@ -186,7 +177,7 @@
</group>
</if>
<else-if locator="section paragraph" match="any">
<text variable="locator" prefix=" § "/>
<text variable="locator" prefix=" §&#160;"/>
</else-if>
<else>
<group delimiter=" ">
Expand Down Expand Up @@ -218,24 +209,58 @@
</else>
</choose>
</macro>
<macro name="nor-case">
<choose>
<if variable="container-title" match="any">
<text variable="container-title"/>
<text prefix=" " variable="volume"/>
<text prefix=" s. " variable="page"/>
<text prefix=" (" suffix=")" variable="title-short"/>
</if>
<else-if variable="number" match="any">
<text variable="number"/>
<text prefix=" (" suffix=")" variable="title-short"/>
</else-if>
<else>
<text suffix="s dom av " macro="author-full"/>
<text macro="issued-full-date"/>
<text prefix=" (" suffix=")" variable="title-short"/>
</else>
</choose>
</macro>
<macro name="nor-legislation">
<choose>
<if position="first">
<text macro="title"/>
<text prefix=" (" suffix=")" variable="title-short"/>
</if>
<else-if variable="title-short" match="any">
<text macro="title-short"/>
</else-if>
<else>
<text variable="container-title"/>
<text prefix=" " variable="title"/>
</else>
</choose>
</macro>
<citation disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name" disambiguate-add-year-suffix="true" et-al-min="2" et-al-use-first="1">
<sort>
<key macro="author-short"/>
<key macro="title-short"/>
<key macro="issued"/>
</sort>
<layout delimiter=", ">
<layout delimiter="; ">
<group delimiter=" ">
<choose>
<if type="book thesis chapter article-journal article-newspaper article-magazine personal_communication" match="any">
<text macro="author-short"/>
<text macro="issued"/>
</if>
<else-if type="legal_case">
<text macro="title"/>
<text macro="nor-case"/>
</else-if>
<else-if type="legislation">
<text macro="title-short"/>
<text macro="nor-legislation"/>
</else-if>
<else-if type="report">
<text macro="author-short"/>
Expand Down Expand Up @@ -272,17 +297,18 @@
<else-if type="article-newspaper article-magazine" match="any">
<group suffix=".">
<text macro="author-full"/>
<text prefix=". " macro="issued"/>
<text prefix=" " macro="title"/>
<text prefix=", " macro="title"/>
<text prefix=", " font-style="italic" variable="container-title"/>
<choose>
<if variable="URL" match="none">
<if variable="issued" match="any">
<text prefix=", " macro="issued-full-date"/>
</if>
<else>
</choose>
<choose>
<if variable="URL" match="any">
<text prefix=", " variable="URL"/>
<text macro="accessed-date"/>
</else>
</if>
</choose>
</group>
</else-if>
Expand Down Expand Up @@ -311,15 +337,14 @@
</group>
</else-if>
<else-if type="legislation bill" match="any">
<text macro="issued-no-parenthesis"/>
<text macro="title"/>
</else-if>
<else-if type="legal_case">
<text macro="title"/>
<text macro="nor-case"/>
</else-if>
<else-if type="personal_communication">
<text macro="author-full"/>
<text macro="accessed-date"/>
<text prefix=" " macro="issued"/>
</else-if>
<else>
<text variable="title"/>
Expand Down

0 comments on commit 52f9d99

Please sign in to comment.