{"action":"created","issue":{"url":"https://api.github.com/repos/icaruseu/mom-ca/issues/275","labels_url":"https://api.github.com/repos/icaruseu/mom-ca/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/icaruseu/mom-ca/issues/275/comments","events_url":"https://api.github.com/repos/icaruseu/mom-ca/issues/275/events","html_url":"https://github.com/icaruseu/mom-ca/issues/275","id":87791827,"number":275,"title":"EditMOM3 needs a mechanisms to check if existing charter is covered by template","user":{"login":"GVogeler","id":324006,"avatar_url":"https://avatars.githubusercontent.com/u/324006?v=3","gravatar_id":"","url":"https://api.github.com/users/GVogeler","html_url":"https://github.com/GVogeler","followers_url":"https://api.github.com/users/GVogeler/followers","following_url":"https://api.github.com/users/GVogeler/following{/other_user}","gists_url":"https://api.github.com/users/GVogeler/gists{/gist_id}","starred_url":"https://api.github.com/users/GVogeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GVogeler/subscriptions","organizations_url":"https://api.github.com/users/GVogeler/orgs","repos_url":"https://api.github.com/users/GVogeler/repos","events_url":"https://api.github.com/users/GVogeler/events{/privacy}","received_events_url":"https://api.github.com/users/GVogeler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/icaruseu/mom-ca/labels/Active","name":"Active","color":"bfdadc"},{"url":"https://api.github.com/repos/icaruseu/mom-ca/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"StephanMa","id":6735556,"avatar_url":"https://avatars.githubusercontent.com/u/6735556?v=3","gravatar_id":"","url":"https://api.github.com/users/StephanMa","html_url":"https://github.com/StephanMa","followers_url":"https://api.github.com/users/StephanMa/followers","following_url":"https://api.github.com/users/StephanMa/following{/other_user}","gists_url":"https://api.github.com/users/StephanMa/gists{/gist_id}","starred_url":"https://api.github.com/users/StephanMa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephanMa/subscriptions","organizations_url":"https://api.github.com/users/StephanMa/orgs","repos_url":"https://api.github.com/users/StephanMa/repos","events_url":"https://api.github.com/users/StephanMa/events{/privacy}","received_events_url":"https://api.github.com/users/StephanMa/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/icaruseu/mom-ca/milestones/21","html_url":"https://github.com/icaruseu/mom-ca/milestones/EditMOM3","labels_url":"https://api.github.com/repos/icaruseu/mom-ca/milestones/21/labels","id":892817,"number":21,"title":"EditMOM3","description":null,"creator":{"login":"GVogeler","id":324006,"avatar_url":"https://avatars.githubusercontent.com/u/324006?v=3","gravatar_id":"","url":"https://api.github.com/users/GVogeler","html_url":"https://github.com/GVogeler","followers_url":"https://api.github.com/users/GVogeler/followers","following_url":"https://api.github.com/users/GVogeler/following{/other_user}","gists_url":"https://api.github.com/users/GVogeler/gists{/gist_id}","starred_url":"https://api.github.com/users/GVogeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GVogeler/subscriptions","organizations_url":"https://api.github.com/users/GVogeler/orgs","repos_url":"https://api.github.com/users/GVogeler/repos","events_url":"https://api.github.com/users/GVogeler/events{/privacy}","received_events_url":"https://api.github.com/users/GVogeler/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":7,"state":"open","created_at":"2014-12-05T11:49:12Z","updated_at":"2015-12-08T14:20:18Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-06-12T17:12:09Z","updated_at":"2015-12-08T14:22:45Z","closed_at":null,"body":"(part of #43 )\r\nEditMOM3 is currently only designed to handle freshly created documents. In `mycollection.xqm` the function `my-collection-charter-new-empty` uses a template to create the new empty charter which contains all the elements necessary for the binding.\r\n(see https://github.com/icaruseu/mom-ca/wiki/Code-structure-of-the-editor )\r\nIf we want to use EditMOM3 for existing charters, we have to make sure that the document is conformant to the expected binding or make EditMOM3 more generic (i.e. reduce the minimal template and create a meachism to add new visualxml elements ( #35 ) .\r\n\r\nThe documents stored in MOM-CA were created without this template, so they could:\r\n\r\n* use additional elements (#35)\r\n* don't use a required element\r\n* use the elements in a nesting not included in EditMOM3 (#276)\r\n\r\nPossible solutions?\r\n\r\n1. create a template \"on the fly\" merging the data of the original charter and the default template\r\n2. create a template \"covering all\" possibilities of markup (might need a more restricted schema to ensure that)\r\n3. build EditMOM3 more generically without a template\r\n"},"comment":{"url":"https://api.github.com/repos/icaruseu/mom-ca/issues/comments/162895037","html_url":"https://github.com/icaruseu/mom-ca/issues/275#issuecomment-162895037","issue_url":"https://api.github.com/repos/icaruseu/mom-ca/issues/275","id":162895037,"user":{"login":"GVogeler","id":324006,"avatar_url":"https://avatars.githubusercontent.com/u/324006?v=3","gravatar_id":"","url":"https://api.github.com/users/GVogeler","html_url":"https://github.com/GVogeler","followers_url":"https://api.github.com/users/GVogeler/followers","following_url":"https://api.github.com/users/GVogeler/following{/other_user}","gists_url":"https://api.github.com/users/GVogeler/gists{/gist_id}","starred_url":"https://api.github.com/users/GVogeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GVogeler/subscriptions","organizations_url":"https://api.github.com/users/GVogeler/orgs","repos_url":"https://api.github.com/users/GVogeler/repos","events_url":"https://api.github.com/users/GVogeler/events{/privacy}","received_events_url":"https://api.github.com/users/GVogeler/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T14:22:45Z","updated_at":"2015-12-08T14:22:45Z","body":"closed with #330"}}