123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- 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
|