Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 1.14 KB

p-pubstmt.md

File metadata and controls

34 lines (31 loc) · 1.14 KB

p-pubstmt

Remove empty <p/> or <ab/> elements from <publicationStmt/> if there are siblings that are not p-like but from model.publicationStmtPart.agency or model.publicationStmtPart.detail, i.e. <publisher/> etc.

If the target element is not empty, no transformation is performed and the observer will raise an error since the file in question requires manual inspection and curation. Check the log file for such errors.

Example

Before transformation:

<teiHeader>
  <fileDesc>
    <!-- ... -->
    <publicationStmt>
      <publisher>Name</publisher>
      <p/>
      <date>2023</date>
      <p>text</p>
    </publicationStmt>
  </fileDesc>
</teiHeader>

After transformation:

<teiHeader>
  <fileDesc>
    <!-- ... -->
    <publicationStmt>
      <publisher>Name</publisher>
      <date>2023</date>
      <p>text</p> <!-- Can't be removed without information loss, handle manually -->
    </publicationStmt>
  </fileDesc>
</teiHeader>