added 'invité/accompagné/curaté par' field to migration, with CT personne node creation

This commit is contained in:
2026-07-11 16:06:12 +02:00
parent ec5b13be3c
commit a2a0e423a3
4 changed files with 158 additions and 3 deletions

View File

@@ -43,6 +43,14 @@ source:
name: projet_type
label: 'Type de projet'
selector: 'Type de projet'
-
name: invites
label: 'Invité/accompagné/curaté par'
selector: 'invité/accompagné/curaté par'
-
name: curator
label: 'Commissaria'
selector: 'invité/accompagné/curaté par'
# Under 'ids', we identify source fields populated above which will uniquely
# identify each imported item. The 'type' makes sure the migration map table
# uses the proper schema type for stored the IDs.
@@ -65,7 +73,29 @@ process:
from_format: 'd/m/Y'
to_format: 'Y-m-d'
field_type_de_projet:
-
plugin: skip_on_empty
method: process
source: projet_type
-
plugin: explode
delimiter: ','
-
plugin: callback
callable: trim
-
plugin: entity_generate
entity_type: taxonomy_term
bundle_key: vid
bundle: type_de_projet
value_key: name
field_invite_accompagne_curate_p:
-
plugin: skip_on_empty
method: process
source: invites
-
plugin: personne_generate
uid:
plugin: default_value
default_value: 3