Handle the problem of the Clarkes #12

patrickmj opened this Issue Aug 18, 2012 · 0 comments


None yet

1 participant


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment