Add an empty <publisher/>
element to <publicationStmt/>
if no element from the publicationStmtPart.agency group (i.e. <publisher/>
, <distributor/>
, <authority/>
) is present. <publicationStmt/>
should contain as first child an element with one of these tags.
If all children or <publicationStmt/>
are p-like (<p/>
or <ab/>
) no <publisher/>
is added.
This change will only add the empty <publisher/>
element as first child of <publicationStmt/>
, it will not guarantee that the order of the elements in <publicationStmt/>
is valid if any element from the publicationStmtPart.agency group is found.
Before transformation:
<teiHeader>
<!-- ... -->
<publicationStmt>
<address>
<addrLine>Address</addrLine>
</address>
<date>2022-20-20</date>
</publicationStmt>
<!-- ... -->
</teiHeader>
After transformation:
<teiHeader>
<!-- ... -->
<publicationStmt>
<publisher/>
<address>
<addrLine>Address</addrLine>
</address>
<date>2022-20-20</date>
</publicationStmt>
<!-- ... -->
</teiHeader>