Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AT] Enable citation by official reporter #278

Merged
merged 7 commits into from
Jan 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 74 additions & 36 deletions juris-at-LegCit.csl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<category citation-format="note"/>
<category field="law"/>
<summary>Juris-M style module for Austria - localized for leg cit 4.</summary>
<updated>2020-11-02T10:42:07+01:00</updated>
<updated>2020-12-20T22:14:44+01:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
<law-module types="legal_case bill legislation regulation"/>
</info>
Expand Down Expand Up @@ -45,29 +45,48 @@
<if type="legal_case">
<group delimiter=" = ">
<group delimiter=" " parallel-first="authority number" parallel-delimiter-override=" = ">
<group no-repeat="authority">
<names variable="authority">
<name/>
<institution institution-parts="short">
<institution-part name="short"/>
</institution>
</names>
</group>
<number variable="division" prefix="(" suffix=")"/>
<group delimiter=", ">
<choose>
<if>
<conditions match="any">
<condition variable="container-title" match="none"/>
<condition context="bibliography"/>
</conditions>
<date variable="issued" form="numeric"/>
</if>
</choose>
<number variable="number"/>
</group>
<!-- ECLI masked as DOI -->
<text variable="DOI"/>
<choose>
<if>
<conditions match="all">
<condition variable="container-title" match="none"/>
<condition variable="volume" match="none"/>
<condition variable="collection-number" match="any"/>
</conditions>
<names variable="authority">
<name/>
<institution institution-parts="short">
<institution-part name="short"/>
</institution>
</names>
<group delimiter="/">
<number variable="issue"/>
<number variable="collection-number"/>
</group>
</if>
<else>
<group no-repeat="authority">
<names variable="authority">
<name/>
<institution form="short"/>
</names>
</group>
<number variable="division" prefix="(" suffix=")"/>
<group delimiter=", ">
<choose>
<if>
<conditions match="any">
<condition variable="container-title" match="none"/>
<condition context="bibliography"/>
</conditions>
<date variable="issued" form="numeric"/>
</if>
</choose>
<number variable="number"/>
</group>
<!-- ECLI masked as DOI -->
<text variable="DOI"/>
</else>
</choose>
</group>
<group delimiter=" ">
<text variable="container-title"/>
Expand Down Expand Up @@ -165,21 +184,40 @@
<if type="legal_case">
<group delimiter=" = ">
<group parallel-first="authority number" parallel-delimiter-override=" = " delimiter=" ">
<group no-repeat="authority">
<names variable="authority">
<name/>
<institution institution-parts="short">
<institution-part name="short"/>
</institution>
</names>
</group>
<number variable="division" prefix="(" suffix=")"/>
<choose>
<if variable="number">
<number variable="number"/>
<if>
<conditions match="all">
<condition variable="container-title" match="none"/>
<condition variable="volume" match="none"/>
<condition variable="collection-number" match="any"/>
</conditions>
<names variable="authority">
<name/>
<institution institution-parts="short">
<institution-part name="short"/>
</institution>
</names>
<group delimiter="/">
<number variable="issue"/>
<number variable="collection-number"/>
</group>
</if>
<else>
<date variable="issued" form="numeric"/>
<group no-repeat="authority">
<names variable="authority">
<name/>
<institution form="short"/>
</names>
</group>
<number variable="division" prefix="(" suffix=")"/>
<choose>
<if variable="number">
<number variable="number"/>
</if>
<else>
<date variable="issued" form="numeric"/>
</else>
</choose>
</else>
</choose>
</group>
Expand Down
158 changes: 100 additions & 58 deletions juris-at.csl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<category citation-format="note"/>
<category field="law"/>
<summary>Juris-M style module for Austria.</summary>
<updated>2020-11-15T23:12:01+01:00</updated>
<updated>2020-12-20T22:08:13+01:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
<law-module types="legal_case bill legislation regulation"/>
</info>
Expand Down Expand Up @@ -46,58 +46,81 @@
<group delimiter=" ">
<group delimiter=", ">
<group delimiter=" " parallel-first="authority number" parallel-delimiter-override=" = ">
<group no-repeat="authority">
<names variable="authority">
<name/>
<institution institution-parts="short">
<institution-part name="short"/>
</institution>
</names>
</group>
<number variable="division"/>
<group delimiter=", ">
<choose>
<if>
<conditions match="any">
<condition variable="container-title DOI" match="none"/>
<condition context="bibliography"/>
</conditions>
<date variable="issued" form="text"/>
</if>
</choose>
<number variable="number"/>
<text variable="title" font-style="italic"/>
</group>
<!-- ECLI masked as DOI -->
<text variable="DOI"/>
<choose>
<if>
<conditions match="all">
<condition variable="container-title" match="none"/>
<condition variable="volume" match="none"/>
<condition variable="collection-number" match="any"/>
</conditions>
<names variable="authority">
<name/>
<institution institution-parts="short">
<institution-part name="short"/>
</institution>
</names>
<group delimiter="/">
<number variable="issue"/>
<number variable="collection-number"/>
</group>
</if>
<else>
<group no-repeat="authority">
<names variable="authority">
<name/>
<institution form="short"/>
</names>
</group>
<number variable="division"/>
<group delimiter=", ">
<choose>
<if>
<conditions match="any">
<condition variable="container-title DOI" match="none"/>
<condition context="bibliography"/>
</conditions>
<date variable="issued" form="text"/>
</if>
</choose>
<number variable="number"/>
<text variable="title" font-style="italic"/>
</group>
<!-- ECLI masked as DOI -->
<text variable="DOI"/>
</else>
</choose>
</group>
<choose>
<if variable="title">
<text variable="container-title"/>
</if>
</choose>
</group>
<group delimiter=" ">
<choose>
<if variable="title" match="none">
<text variable="container-title"/>
</if>
</choose>
<group delimiter=", ">
<group delimiter="/">
<number variable="volume"/>
<date variable="publication-date" date-parts="year" form="numeric"/>
<number variable="collection-number"/>
<number variable="issue"/>
</group>
<group require="comma-safe-numbers-only">
<number variable="page"/>
<choose>
<if variable="container-title">
<group delimiter=" ">
<choose>
<if variable="title" match="none">
<text variable="container-title"/>
</if>
</choose>
<group delimiter=", ">
<group delimiter="/">
<number variable="volume"/>
<date variable="publication-date" date-parts="year" form="numeric"/>
<number variable="issue"/>
<number variable="collection-number"/>
</group>
<group require="comma-safe-numbers-only">
<number variable="page"/>
</group>
</group>
<group reject="comma-safe-numbers-only">
<number variable="page"/>
</group>
</group>
</group>
<group reject="comma-safe-numbers-only">
<number variable="page"/>
</group>
</group>
</if>
</choose>
</group>
</if>
<else-if type="bill">
Expand Down Expand Up @@ -161,21 +184,40 @@
<if type="legal_case">
<group delimiter=" ">
<group parallel-first="authority number" parallel-delimiter-override=" = " delimiter=" ">
<group no-repeat="authority">
<names variable="authority">
<name/>
<institution institution-parts="short">
<institution-part name="short"/>
</institution>
</names>
</group>
<number variable="division"/>
<choose>
<if variable="number">
<number variable="number"/>
<if>
<conditions match="all">
<condition variable="container-title" match="none"/>
<condition variable="volume" match="none"/>
<condition variable="collection-number" match="any"/>
</conditions>
<names variable="authority">
<name/>
<institution institution-parts="short">
<institution-part name="short"/>
</institution>
</names>
<group delimiter="/">
<number variable="issue"/>
<number variable="collection-number"/>
</group>
</if>
<else>
<date variable="issued" form="text"/>
<group no-repeat="authority">
<names variable="authority">
<name/>
<institution form="short"/>
</names>
</group>
<number variable="division"/>
<choose>
<if variable="number">
<number variable="number"/>
</if>
<else>
<date variable="issued" form="text"/>
</else>
</choose>
</else>
</choose>
</group>
Expand Down Expand Up @@ -272,7 +314,7 @@
</group>
</macro>

<macro name="juris-locator">
<macro name="juris-locator">
<group delimiter="&#x00A0;">
<choose>
<if locator="page" match="none">
Expand Down