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

Import the rest of the personalinformation fields.

They're looked for based on the mahra:field attribute. We're not looking
at mahara:artefacttype here at all, which maybe we should be if
mahara:field isn't present, but I don't think it'll matter too much.
parent edb6c80d
......@@ -168,6 +168,17 @@ class LeapImportResume extends LeapImportArtefactPlugin {
$importer->trace('WARNING: gender found but not male or female - no gender stored for this user');
$maharaattributes = array();
foreach ($item->attributes(PluginImportLeap::NS_MAHARA) as $key => $value) {
$maharaattributes[$key] = (string)$value;
if (isset($maharaattributes['field'])) {
if (in_array($maharaattributes['field'], array('placeofbirth', 'citizenship', 'visastatus', 'maritalstatus'))) {
$composites[$maharaattributes['field']] = (string)$item;
if ($composites) {
Supports Markdown
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