ArchivesPortalEuropeFoundation / EAG2012

Maintenance of EAG2012, the Encoded Archival Guide for describing institutions with archival holdings
5 stars 1 forks source link

[Major revision] Updates to <maintenanceHistory>, <maintenanceEvent> and its sub-elements #117

Open kerstarno opened 1 year ago

kerstarno commented 1 year ago

Provide a general summary of the issue in the Title above. Delete the part of the issue template that does not apply depending on whether you describe a change to an existing element / attribute or the addition of a new one.

Creator of issue

State your name, organisation and ways to reach you. Name: Kerstin Arnold Organisation: Archives Portal Europe Foundation, Working Group on Standards Email: standards@archivesportaleurope.net GitHub username (if applicable): @kerstarno

Changes to existing element / attribute

Give the current name of the element / attribute. Include the tag name and the full name. Name: <maintenanceHistory>, <maintenanceEvent>, <agent>, <agentType>, <eventType>, and <eventDateTime>

Change in content model (elements)

List all sub-elements and attributes that should be removed from or added to the element's content model.

kerstarno commented 1 year ago

For conversion, the current encoding

<maintenanceHistory>
  <maintenanceEvent xml:lang="language of maintenanceEvent">
    <agent xml:lang="language of agent" source="source of agent">Agent</agent>
    <agentType>human OR machine</agentType>
    <eventDateTime source="source of eventDateTime" standardDateTime="YYYY-MM-DDTHH:MM:SS">
    eventDateTime</eventDateTime>
    <eventType>cancelled OR created OR deleted OR derived OR published OR revised OR updated</eventType>
  </maintenanceEvent>
</maintenanceHistory>

becomes

<maintenanceHistory>
  <maintenanceEvent languageOfElement="language of maintenanceEvent" maintenanceEventType="cancelled OR created OR deleted OR derived OR revised OR updated">
    <agent agentType="human OR machine" languageOfElement="language of agent" vocabularySource="source of agent">Agent</agent>
    <eventDateTime standardDateTime="YYYY-MM-DDTHH:MM:SS">eventDateTime</eventDateTime>
    <!-- if the <eventType> was "published", the @maintenanceEventType "updated" is used and an <eventDescription> is added as follows
    <eventDescription>published</eventDescription>
    -->
  </maintenanceEvent>
</maintenanceHistory>