Commit a9201be2 authored by Nigel McNie's avatar Nigel McNie
Browse files

If we couldn't find a persondata element with <uri>, look for the element with person_type#Self.



This should make us a little more able to find them in other exports.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 68bc719a
......@@ -146,7 +146,14 @@ class PluginImportLeap extends PluginImport {
$this->persondataid = (string)$author->uri;
}
else {
$this->persondataid = false;
$persondata = $this->get('xml')->xpath('//a:feed/a:entry/a:category[('
. $this->curie_xpath('@scheme', PluginImportLeap::NS_CATEGORIES, 'person_type#') . ') and @term="Self"]/../a:id');
if (isset($persondata[0])) {
$this->persondataid = (string)$persondata[0][0];
}
else {
$this->persondataid = false;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment