profile member almost done, missing email
This commit is contained in:
parent
5816142342
commit
beee434e21
|
@ -31,33 +31,12 @@ process:
|
||||||
plugin: migration_lookup
|
plugin: migration_lookup
|
||||||
migration: d7_users
|
migration: d7_users
|
||||||
source: uid
|
source: uid
|
||||||
|
field_title: field_private_name_title
|
||||||
field_activity_sector: field_activity_sector
|
|
||||||
field_employee: field_employee
|
|
||||||
field_first_name: field_first_name
|
field_first_name: field_first_name
|
||||||
field_name: field_name
|
field_name: field_name
|
||||||
field_naf: field_naf
|
|
||||||
field_organization: field_organization
|
field_organization: field_organization
|
||||||
|
field_activity_sector: field_activity_sector
|
||||||
field_phone: field_private_phone
|
field_phone: field_private_phone
|
||||||
field_position: field_private_quality
|
|
||||||
field_service: field_service
|
|
||||||
field_siret: field_siret
|
|
||||||
field_title: field_private_name_title
|
|
||||||
field_vat_number_intra_ce: field_vat_number_intra_ce
|
|
||||||
field_website: field_user_website
|
|
||||||
field_memo: field_memo
|
|
||||||
|
|
||||||
# field_email:
|
|
||||||
# plugin: merge
|
|
||||||
# source:
|
|
||||||
# - field_administrative_email
|
|
||||||
# - field_private_email
|
|
||||||
|
|
||||||
# field_name:
|
|
||||||
# plugin: merge
|
|
||||||
# source:
|
|
||||||
# - field_name
|
|
||||||
# - field_private_name
|
|
||||||
|
|
||||||
# field_address:
|
# field_address:
|
||||||
# plugin: addressfield
|
# plugin: addressfield
|
||||||
|
@ -87,6 +66,37 @@ process:
|
||||||
# name_line
|
# name_line
|
||||||
# data
|
# data
|
||||||
|
|
||||||
|
field_position: field_private_quality
|
||||||
|
field_service: field_service
|
||||||
|
field_employee: field_employee
|
||||||
|
field_vat_number_intra_ce: field_vat_number_intra_ce
|
||||||
|
field_naf: field_naf
|
||||||
|
field_siret: field_siret
|
||||||
|
|
||||||
|
field_website:
|
||||||
|
plugin: iterator
|
||||||
|
source: field_user_website
|
||||||
|
process:
|
||||||
|
uri: url
|
||||||
|
title: title
|
||||||
|
options: attributes
|
||||||
|
|
||||||
|
|
||||||
|
# not verified
|
||||||
|
|
||||||
|
field_email: field_email
|
||||||
|
# field_email
|
||||||
|
# plugin: merge
|
||||||
|
# source:
|
||||||
|
# - field_administrative_email
|
||||||
|
# - field_private_email
|
||||||
|
|
||||||
|
# field_name:
|
||||||
|
# plugin: merge
|
||||||
|
# source:
|
||||||
|
# - field_name
|
||||||
|
# - field_private_name
|
||||||
|
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- d7_users
|
- d7_users
|
||||||
|
|
|
@ -105,6 +105,18 @@ class D7UserProfile extends FieldableEntity {
|
||||||
$row->setSourceProperty($field_name, $this->getFieldValues('profile2', $field_name, $pid));
|
$row->setSourceProperty($field_name, $this->getFieldValues('profile2', $field_name, $pid));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// merge : field_administrative_email & field_private_email into field_email
|
||||||
|
// merge : field_private_name & field_name into field_name
|
||||||
|
switch ($type) {
|
||||||
|
case 'contact_operationnel':
|
||||||
|
$row->setSourceProperty('field_email', $row->getSourceProperty('field_administrative_email'));
|
||||||
|
$row->setSourceProperty('field_name', $row->getSourceProperty('field_private_name'));
|
||||||
|
break;
|
||||||
|
case 'adherent':
|
||||||
|
$row->setSourceProperty('field_email', $row->getSourceProperty('field_private_email'));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// make sure that field_website url is absolute
|
// make sure that field_website url is absolute
|
||||||
$field_website = $row->getSourceProperty('field_user_website');
|
$field_website = $row->getSourceProperty('field_user_website');
|
||||||
if(isset($field_website[0]['url'])){
|
if(isset($field_website[0]['url'])){
|
||||||
|
|
Loading…
Reference in New Issue