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 <languageDeclarations> and its sub-elements #118

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: <languageDeclarations>, <languageDeclaration>, <language>, <script>, 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

<languageDeclarations>
  <languageDeclaration>
    <language languageCode="code for the language mentioned in the language 1 element" xml:lang="language of the language 1 element" source="source of the language 1 element">language 1</language>
    <script scriptCode="code for the script mentioned in the script 1 element" xml:lang="language of the script 1 element" source="source of the script 1 element">script 1</script>
    <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>
  </languageDeclaration>
  <languageDeclaration>
    <language languageCode="code for the language mentioned in the language 2 element" xml:lang="language of the language 2 element" source="source of the language 2 element">language 2</language>
    <script scriptCode="code for the script mentioned in the script 2 element" xml:lang="language of the script 2 element" source="source of the script 2 element">script 2</script>
    <descriptiveNote>
      <p xml:lang="language of p 3" source="source of p3">p3</p>
      <p xml:lang="language of p 4" source="source of p4">p4</p>
  </descriptiveNote>
  </languageDeclaration>
</languageDeclarations>

becomes

<sources>
  <source>
    <reference>source of the language 1 element</reference>
  </source>
  <source>
    <reference>source of the script 1 element</reference>
  </source>
  <source id="source1">
    <reference>source of p1</reference>
  </source>
  <source id="source2">
    <reference>source of p2</reference>
  </source>
  <source>
    <reference>source of the language 2 element</reference>
  </source>
  <source>
    <reference>source of the script 2 element</reference>
  </source>
  <source id="source3">
    <reference>source of p3</reference>
  </source>
  <source id="source4">
    <reference>source of p4</reference>
  </source>
[...]
<languageDeclaration languageCode="code for the language mentioned in the language 1 element" scriptCode="code for the script mentioned in the script 1 element">
  <descriptiveNote>
    <p languageOfElement="language of p 1" sourceReference="#source1">p1</p>
    <p languageOfElement="language of p 2" sourceReference="#source2">p2</p>
  </descriptiveNote>
</languageDeclaration>
<languageDeclaration languageCode="code for the language mentioned in the language 2 element" scriptCode="code for the script mentioned in the script 2 element">
  <descriptiveNote>
    <p languageOfElement="language of p 3" sourceReference="#source3">p3</p>
    <p languageOfElement="language of p 4" sourceReference="#source4">p3</p>
  </descriptiveNote>
</languageDeclaration>