View | Details | Raw Unified | Return to bug 5426
Collapse All | Expand All

(-)a/plugins/schemas/mods/ModsPlugin.inc.php (-7 / +1 lines)
 Lines 121-133   class ModsPlugin extends SchemaPlugin { Link Here 
121
		$result =& $xmlParser->parseText($contents);
121
		$result =& $xmlParser->parseText($contents);
122
		$returner = array();
122
		$returner = array();
123
123
124
		$modsNode =& $result->getChildByName(array('oai_mods:mods', 'mods:mods', 'mods'));
124
		$returner =& $this->handleRootNode($result);
125
		if (!isset($modsNode)) {
126
			$returner = null;
127
			return $returner;
128
		}
129
130
		$returner =& $this->handleRootNode($modsNode);
131
125
132
		$result->destroy();
126
		$result->destroy();
133
		$xmlParser->destroy();
127
		$xmlParser->destroy();

Return to bug 5426