laws-africa / indigo Goto Github PK
View Code? Open in Web Editor NEWIndigo Platform for publishing beautiful legislation.
Home Page: https://laws.africa/indigo
License: Other
Indigo Platform for publishing beautiful legislation.
Home Page: https://laws.africa/indigo
License: Other
This happens because: when the document is saved the server sends updated XML. The DocumentContent model parser the new XML and stores it, and the TOC is rebuilt. However, the 'item-selected' event is not fired and the fragment linked to the editing view that we use to indicate which node must be updated with changes from step (5), is not updated. So the fragment now belongs to the old document object.
For big documents, this is much faster.
We will need a way to identify what the base revision of the diff is. We can't use the revision id, since the latest version of the document doesn't actually have a revision id.
Clarify whether these are all work amendments, or only amendments to this version. It should probably be only the latter.
Provide a list of common publication names (eg. provincial gazette names), linked to a country.
Maybe also make it a combo-box, so that users can also add their own if the pre-filled list isn't sufficient.
This would allow callers to find published sources of documents.
eg. https://indigo.openbylaws.org.za/api/za-cpt/act/by-law/2009/events/eng@2010-12-09/toc.json has URLs for without an expression date, which maps to the "latest" expression which is actually wrong.
UI should have a "Download as ZIP archive" menu option. Download should include:
The editor is not used in AfricanLIIs indigo, is complicated to integrate, and out of date.
Cohesive mechanism for linking work and document attachments.
Add a "Download as XML" to the document menu.
Currently I have to cut-and-paste from the XML view.
eg. https://indigo.africanlii.org/documents/574/
AKN expects a non-empty body.
There's not enough room for everything otherwise.
Regulation gnr698 of 2017
should be Regulation GN R698 of 2017
.
This helps navigate the hierarchy of long documents.
Make this inline.
It's currently complex to apply new amendments to an existing document. You need to ensure that the amending document is in the library, link to it, ensure you're editing the right one, etc.
Instead, treat a collection of expressions of a single work, and the linked amendments, as a logic model.
Remember it between views?
Too early to upgrade to Django 1.11 LTS right now. But updating to 1.10.x would help make the upgrade to LTS easier later on.
Have tested Indigo with Django 1.10.1. Will start with this version, and upgrade to 1.10.6 if all things go smooth.
Major concern being the Third Party libraries/plugins.
These are currently hardcoded in models/documents.py. If we make them mandatory, we don't need defaults. Or at the very least, move them into settings.
Would be useful to do basic full-text search on the server.
Make the document page more document focused by removing boxes and moving buttons into the button toolbar.
We've generated AKN for the constitution documents at myconstitution.co.za, but they contain UL lists, which the plaintext version of Indigo doesn't yet support.
Indigo thinks the following starts a new schedule:
(2) Schedule 1 of the Public Enterprises Governance Act , 2006 (Act 2 of 2006), is amended by the insertion after item 52 of the following item:
"53 Communications Regulatory Authority of Namibia Communications Act , 2009 (Act 8 of 2009 )"
[Subsec (2) amended by sec 15 of Act 8 of 2015.]
Change it to
(2) The Schedule ...
fixes it.
Both in parsing, and in display.
Django 1.10 support ended 2 December 2017.
indigo_api/static/stylesheets/epub.scss
and indigo_api/static/stylesheets/export.scss
.
Country-level permissions.
Support annotations and/or free-form comments/replies.
The quick edit uses querySelector('#...')
which can be an invalid selector for ids in schedules which can look like schedule/section-4.1
. We must
[id=...]
or similar rather than #
which is too generic.Perhaps use the Markdown inline syntax: ![alt text](/path/to/image.jpg)
Issues to be resolved:
eg.
[[S 3(1) subs by s 27 of [Act 33 of 2004](/za/act/2004/33).]]
In transifex, i will translate to spanish
This is about localising the output of the platform, not the platform itself.
For instance, for a Xhosa document this should change:
Provincial Notice 365 of 2011
Commences on 2 April 2012 unless otherwise noted
Phrases to translate:
Helps with columnar text, footers and headers.
Otherwise the act auto-detection uses 'za' incorrectly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.