Skip to content

Commit

Permalink
[AT] Enable citation by official reporter (#278)
Browse files Browse the repository at this point in the history
* Add at-module for LegCit

* Hard coded page term???

* Nothing hard-coded; just a logical issue

Reverts
georgd@2967e90

* A generic AT module

This could replace the existing juris-at.csl

* Remove localised generic at file

* Reset update date

* Apply VfGH and VwGH citing by official reporter
  • Loading branch information
georgd authored Jan 30, 2021
1 parent 2e80af6 commit 253052d
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 94 deletions.
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

0 comments on commit 253052d

Please sign in to comment.