thesaurus and tags i18n working
This commit is contained in:
@@ -39,10 +39,10 @@ process:
|
||||
plugin: default_value
|
||||
default_value: 0
|
||||
source: '@parent_id'
|
||||
forum_container: is_container
|
||||
changed: timestamp
|
||||
|
||||
#synonyms
|
||||
field_synonyms: synonyms
|
||||
field_synonyms: synonyms_synonym
|
||||
|
||||
# TODO translation
|
||||
# used on advanced search
|
||||
# field_used_on_advanced_search: field_used_on_advanced_search
|
||||
|
@@ -0,0 +1,39 @@
|
||||
id: d7_taxonomy_term_tags_i18n
|
||||
label: Taxonomy terms Tags i18n
|
||||
migration_group: d7_materio
|
||||
audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Materio
|
||||
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
||||
|
||||
source:
|
||||
plugin: d7_taxonomy_term_tags_i18n
|
||||
bundle: tag_libres
|
||||
translations: true
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_term
|
||||
translations: true
|
||||
|
||||
process:
|
||||
tid:
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_term_tags
|
||||
source: tid
|
||||
vid:
|
||||
plugin: default_value
|
||||
default_value: tags
|
||||
langcode: language
|
||||
|
||||
name: name
|
||||
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
|
||||
field_synonyms: synonyms_synonym
|
||||
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_taxonomy_term_tags
|
@@ -22,7 +22,6 @@ process:
|
||||
vid:
|
||||
plugin: default_value
|
||||
default_value: thesaurus
|
||||
# langcode: language
|
||||
name: name
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
@@ -47,5 +46,3 @@ process:
|
||||
|
||||
# used on advanced search
|
||||
field_used_on_advanced_search: field_used_on_advanced_search
|
||||
|
||||
# TODO translation
|
||||
|
@@ -18,12 +18,10 @@ destination:
|
||||
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
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_term_thesaurus
|
||||
source: tid
|
||||
vid:
|
||||
plugin: default_value
|
||||
default_value: thesaurus
|
||||
|
Reference in New Issue
Block a user