discoverygarden/islandora_scholar — pull request #37 by nigelgbanks (2013-04-23 12:57:03+00:00)
Title: Fixes warning in converter.php.

warning: Invalid argument supplied for foreach() in /home/nbanks/projects/drupal6/site/sites/berkeley.local/modules/islandora_scholar/modules/citeproc/generators/converter.php on line 493.

Get generated when viewing importing objects, this is largely because the SimpleXMLElement library is awful. The child objects of xpath queries forget their registered namespaces, so running xpath on child objects generates errors because it forgot what "mods:" means. converter.php is absolutely horrid and fixing it seems like a huge time sink with lots of potential problems ensuing, so rather than fix it we'll fix the import so that it forcebly adds the "mods:" prefix for imported objects.