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 <maintenanceAgency> and its sub-elements #116

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: <maintenanceAgency> with <agencyCode>, <agencyName>, <otherAgencyCode>, and <descriptiveNote>

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

<maintenanceAgency>
  <agencyCode source="source of agencyCode">agencyCode</agencyCode>
  <agencyName xml:lang="language of agencyName" source="source of agencyName">agencyName</agencyName>
  <otherAgencyCode localType="localType of otherAgencyCode 1" source="source of otherAgencyCode 1">otherAgencyCode 1</otherAgencyCode>
  <otherAgencyCode localType="localType of otherAgencyCode 2" source="source of otherAgencyCode 2">otherAgencyCode 2</otherAgencyCode>
  <descriptiveNote>
    <p xml:lang="language of p 1" source="source of p1">p1</p>
    <p xml:lang="language of p 2" source="source of p2">p2</p>
  </descriptiveNote>
</maintenanceAgency>

becomes

<maintenanceAgency>
  <agencyCode vocabularySource="source of agencyCode">agencyCode</agencyCode>
  <agencyName languageOfElement="language of agencyName" vocabularySource="source of agencyName">agencyName</agencyName>
  <otherAgencyCode localType="localType of otherAgencyCode 1" vocabularySource="source of otherAgencyCode 1">otherAgencyCode 1</otherAgencyCode>
  <otherAgencyCode localType="localType of otherAgencyCode 2" vocabularySource="source of otherAgencyCode 2">otherAgencyCode 2</otherAgencyCode>
  <descriptiveNote>
    <p languageOfElement="language of p 1" sourceReference="#source1">p1</p>
    <p languageOfElement="language of p 2" sourceReference="#source2">p2</p>
  </descriptiveNote>
</maintenanceAgency>
[...]
<sources>
  <source id="source1">
    <reference>source of p1</reference>
  </source>
  <source id="source2">
    <reference>source of p2</reference>
  </source>
</sources>