onthologie -> thesaurus migration ok
This commit is contained in:
@@ -22,6 +22,7 @@ process:
|
||||
vid:
|
||||
plugin: default_value
|
||||
default_value: thesaurus
|
||||
# langcode: language
|
||||
name: name
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
@@ -39,13 +40,12 @@ process:
|
||||
plugin: default_value
|
||||
default_value: 0
|
||||
source: '@parent_id'
|
||||
forum_container: is_container
|
||||
changed: timestamp
|
||||
|
||||
#synonyms
|
||||
field_synonyms: synonyms
|
||||
field_synonyms: synonyms_synonym
|
||||
|
||||
# used on advanced search
|
||||
field_used_on_advanced_search: advanced_search
|
||||
field_used_on_advanced_search: field_used_on_advanced_search
|
||||
|
||||
# TODO translation
|
||||
|
@@ -0,0 +1,41 @@
|
||||
id: d7_taxonomy_term_thesaurus_i18n
|
||||
label: Taxonomy terms Thesaurus i18n
|
||||
migration_group: d7_materio
|
||||
audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Materio
|
||||
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_term_thesaurus_i18n
|
||||
bundle: onthologie
|
||||
translations: true
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_term
|
||||
translations: true
|
||||
|
||||
process:
|
||||
# If you are using this file to build a custom migration consider removing
|
||||
# the tid field to allow incremental migrations.
|
||||
tid:
|
||||
plugin: migration
|
||||
source: tid
|
||||
migration: d7_taxonomy_term_thesaurus
|
||||
vid:
|
||||
plugin: default_value
|
||||
default_value: thesaurus
|
||||
langcode: language
|
||||
|
||||
name: name
|
||||
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
|
||||
field_synonyms: synonyms_synonym
|
||||
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_taxonomy_term_thesaurus
|
Reference in New Issue
Block a user