Skip to content

Handle the problem of the Clarkes #12

@patrickmj

Description

@patrickmj

In the bibliography.xml and front.xml files, Mary and Charles Clark are encoded in the following ways

  1. <name type="app">Charles &amp; Mary Cowden Clarke</name>
  2. <author>Clarke, Charles Cowden</author>
  3. <author display="book(ldash)">Clarke, Charles Cowden</author>, &amp; <author>Mary Cowden Clarke</author>
  4. <author>Clarke, Mary</author>
  5. <author>Cowden Clarke, Charles &amp; Mary</author>

I need to watch for these cases in the import process and parse them out.

This will involve creating new individual authors for the two in getCommentators and manually adding to the list of $commentatorNodes to process somehow.

There doesn't seem to be a way to directly add a node to a DOMNodeList, so after parsing out, creating, and normalizing the names, create a second array of nodes to go through the same process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions