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 <descriptiveNote> and sub-element <p> (with <reference> and <span>) #134

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: <descriptiveNote>, <p>

Change in context

List all parent elements to which the element / attribute should be added. Furthermore, list all parent elements from which the element / attribute should be removed.

Remove from

Change in availability

For elements, give an indication of their changed availability within each affected parent element ("1..1" for required but not repeatable, "1 (or another number)..n" for required and repeatable, "0..1" for optional but not repeatable", "0..n" for optional and repeatable). For added attributes, indicate their changed availability with "1" for required or "0" for optional within each affected parent element. Changed availability: <descriptiveNote> is now optional in all contexts within EAG 3.0

Change in content model (elements)

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

Remove

Sub-element(s): n/a Attributes (with default values, if applicable): remove @xml:lang and @source from <p> (replaced with @languageOfElement and @sourceReference respectively)

Add

New element / attribute

Give the name of the new element / attribute. Include the tag name and the full name. Name: <reference> (in <conventionDeclaration>, <localTypeDeclaration>, and <rightsDeclaration> a replacement for <citation>, see #119), <span>

Context and availability

List all parent elements to which the element / attribute should be added. For elements, give an indication of their availability within each parent element ("1..1" for required but not repeatable, "1 (or another number)..n" for required and repeatable, "0..1" for optional but not repeatable", "0..n" for optional and repeatable). For attributes, indicate their availability with "1" for required or "0" for optional within each parent element. Parent element(s):

Content model (elements)

List all sub-elements and attributes of the new element. For sub-elements, give an indication of their availability ("1..1" for required but not repeatable, "1 (or another number)..n" for required and repeatable, "0..1" for optional but not repeatable", "0..n" for optional and repeatable). For attributes, indicate their availability with "1" for required or "0" for optional.

kerstarno commented 1 year ago

For conversion, the following use cases apply:

  1. Elements that use <descriptiveNote> in EAG 2012 and also use it in EAG 3.0 In these cases, the main aspect of the conversion relates to the sub-element <p> and its attributes @xml:lang and @source if used. @xml:lang is replaced with @languageOfElement (the value stays the same). The value of @source is transferred to a new <source><reference> under <control><sources>. The new <source> element gets an @id added and the existing <p> element then uses @sourceReference to point to the new <source>.

I.e.

<descriptiveNote>
  <p xml:lang="[language of p]" source="[source of p]">p</p>
</descriptiveNote>

becomes

<control>
  [...]
  <sources>
    <source id="source1">
      <reference>source of p</reference>
    </source>
  </sources>
  [...]
</control>
[...]
<descriptiveNote>
  <p languageOfElement="[language of p]" source="#source1">p</p>
</descriptiveNote>
  1. Elements that use <descriptiveNote> in EAG 2012, but use <p> directly in EAG 3.0 In these cases, e.g. as part of the change from <repositorhist> to <biogHist>, the same happens as in case 1, but the wrapper <descriptiveNote> is removed. See #126 for an encoded example.

  2. Elements that use <descriptiveNote> in EAG 2012, but can have text directly in EAG 3.0 In these cases (<building>, <researchServices>, <internetAccess>, <refreshment>, <exhibition>, <toursSessions>, <otherServices>), the text of <descriptiveNote><p> as well as its attributes get transferred to the respective element directly. If <descriptiveNote> in EAG 2012 includes several <p> elements, a new iteration of the respective element will be created for each of these <p> elements.

E.g.

<researchServices>
  <descriptiveNote>
    <p xml:lang="[language of p1]" source="[source of p1]">p1</p>
    <p xml:lang="[language of p2]" source="[source of p2]">p2</p>
  </descriptiveNote>
</researchServices

becomes

<control>
  [...]
  <sources>
    <source id="source1">
      <reference>source of p1</reference>
    </source>
    <source id="source2">
      <reference>source of p2</reference>
    </source>
  </sources>
  [...]
</control>
[...]
<researchServices languageOfElement="[language of p1]" source="#source1">p1</researchServices>
<researchServices languageOfElement="[language of p2]" source="#source2">p2</researchServices>

It might be useful to consider including a comment into the converted file to suggest combining the content of two elements like these in case they were meant to belong to one entry initially (with repeated <p>-s mainly being used for formatting a longer text) rather than describing two different instances of, in this example here, research services.

  1. Elements where <descriptiveNote> is removed in EAG 3.0 without an encoding alternative In these cases (<repository>, <computerPlaces>), the conversion would comment the <descriptiveNote> out and add a note that the text, if intended to be kept, needs to be moved into an appropriate alternative element by hand. For <computerPlaces>, the suggestion could be made to move it to the grandparent element <searchroom>, for which <descriptiveNote> is now available.