gawati / gawati-editor-ui

Gawati Client
GNU Affero General Public License v3.0
0 stars 0 forks source link

Akn Versions support #21

Open kohsah opened 6 years ago

kohsah commented 6 years ago

Akoma Ntoso has a concept of expression level versioning. We use the IRI naming convention to identify the version of a document.

What this means is, if you have an act from Nigeria like below (Act 93 with official date 25 May 2011 - then is the first version of the Act as on 25 May 2011

/akn/ng/act/legge/2011-05-25/Act_93/eng@/!main

If this Act is amended on 3 April 2014 then its expression would be:

/akn/ng/act/legge/2011-05-25/Act_93/eng@2014-04-03/!main

i.e. it retains the main identification metadata (type, subtype, official date, doc number, official date, language) and adds an additional metadata called version data. The content of the document (as in the attachment ) will change.

Functionally to implement we need an action within a document called "New Legal Version" , and if that is clicked, essentially prompts for a version date - and once a version date has been chosen (this date is always a date after the official date), creates a new document with the same metadata as the current document + a version date field , and makes it available in edit mode. The attachments / content panel will be reset.

kohsah commented 6 years ago

@ashwinibm

Following bugs observed:

1) New Legal Version should create the new legal version in Draft state. Currenly it get created in the same state that the original document was in .

2) The version date is not shown anywhere on the document. It should be shown as a read-only field.

kohsah commented 6 years ago

@ashwinibm Date bug as before for version date . Chosen version date gets switched to a day prior when saved.