Skip to content

MOM CA: Charter editors

GVogeler edited this page Nov 8, 2020 · 4 revisions

Modifying existing charters:

  • "Save and edit": creates an xrx:saved-entry in the {USERID}.xml//xrx:saved_list and copies the current XML into metadata.charter.saved under the name of the atom:id (replacing / with #). Attention: if by any reasons the /xrx:user/xrx:storage/xrx:saved_list-path does not exist, the service cannot create the entry in the {USERID}.xml.
  • "edit": User modifies the copy in metadata.charter.saved. The charters in their realm are listed in the user's individual profile xrx.user/{USERID}.xml in xrx:saved. The profile stores for each saved charter the atom:id (xrx:id), the date of saving (xrx:start) and the release status (xrx:freigabe with the default no, set to yes with the release, and xrx:release with the date_time of the release.
  • "release": In the user-profile xrx:freigabe is set to yes, xrx:released is added with the current time. Send a notification mail to the moderator stored in xrx.user\{USERID}\{user}.xml in xrx:moderator.
  • "moderate": ?? moderator can see diff (...), reject the changes (...), or publish the version. "publish" calls the service publish-charter defined in app/publication.
  • "publish": is defined in the service publish-charter in app/publication/service. It copies the charter to the its original place removes the charter from the metadata.charter.saved, deletes the reference in the user profile, and sends a notification of the publication to the user and the moderator. The service uses atom-tag-name as parameter. The updates are done via the atom-methods defined in the core.

Creating a new charter via the MyCollections environment:

  • "add bookmarked charter to collection": creates an empty XML from the template in the collection, adding an <atom:link rel="versionOf" href="{ATOM:ID}"> to the atom-header

  • "publish collection": copies the charter data from the user-space (xrx.user/metadata.charters) to metadata.charters.public and the collection data from user/metadata.mycollection to metata.mycollection.public

  • Code structure of EditMOM3

Clone this wiki locally