Skip to content

Commit

Permalink
*8150* Support multiple MODS origin_info nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Mar 7, 2013
1 parent 524758d commit 5a871ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/schemas/mods/ModsPlugin.inc.php
Expand Up @@ -184,8 +184,7 @@ function &handleRootNode(&$modsNode) {
}

// Handle originInfo
$originNode =& $modsNode->getChildByName(array('originInfo', 'mods:originInfo', 'oai_mods:originInfo'));
if (isset($originNode)) {
for ($i=0; $originNode =& $modsNode->getChildByName(array('originInfo', 'mods:originInfo', 'oai_mods:originInfo'), $i); $i++) {
foreach ($originNode->getChildren() as $child) {
$name = $child->getName(false);
switch ($name) {
Expand Down

0 comments on commit 5a871ca

Please sign in to comment.