created plugins for migration
thesaurus is importing well for default language (en)
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
id: d7_taxonomy_vocabulary_company
|
||||
label: Taxonomy vocabularies Company
|
||||
migration_group: d7_materio
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
- Materio
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_vocabulary
|
||||
bundle: company
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_vocabulary
|
||||
|
||||
process:
|
||||
vid:
|
||||
-
|
||||
plugin: make_unique_entity_field
|
||||
source: machine_name
|
||||
entity_type: taxonomy_vocabulary
|
||||
field: vid
|
||||
length: 32
|
||||
migrated: true
|
||||
-
|
||||
# This plugin checks if the vocabulary being migrated is the one used by
|
||||
# Forum. If so, we use the machine name that Forum expects. Otherwise, we
|
||||
# leave it unchanged.
|
||||
plugin: forum_vocabulary
|
||||
machine_name: forums
|
||||
label: name
|
||||
name: name
|
||||
description: description
|
||||
hierarchy: hierarchy
|
||||
weight: weight
|
@@ -1,35 +0,0 @@
|
||||
id: d7_taxonomy_vocabulary_showroom
|
||||
label: Taxonomy vocabularies Showroom
|
||||
migration_group: d7_materio
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
- Materio
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_vocabulary
|
||||
bundle: showroom
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_vocabulary
|
||||
|
||||
process:
|
||||
vid:
|
||||
-
|
||||
plugin: make_unique_entity_field
|
||||
source: machine_name
|
||||
entity_type: taxonomy_vocabulary
|
||||
field: vid
|
||||
length: 32
|
||||
migrated: true
|
||||
-
|
||||
# This plugin checks if the vocabulary being migrated is the one used by
|
||||
# Forum. If so, we use the machine name that Forum expects. Otherwise, we
|
||||
# leave it unchanged.
|
||||
plugin: forum_vocabulary
|
||||
machine_name: forums
|
||||
label: name
|
||||
name: name
|
||||
description: description
|
||||
hierarchy: hierarchy
|
||||
weight: weight
|
@@ -1,35 +0,0 @@
|
||||
id: d7_taxonomy_vocabulary_tags
|
||||
label: Taxonomy vocabularies Tags
|
||||
migration_group: d7_materio
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
- Materio
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_vocabulary
|
||||
bundle: tag_libres
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_vocabulary
|
||||
|
||||
process:
|
||||
vid:
|
||||
-
|
||||
plugin: make_unique_entity_field
|
||||
source: machine_name
|
||||
entity_type: taxonomy_vocabulary
|
||||
field: vid
|
||||
length: 32
|
||||
migrated: true
|
||||
-
|
||||
# This plugin checks if the vocabulary being migrated is the one used by
|
||||
# Forum. If so, we use the machine name that Forum expects. Otherwise, we
|
||||
# leave it unchanged.
|
||||
plugin: forum_vocabulary
|
||||
machine_name: forums
|
||||
label: name
|
||||
name: name
|
||||
description: description
|
||||
hierarchy: hierarchy
|
||||
weight: weight
|
@@ -1,35 +0,0 @@
|
||||
id: d7_taxonomy_vocabulary_thesaurus
|
||||
label: Taxonomy vocabularies Thesaurus
|
||||
migration_group: d7_materio
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
- Materio
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_vocabulary
|
||||
bundle: onthologie
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_vocabulary
|
||||
|
||||
process:
|
||||
vid:
|
||||
-
|
||||
plugin: make_unique_entity_field
|
||||
source: machine_name
|
||||
entity_type: taxonomy_vocabulary
|
||||
field: vid
|
||||
length: 32
|
||||
migrated: true
|
||||
-
|
||||
# This plugin checks if the vocabulary being migrated is the one used by
|
||||
# Forum. If so, we use the machine name that Forum expects. Otherwise, we
|
||||
# leave it unchanged.
|
||||
plugin: forum_vocabulary
|
||||
machine_name: forums
|
||||
label: name
|
||||
name: name
|
||||
description: description
|
||||
hierarchy: hierarchy
|
||||
weight: weight
|
@@ -38,3 +38,22 @@ process:
|
||||
revision_log: log
|
||||
revision_timestamp: timestamp
|
||||
content_translation_source: source
|
||||
|
||||
# TODO: mémo (field_memo)
|
||||
# TODO: nature (field_nature_titre)
|
||||
# TODO: description (field_description)
|
||||
# TODO: thesaurus (field_onthologie)
|
||||
# TODO: tags (field_tags_libres)
|
||||
# TODO: images (field_materiau_image)
|
||||
# TODO: videos (field_video_filter)
|
||||
# TODO: manufacturer (field_company_fab)
|
||||
# TODO: distributor (field_company_distrib)
|
||||
# TODO: fichiers (field_attachments)
|
||||
# TODO: materiaux liés (field_materiau_ref)
|
||||
# TODO: breves liées (field_breve_ref)
|
||||
# TODO: samples (field_location)
|
||||
# TODO: famille (field_famille)
|
||||
# TODO: identifiant (field_identifiant)
|
||||
# TODO: reference materio (field_reference_materio) COMPUTED
|
||||
# TODO: workflow
|
||||
# TODO: translations
|
||||
|
@@ -9,27 +9,19 @@ migration_tags:
|
||||
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_term
|
||||
plugin: d7_taxonomy_term_company
|
||||
bundle: company
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_term
|
||||
bundle: company
|
||||
|
||||
# migration_dependencies:
|
||||
# required:
|
||||
# - d7_taxonomy_vocabulary_company
|
||||
# optional:
|
||||
# - d7_field_instance
|
||||
|
||||
process:
|
||||
# If you are using this file to build a custom migration consider removing
|
||||
# the tid field to allow incremental migrations.
|
||||
tid: tid
|
||||
# tid: tid
|
||||
vid:
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_vocabulary_company
|
||||
source: vid
|
||||
plugin: default_value
|
||||
default_value: company
|
||||
name: name
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
@@ -49,3 +41,5 @@ process:
|
||||
source: '@parent_id'
|
||||
forum_container: is_container
|
||||
changed: timestamp
|
||||
|
||||
# TODO: tode node company
|
||||
|
@@ -9,27 +9,19 @@ migration_tags:
|
||||
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_term
|
||||
plugin: d7_taxonomy_term_showroom
|
||||
bundle: showroom
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_term
|
||||
bundle: showroom
|
||||
|
||||
# migration_dependencies:
|
||||
# required:
|
||||
# - d7_taxonomy_vocabulary_showroom
|
||||
# optional:
|
||||
# - d7_field_instance
|
||||
|
||||
process:
|
||||
# If you are using this file to build a custom migration consider removing
|
||||
# the tid field to allow incremental migrations.
|
||||
tid: tid
|
||||
# tid: tid
|
||||
vid:
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_vocabulary_showroom
|
||||
source: vid
|
||||
plugin: default_value
|
||||
default_value: showroom
|
||||
name: name
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
@@ -49,3 +41,5 @@ process:
|
||||
source: '@parent_id'
|
||||
forum_container: is_container
|
||||
changed: timestamp
|
||||
|
||||
# TODO: tode node showroom
|
||||
|
@@ -9,27 +9,19 @@ migration_tags:
|
||||
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_term
|
||||
plugin: d7_taxonomy_term_tags
|
||||
bundle: tag_libres
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_term
|
||||
bundle: tags
|
||||
|
||||
# migration_dependencies:
|
||||
# required:
|
||||
# - d7_taxonomy_vocabulary_tags
|
||||
# optional:
|
||||
# - d7_field_instance
|
||||
|
||||
process:
|
||||
# If you are using this file to build a custom migration consider removing
|
||||
# the tid field to allow incremental migrations.
|
||||
# tid: tid
|
||||
vid:
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_vocabulary_tags
|
||||
source: vid
|
||||
plugin: default_value
|
||||
default_value: tags
|
||||
name: name
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
@@ -49,3 +41,8 @@ process:
|
||||
source: '@parent_id'
|
||||
forum_container: is_container
|
||||
changed: timestamp
|
||||
|
||||
#synonyms
|
||||
field_synonyms: synonyms
|
||||
|
||||
# TODO translation
|
||||
|
@@ -9,27 +9,19 @@ migration_tags:
|
||||
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_term
|
||||
plugin: d7_taxonomy_term_thesaurus
|
||||
bundle: onthologie
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_term
|
||||
bundle: thesaurus
|
||||
|
||||
# migration_dependencies:
|
||||
# required:
|
||||
# - d7_taxonomy_vocabulary_thesaurus
|
||||
# optional:
|
||||
# - d7_field_instance
|
||||
|
||||
process:
|
||||
# If you are using this file to build a custom migration consider removing
|
||||
# the tid field to allow incremental migrations.
|
||||
tid: tid
|
||||
# tid: tid
|
||||
vid:
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_vocabulary_thesaurus
|
||||
source: vid
|
||||
plugin: default_value
|
||||
default_value: thesaurus
|
||||
name: name
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
@@ -49,3 +41,11 @@ process:
|
||||
source: '@parent_id'
|
||||
forum_container: is_container
|
||||
changed: timestamp
|
||||
|
||||
#synonyms
|
||||
field_synonyms: synonyms
|
||||
|
||||
# used on advanced search
|
||||
field_used_on_advanced_search: advanced_search
|
||||
|
||||
# TODO translation
|
||||
|
Reference in New Issue
Block a user