Juris-M / legal-resource-registry

Jurisdiction ID and abbreviation data files for using with Jurism and other projects.
MIT License
31 stars 37 forks source link

Reworked Canada to new schema #26

Closed sam-gagnon closed 3 years ago

sam-gagnon commented 3 years ago

I finally was able to take the time to finish the Canada file with the new schema.

I did run into one major problem :

I seems that I cannot add a "name" to a court from within the jurisdiction definition. The "name" would instead overwrite the "abbrev".

"courts": { "court.appeal": { "name": "Court of Appeal", "abbrev": "%s CA", "ABBREV": "%sCA", "variants": { "fr": { "name": "Cour d'appel" } } } } "jurisdictions": { "ca:ab": { "name": "Canada", "abbrev": "Can", "ABBREV": "C", "courts": { "supreme.court": { "name": "Alberta Supreme Court", "variants": { "fr": {} } } } }

This makes it impossible to give a court a specific UI name for a particular jurisdiction. It isn't a big problem however, and might be better off being left alone.

fbennett commented 3 years ago

It pulled our file, compiled it, and installed to a test instance of the beta client, and it seems to work fine. In the UI I get "Cour d'appel" in the French UI, and "Court of Appeal" in the English UI, and the citation comes out as "QCCA" in both cases. Looks good.