Add the Article type vocabulary with two terms.
This commit is contained in:
parent
27ce72e445
commit
f6d8fa955e
3 changed files with 80 additions and 6 deletions
|
@ -109,12 +109,12 @@ process:
|
|||
source: taxonomy_vocabulary_2
|
||||
process:
|
||||
target_id: tid
|
||||
# taxonomy_vocabulary_3:
|
||||
# -
|
||||
# plugin: sub_process
|
||||
# source: taxonomy_vocabulary_3
|
||||
# process:
|
||||
# target_id: tid
|
||||
field_article_type:
|
||||
-
|
||||
plugin: sub_process
|
||||
source: taxonomy_vocabulary_3
|
||||
process:
|
||||
target_id: tid
|
||||
# taxonomy_vocabulary_5:
|
||||
# -
|
||||
# plugin: sub_process
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: upgrade_d7_taxonomy_term_vocabulary_3
|
||||
class: Drupal\migrate\Plugin\Migration
|
||||
field_plugin_method: alterFieldFormatterMigration
|
||||
cck_plugin_method: null
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- Content
|
||||
migration_group: migrate_drupal_7_geo
|
||||
label: 'Taxonomy terms (Departments)'
|
||||
source:
|
||||
plugin: d7_taxonomy_term
|
||||
bundle: vocabulary_3
|
||||
process:
|
||||
tid:
|
||||
-
|
||||
plugin: skip_on_value
|
||||
method: row
|
||||
source: tid
|
||||
not_equals: true
|
||||
# Only migrate these terms.
|
||||
value:
|
||||
- 17 # Reviews.
|
||||
- 50 # Articles (renamed as GEO Original)
|
||||
-
|
||||
plugin: get
|
||||
vid:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: upgrade_d7_taxonomy_vocabulary
|
||||
source: vid
|
||||
name:
|
||||
-
|
||||
plugin: static_map
|
||||
source: name
|
||||
# Articles is going to be renamed as 'Geo Original'
|
||||
map:
|
||||
'Articles' : 'GEO Original'
|
||||
bypass: TRUE
|
||||
description/value:
|
||||
-
|
||||
plugin: get
|
||||
source: description
|
||||
description/format:
|
||||
-
|
||||
plugin: get
|
||||
source: format
|
||||
weight:
|
||||
-
|
||||
plugin: get
|
||||
source: weight
|
||||
parent: '0'
|
||||
forum_container:
|
||||
-
|
||||
plugin: get
|
||||
source: is_container
|
||||
changed:
|
||||
-
|
||||
plugin: get
|
||||
source: timestamp
|
||||
langcode:
|
||||
-
|
||||
plugin: get
|
||||
source: language
|
||||
destination:
|
||||
plugin: 'entity:taxonomy_term'
|
||||
default_bundle: article_type
|
||||
migration_dependencies:
|
||||
required:
|
||||
- upgrade_d7_taxonomy_vocabulary
|
||||
optional: { }
|
|
@ -32,6 +32,7 @@ process:
|
|||
value:
|
||||
- vocabulary_1
|
||||
- vocabulary_2
|
||||
# - vocabulary_3 This was created manually and renamed as "article type"
|
||||
- vocabulary_7
|
||||
- vocabulary_10
|
||||
- vocabulary_12
|
||||
|
|
Loading…
Add table
Reference in a new issue