All the terms are now part of the "topics" vocabulary.
And the old vocabularies were converted into term paremts.
This commit is contained in:
parent
b920bf92da
commit
3e2c4cfdbc
8 changed files with 57 additions and 93 deletions
|
@ -18,11 +18,7 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: tid
|
source: tid
|
||||||
vid:
|
vid: 'topics'
|
||||||
-
|
|
||||||
plugin: migration_lookup
|
|
||||||
migration: upgrade_d7_taxonomy_vocabulary
|
|
||||||
source: vid
|
|
||||||
name:
|
name:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -39,22 +35,13 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: weight
|
source: weight
|
||||||
parent: '0'
|
parent:
|
||||||
forum_container:
|
- plugin: migration_lookup
|
||||||
-
|
migration: upgrade_d7_taxonomy_vocabulary
|
||||||
plugin: get
|
source: vid
|
||||||
source: is_container
|
|
||||||
changed:
|
|
||||||
-
|
|
||||||
plugin: get
|
|
||||||
source: timestamp
|
|
||||||
langcode:
|
|
||||||
-
|
|
||||||
plugin: get
|
|
||||||
source: language
|
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:taxonomy_term'
|
plugin: 'entity:taxonomy_term'
|
||||||
default_bundle: vocabulary_1
|
default_bundle: 'topics'
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- upgrade_d7_taxonomy_vocabulary
|
- upgrade_d7_taxonomy_vocabulary
|
||||||
|
|
|
@ -18,11 +18,7 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: tid
|
source: tid
|
||||||
vid:
|
vid: 'topics'
|
||||||
-
|
|
||||||
plugin: migration_lookup
|
|
||||||
migration: upgrade_d7_taxonomy_vocabulary
|
|
||||||
source: vid
|
|
||||||
name:
|
name:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -39,7 +35,10 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: weight
|
source: weight
|
||||||
parent: '0'
|
parent:
|
||||||
|
- plugin: migration_lookup
|
||||||
|
migration: upgrade_d7_taxonomy_vocabulary
|
||||||
|
source: vid
|
||||||
forum_container:
|
forum_container:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -54,7 +53,7 @@ process:
|
||||||
source: language
|
source: language
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:taxonomy_term'
|
plugin: 'entity:taxonomy_term'
|
||||||
default_bundle: vocabulary_10
|
default_bundle: 'topics'
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- upgrade_d7_taxonomy_vocabulary
|
- upgrade_d7_taxonomy_vocabulary
|
||||||
|
|
|
@ -18,11 +18,7 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: tid
|
source: tid
|
||||||
vid:
|
vid: 'topics'
|
||||||
-
|
|
||||||
plugin: migration_lookup
|
|
||||||
migration: upgrade_d7_taxonomy_vocabulary
|
|
||||||
source: vid
|
|
||||||
name:
|
name:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -39,7 +35,10 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: weight
|
source: weight
|
||||||
parent: '0'
|
parent:
|
||||||
|
- plugin: migration_lookup
|
||||||
|
migration: upgrade_d7_taxonomy_vocabulary
|
||||||
|
source: vid
|
||||||
forum_container:
|
forum_container:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -54,7 +53,7 @@ process:
|
||||||
source: language
|
source: language
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:taxonomy_term'
|
plugin: 'entity:taxonomy_term'
|
||||||
default_bundle: vocabulary_12
|
default_bundle: 'topics'
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- upgrade_d7_taxonomy_vocabulary
|
- upgrade_d7_taxonomy_vocabulary
|
||||||
|
|
|
@ -18,11 +18,7 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: tid
|
source: tid
|
||||||
vid:
|
vid: 'topics'
|
||||||
-
|
|
||||||
plugin: migration_lookup
|
|
||||||
migration: upgrade_d7_taxonomy_vocabulary
|
|
||||||
source: vid
|
|
||||||
name:
|
name:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -39,7 +35,10 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: weight
|
source: weight
|
||||||
parent: '0'
|
parent:
|
||||||
|
- plugin: migration_lookup
|
||||||
|
migration: upgrade_d7_taxonomy_vocabulary
|
||||||
|
source: vid
|
||||||
forum_container:
|
forum_container:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -54,7 +53,7 @@ process:
|
||||||
source: language
|
source: language
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:taxonomy_term'
|
plugin: 'entity:taxonomy_term'
|
||||||
default_bundle: vocabulary_13
|
default_bundle: 'topics'
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- upgrade_d7_taxonomy_vocabulary
|
- upgrade_d7_taxonomy_vocabulary
|
||||||
|
|
|
@ -18,11 +18,7 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: tid
|
source: tid
|
||||||
vid:
|
vid: 'topics'
|
||||||
-
|
|
||||||
plugin: migration_lookup
|
|
||||||
migration: upgrade_d7_taxonomy_vocabulary
|
|
||||||
source: vid
|
|
||||||
name:
|
name:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -39,7 +35,10 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: weight
|
source: weight
|
||||||
parent: '0'
|
parent:
|
||||||
|
- plugin: migration_lookup
|
||||||
|
migration: upgrade_d7_taxonomy_vocabulary
|
||||||
|
source: vid
|
||||||
forum_container:
|
forum_container:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -54,7 +53,7 @@ process:
|
||||||
source: language
|
source: language
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:taxonomy_term'
|
plugin: 'entity:taxonomy_term'
|
||||||
default_bundle: vocabulary_2
|
default_bundle: 'topics'
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- upgrade_d7_taxonomy_vocabulary
|
- upgrade_d7_taxonomy_vocabulary
|
||||||
|
|
|
@ -26,11 +26,7 @@ process:
|
||||||
# - 50 # Is not going to be used anymore.
|
# - 50 # Is not going to be used anymore.
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
vid:
|
vid: 'article_type'
|
||||||
-
|
|
||||||
plugin: migration_lookup
|
|
||||||
migration: upgrade_d7_taxonomy_vocabulary
|
|
||||||
source: vid
|
|
||||||
name:
|
name:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -62,7 +58,7 @@ process:
|
||||||
source: language
|
source: language
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:taxonomy_term'
|
plugin: 'entity:taxonomy_term'
|
||||||
default_bundle: article_type
|
default_bundle: 'article_type'
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- upgrade_d7_taxonomy_vocabulary
|
- upgrade_d7_taxonomy_vocabulary
|
||||||
|
|
|
@ -18,11 +18,7 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: tid
|
source: tid
|
||||||
vid:
|
vid: 'topics'
|
||||||
-
|
|
||||||
plugin: migration_lookup
|
|
||||||
migration: upgrade_d7_taxonomy_vocabulary
|
|
||||||
source: vid
|
|
||||||
name:
|
name:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -39,7 +35,10 @@ process:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: weight
|
source: weight
|
||||||
parent: '0'
|
parent:
|
||||||
|
- plugin: migration_lookup
|
||||||
|
migration: upgrade_d7_taxonomy_vocabulary
|
||||||
|
source: vid
|
||||||
forum_container:
|
forum_container:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
|
@ -54,7 +53,7 @@ process:
|
||||||
source: language
|
source: language
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:taxonomy_term'
|
plugin: 'entity:taxonomy_term'
|
||||||
default_bundle: vocabulary_7
|
default_bundle: 'topics'
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- upgrade_d7_taxonomy_vocabulary
|
- upgrade_d7_taxonomy_vocabulary
|
||||||
|
|
|
@ -13,48 +13,34 @@ label: 'Taxonomy vocabularies'
|
||||||
source:
|
source:
|
||||||
plugin: d7_taxonomy_vocabulary
|
plugin: d7_taxonomy_vocabulary
|
||||||
process:
|
process:
|
||||||
vid:
|
vid: 'topics'
|
||||||
-
|
name:
|
||||||
plugin: make_unique_entity_field
|
- plugin: skip_on_value
|
||||||
source: machine_name
|
|
||||||
entity_type: taxonomy_vocabulary
|
|
||||||
field: vid
|
|
||||||
length: 32
|
|
||||||
migrated: true
|
|
||||||
-
|
|
||||||
plugin: forum_vocabulary
|
|
||||||
machine_name: forums
|
|
||||||
-
|
|
||||||
plugin: skip_on_value
|
|
||||||
method: row
|
method: row
|
||||||
not_equals: true
|
not_equals: true
|
||||||
# Only migrate these vocabularies.
|
source: name
|
||||||
|
# Only convert these vocabularies on terms.
|
||||||
value:
|
value:
|
||||||
- vocabulary_1
|
- 'Economic Sectors'
|
||||||
- vocabulary_2
|
- 'Regions'
|
||||||
# - vocabulary_3 This was created manually and renamed as "article type"
|
- 'Institutions & Structures'
|
||||||
- vocabulary_7
|
- 'Visions & Models'
|
||||||
- vocabulary_10
|
- 'Movements & Struggles'
|
||||||
- vocabulary_12
|
- 'Practices, Tools & Strategies'
|
||||||
- vocabulary_13
|
description/value:
|
||||||
label:
|
- plugin: get
|
||||||
-
|
|
||||||
plugin: get
|
|
||||||
source: name
|
|
||||||
name:
|
|
||||||
-
|
|
||||||
plugin: get
|
|
||||||
source: name
|
|
||||||
description:
|
|
||||||
-
|
|
||||||
plugin: get
|
|
||||||
source: description
|
source: description
|
||||||
|
description/format:
|
||||||
|
- plugin: default_value
|
||||||
|
default_value: 'full_html'
|
||||||
weight:
|
weight:
|
||||||
-
|
-
|
||||||
plugin: get
|
plugin: get
|
||||||
source: weight
|
source: weight
|
||||||
|
parent: '0'
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:taxonomy_vocabulary'
|
plugin: 'entity:taxonomy_term'
|
||||||
|
default_bundle: topics
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required: { }
|
required: { }
|
||||||
optional: { }
|
optional: { }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue