diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_issueindex.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_issueindex.yml index d91986b..e2e002a 100644 --- a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_issueindex.yml +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_issueindex.yml @@ -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 diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_issueindex_body_paragraph.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_issueindex_body_paragraph.yml new file mode 100644 index 0000000..ceb943e --- /dev/null +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_issueindex_body_paragraph.yml @@ -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