2018-11-25 15:53:34 +01:00
|
|
|
id: d7_taxonomy_term_company
|
|
|
|
label: Taxonomy terms Company
|
|
|
|
migration_group: d7_materio
|
|
|
|
audit: true
|
|
|
|
migration_tags:
|
|
|
|
- Drupal 7
|
|
|
|
- Content
|
|
|
|
- Materio
|
|
|
|
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
|
|
|
|
|
|
|
source:
|
2018-11-28 11:54:22 +01:00
|
|
|
plugin: d7_taxonomy_term_company
|
2018-11-25 15:53:34 +01:00
|
|
|
bundle: company
|
|
|
|
|
|
|
|
destination:
|
|
|
|
plugin: entity:taxonomy_term
|
|
|
|
|
|
|
|
process:
|
|
|
|
# If you are using this file to build a custom migration consider removing
|
|
|
|
# the tid field to allow incremental migrations.
|
2018-11-28 11:54:22 +01:00
|
|
|
# tid: tid
|
2018-11-25 15:53:34 +01:00
|
|
|
vid:
|
2018-11-28 11:54:22 +01:00
|
|
|
plugin: default_value
|
|
|
|
default_value: company
|
2018-11-25 15:53:34 +01:00
|
|
|
name: name
|
|
|
|
weight: weight
|
|
|
|
# Only attempt to stub real (non-zero) parents.
|
|
|
|
parent_id:
|
|
|
|
-
|
|
|
|
plugin: skip_on_empty
|
|
|
|
method: process
|
|
|
|
source: parent
|
|
|
|
-
|
|
|
|
plugin: migration_lookup
|
2019-04-12 01:06:54 +02:00
|
|
|
migration: d7_taxonomy_term_company
|
2018-11-25 15:53:34 +01:00
|
|
|
parent:
|
|
|
|
plugin: default_value
|
|
|
|
default_value: 0
|
|
|
|
source: '@parent_id'
|
|
|
|
changed: timestamp
|
2018-12-10 12:41:32 +01:00
|
|
|
langcode:
|
|
|
|
plugin: default_value
|
|
|
|
default_value: 'und'
|
|
|
|
field_migration:
|
|
|
|
plugin: default_value
|
|
|
|
default_value: 'migration_imported'
|
2018-12-16 20:00:32 +01:00
|
|
|
|
2018-12-09 16:20:53 +01:00
|
|
|
# FROM TODE (linked tode node)
|
|
|
|
field_website:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_website
|
|
|
|
process:
|
|
|
|
uri: url
|
|
|
|
title: title
|
|
|
|
options: attributes
|
|
|
|
field_memo: field_memo
|
|
|
|
field_public_phone: public_phone
|
2018-12-09 16:59:55 +01:00
|
|
|
field_public_email:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_public_email
|
|
|
|
process:
|
|
|
|
value: email
|
|
|
|
field_public_address:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_public_address
|
|
|
|
process:
|
|
|
|
# langcode:
|
|
|
|
country_code: country
|
2021-02-15 14:00:26 +01:00
|
|
|
# administrative_area: administrative_area
|
|
|
|
# locality: locality
|
|
|
|
# dependent_locality: dependent_locality
|
|
|
|
# postal_code: postal_code
|
|
|
|
# # sorting_code:
|
|
|
|
# address_line1: thoroughfare
|
|
|
|
# # address_line2:
|
|
|
|
# organization: organisation_name
|
|
|
|
# given_name: first_name
|
|
|
|
# # additional_name:
|
|
|
|
# family_name: last_name
|
2018-12-09 16:59:55 +01:00
|
|
|
|
|
|
|
# SOURCES
|
|
|
|
# sub_administrative_area
|
|
|
|
# premise
|
|
|
|
# sub_premise
|
|
|
|
# name_line
|
|
|
|
# data
|
2018-12-09 16:20:53 +01:00
|
|
|
|
2018-12-09 16:59:55 +01:00
|
|
|
field_note: field_note
|
2021-02-15 13:45:16 +01:00
|
|
|
# field_departement: field_departement
|
2018-12-09 19:39:50 +01:00
|
|
|
description:
|
|
|
|
plugin: iterator
|
|
|
|
source: body
|
|
|
|
process:
|
|
|
|
value: value
|
|
|
|
format:
|
|
|
|
plugin: default_value
|
|
|
|
default_value: wysiwyg
|
|
|
|
field_infos_from_company:
|
|
|
|
plugin: iterator
|
|
|
|
source: field_infos_from_company
|
|
|
|
process:
|
|
|
|
value: value
|
|
|
|
format:
|
|
|
|
plugin: default_value
|
|
|
|
default_value: wysiwyg
|
|
|
|
field_workflow:
|
|
|
|
plugin: static_map
|
|
|
|
source: workflow
|
|
|
|
map:
|
|
|
|
1: "workflow_creation"
|
|
|
|
2: "workflow_hidden"
|
|
|
|
3: "workflow_visible"
|
|
|
|
4: "workflow_imported"
|
|
|
|
5: "workflow_edited"
|
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-16 20:00:32 +01:00
|
|
|
|
|
|
|
migration_dependencies:
|
|
|
|
required:
|
|
|
|
- d7_allpublicfiles
|