2018-12-11 16:58:49 +01:00
|
|
|
id: d7_node_materiau
|
|
|
|
label: Node Materiau
|
|
|
|
migration_group: d7_materio
|
|
|
|
audit: true
|
|
|
|
migration_tags:
|
|
|
|
- Drupal 7
|
|
|
|
- Content
|
|
|
|
- Materio
|
|
|
|
|
|
|
|
source:
|
|
|
|
plugin: d7_node_materiau
|
|
|
|
node_type: materiau
|
2019-02-05 15:36:36 +01:00
|
|
|
high_water_property:
|
|
|
|
name: changed
|
|
|
|
alias: n
|
2018-12-11 16:58:49 +01:00
|
|
|
|
|
|
|
destination:
|
|
|
|
plugin: entity:node
|
|
|
|
|
|
|
|
|
|
|
|
process:
|
|
|
|
# nid: nid
|
|
|
|
type:
|
|
|
|
plugin: default_value
|
|
|
|
default_value: materiau
|
|
|
|
title: title
|
2019-02-05 15:36:36 +01:00
|
|
|
created: created
|
|
|
|
changed: changed
|
|
|
|
|
2019-02-06 12:59:51 +01:00
|
|
|
uid:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_users
|
|
|
|
source: uid
|
|
|
|
|
2018-12-11 16:58:49 +01:00
|
|
|
field_short_description: field_nature_titre
|
|
|
|
field_migration:
|
|
|
|
plugin: default_value
|
|
|
|
default_value: 'migration_imported'
|
|
|
|
body:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_description
|
|
|
|
process:
|
|
|
|
value: value
|
|
|
|
format:
|
|
|
|
plugin: default_value
|
|
|
|
default_value: wysiwyg
|
|
|
|
langcode: language
|
|
|
|
field_memo: field_memo
|
|
|
|
field_workflow:
|
2018-12-12 17:29:13 +01:00
|
|
|
-
|
|
|
|
plugin: default_value
|
|
|
|
source: workflow
|
|
|
|
default_value: 2
|
|
|
|
-
|
|
|
|
plugin: static_map
|
|
|
|
default_value: 2
|
|
|
|
map:
|
|
|
|
1: "workflow_creation"
|
|
|
|
2: "workflow_hidden"
|
|
|
|
3: "workflow_visible"
|
|
|
|
4: "workflow_imported"
|
|
|
|
5: "workflow_edited"
|
2018-12-11 16:58:49 +01:00
|
|
|
|
2018-12-12 12:46:53 +01:00
|
|
|
field_thesaurus:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_taxonomy_term_thesaurus
|
|
|
|
source: field_onthologie
|
2018-12-16 20:00:32 +01:00
|
|
|
no_stub: true
|
2018-12-12 12:46:53 +01:00
|
|
|
field_tags:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_taxonomy_term_tags
|
|
|
|
source: field_tags_libres
|
2018-12-16 20:00:32 +01:00
|
|
|
no_stub: true
|
2018-12-12 12:46:53 +01:00
|
|
|
field_manufacturer:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_taxonomy_term_company
|
|
|
|
source: field_company_fab
|
2018-12-16 20:00:32 +01:00
|
|
|
no_stub: true
|
2018-12-12 12:46:53 +01:00
|
|
|
field_distributor:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_taxonomy_term_company
|
|
|
|
source: field_company_distrib
|
2018-12-16 20:00:32 +01:00
|
|
|
no_stub: true
|
2018-12-12 12:46:53 +01:00
|
|
|
field_video:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_video_filter
|
|
|
|
process:
|
|
|
|
value: url
|
2019-02-13 20:16:34 +01:00
|
|
|
field_linked_materials:
|
|
|
|
-
|
|
|
|
plugin: skip_on_empty
|
|
|
|
method: process
|
|
|
|
source: linked_materials
|
|
|
|
-
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_node_materiau
|
|
|
|
no_stub: true
|
2019-02-13 13:39:07 +01:00
|
|
|
field_linked_articles:
|
2018-12-12 17:29:13 +01:00
|
|
|
-
|
|
|
|
plugin: skip_on_empty
|
|
|
|
method: process
|
2019-02-13 20:34:49 +01:00
|
|
|
source: linked_articles
|
2018-12-12 17:29:13 +01:00
|
|
|
-
|
|
|
|
plugin: migration_lookup
|
2019-02-13 19:48:27 +01:00
|
|
|
migration: d7_node_article
|
2019-02-13 20:16:34 +01:00
|
|
|
# no_stub: true
|
2018-12-16 20:00:32 +01:00
|
|
|
field_materiau_images:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_materiau_image
|
|
|
|
process:
|
|
|
|
target_id:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_allpublicfiles
|
|
|
|
source: fid
|
|
|
|
no_stub: true
|
|
|
|
alt: alt
|
|
|
|
title: title
|
|
|
|
height: height
|
|
|
|
width: width
|
2018-12-16 21:29:58 +01:00
|
|
|
field_attachments:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_attachments
|
|
|
|
process:
|
|
|
|
target_id:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_allpublicfiles
|
|
|
|
source: fid
|
|
|
|
no_stub: true
|
|
|
|
# there is no description field filled
|
|
|
|
description: description
|
2018-12-17 17:31:28 +01:00
|
|
|
field_famille: field_famille
|
|
|
|
field_index: field_identifiant
|
|
|
|
field_reference: field_reference_materio
|
2018-12-11 16:58:49 +01:00
|
|
|
# just archives
|
2018-12-18 17:58:35 +01:00
|
|
|
field_localisation_old: field_localisation
|
|
|
|
# custom module rebuilded
|
|
|
|
field_samples:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_location
|
|
|
|
process:
|
|
|
|
location: location
|
|
|
|
target_id:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_taxonomy_term_showroom
|
|
|
|
source: showroom_tid
|
|
|
|
no_stub: true
|
|
|
|
|
2018-12-11 16:58:49 +01:00
|
|
|
|
|
|
|
migration_dependencies:
|
2018-12-16 20:00:32 +01:00
|
|
|
required:
|
|
|
|
- d7_allpublicfiles
|
2019-02-06 12:59:51 +01:00
|
|
|
- d7_users
|
2018-12-16 20:00:32 +01:00
|
|
|
- d7_taxonomy_term_thesaurus
|
|
|
|
- d7_taxonomy_term_tags
|
|
|
|
- d7_taxonomy_term_company
|
|
|
|
- d7_taxonomy_term_showroom
|
2019-02-13 20:16:34 +01:00
|
|
|
# optional:
|
|
|
|
# - d7_node_article
|