id: d6_edlp_corpus label: Edlp Drupal 6 corpus migration_tags: - Drupal 6 deriver: Drupal\node\Plugin\migrate\D6NodeDeriver migration_group: d6_edlp source: plugin: d6_edlp_corpus node_type: corpus process: # In D6, nodes always have a tnid, but it's zero for untranslated nodes. # We normalize it to equal the nid in that case. # @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow(). # If you are using this file to build a custom migration consider removing # the nid and vid fields to allow incremental migrations. # nid: tnid # vid: vid type: plugin: default_value default_value: enregistrement langcode: plugin: default_value source: language default_value: "und" title: - plugin: get source: title - plugin: skip_on_empty method: row # this is not working :( uid: - plugin: migration_lookup migration: d6_edlp_users source: node_uid - plugin: default_value default_value: 1 # status: status created: created changed: changed promote: promote sticky: sticky revision_uid: revision_uid revision_log: log revision_timestamp: timestamp 'field_description/value': body 'field_description/format': plugin: default_value default_value: wysiwyg # ARTICLE (body) # node ref -> text 'body/value': article 'body/format': plugin: default_value default_value: wysiwyg # taxo term -> entity ref terms # use this one for fetchCol in plugin field_entrees: plugin: migration_lookup migration: d6_edlp_entrees source: entrees # use this one for fetchAll in plugin # field_entrees: # - # plugin: iterator # source: entrees # process: # id: tid # - # plugin: flatten # - # plugin: migration_lookup # migration: d6_edlp_entrees # no_stub: true # field_entrees: # plugin: iterator # source: entrees # process: # plugin: migration_lookup # migration: d6_edlp_entrees # field_genre -> field_genres field_genres: plugin: migration_lookup migration: d6_edlp_genres source: genres # field_genres: # - # plugin: iterator # source: field_genre # process: # id: value # - # plugin: flatten # - # plugin: migration_lookup # migration: d6_edlp_genres # taxo term -> entity ref terms field_langues: plugin: migration_lookup migration: d6_edlp_langues source: langues # field_artiste: field_locuteurs # text -> entity ref terms # instead of entity_generate, i create the term in prepareRow from plugin field_locuteurs: locuteurs # field_locuteurs: # plugin: entity_generate # entity_type: taxonomy_term # bundle_key: vid # bundle: locuteurs # source: locuteurs # # value_key: field_artiste_value # field_compositeur: field_collectionneurs # text -> entity ref terms # instead of entity_generate, i create the term in prepareRow from plugin field_collectionneurs: collectionneurs # # file # # field_mp3 -> field_son field_son: plugin: migration_lookup migration: d6_edlp_allfiles source: sons_fid # field_son: # # plugin: migration_lookup # # migration: d6_edlp_allfiles # # source: fid # plugin: iterator # source: field_mp3 # process: # target_id: # plugin: migration_lookup # migration: d6_edlp_allfiles # source: fid # workflow # status: # plugin: static_map # source: workflow # map: # 1: 0 # 2: 0 # 3: 1 # 4: 1 status: plugin: default_value default_value: 1 field_workflow: plugin: default_value default_value: "corpus_documents_publie" destination: plugin: entity:node migration_dependencies: required: - d6_edlp_users - d6_edlp_entrees - d6_edlp_genres - d6_edlp_langues - d6_edlp_allfiles