Add a possibly complete Issue Index to Collection form

This commit is contained in:
benjamin melançon 2019-09-30 14:55:12 -04:00
parent 60122d37b1
commit 31836eafc4
2 changed files with 37 additions and 8 deletions

View file

@ -9,10 +9,12 @@ migration_tags:
- 'Drupal 7'
- Content
migration_group: migrate_drupal_7_geo
label: 'Nodes (Issue article)'
label: 'Nodes (Issue index)'
source:
plugin: d7_node
node_type: issue_index
constants:
collection_type_tid: 299
process:
nid:
-
@ -109,12 +111,7 @@ process:
source: taxonomy_vocabulary_2
process:
target_id: tid
field_article_type:
-
plugin: sub_process
source: taxonomy_vocabulary_3
process:
target_id: tid
field_collection_type/target_id: constants/collection_type_tid
# taxonomy_vocabulary_5:
# -
# plugin: sub_process
@ -183,7 +180,7 @@ process:
default_value: 0
destination:
plugin: 'entity:node'
default_bundle: article
default_bundle: collection
migration_dependencies:
required:
- upgrade_d7_user

View file

@ -0,0 +1,32 @@
id: upgrade_d7_node_issueindex_body_paragraph
migration_group: migrate_drupal_7_geo
label: Body paragraph
source:
plugin: d7_node
node_type: issue_index
process:
uid:
- plugin: get
source: node_uid
status: status
created: created
parent_type: "node"
field_text:
-
plugin: sub_process
source: body
process:
value: value
format:
plugin: default_value
default_value: 'full_html'
destination:
plugin: 'entity_reference_revisions:paragraph'
default_bundle: text
dependencies:
enforced:
module:
- paragraphs
migration_dependencies:
required:
- upgrade_d7_user