diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_story.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_story.yml index 02f1704..b80c76a 100644 --- a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_story.yml +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_story.yml @@ -156,6 +156,20 @@ process: target_id: fid display: display description: description + _field_bio: + plugin: geo_story_bio + source: + - field_author + - field_author_bio + field_biography: + plugin: sub_process + source: '@_field_bio' + process: + target_id: + plugin: migration_lookup + source: value + migration: upgrade_d7_node_story_author + override: bio field_authors: plugin: sub_process source: field_author @@ -177,10 +191,6 @@ process: # title: title # width: width # height: height -# field_author_bio: -# - -# plugin: get -# source: field_author_bio # field_citiations: # - # plugin: get diff --git a/web/modules/custom/geo_upgrade/src/Plugin/migrate/process/StoryBio.php b/web/modules/custom/geo_upgrade/src/Plugin/migrate/process/StoryBio.php new file mode 100644 index 0000000..cb939f0 --- /dev/null +++ b/web/modules/custom/geo_upgrade/src/Plugin/migrate/process/StoryBio.php @@ -0,0 +1,29 @@ + $item) { + $result[$key] = $item; + $result[$key]['bio'] = isset($value[1][0]['value']) ? $value[1][0]['value'] : ''; + } + return $result; + } +}