Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Islandora_7x_migrate: Make source PID available to default (MODS) row type. #1444

Open
alxp opened this issue Feb 25, 2020 · 0 comments
Open
Labels
Subject: Migration Concerning migration from Islandora 7 to Islandora 2.x.x

Comments

@alxp
Copy link
Contributor

alxp commented Feb 25, 2020

PR: Islandora-Devops/migrate_7x_claw#31

We are creating a migration that includes paragraphs types in the destination content model.

Reference documentation for migrating in to paragraphs is here: https://www.fourkitchens.com/blog/development/migrating-paragraphs-drupal-8/

What it requires is to have dependent migrations that import in to the paragraph directly, then the node migration specifies those as dependencies. However, to match up imported paragraphs with their parents, the paragraph being migrated needs to have an identifier in common with the parent object.

For Fedora objects, this can be the source PID. However, when using a row type to import XML datastreams, the PID is not always available in the XML to find via Path.

I've added a step in the AuthenticatedXml plugin that adds PID to the item being imported so long as that field isn't already part of the import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Migration Concerning migration from Islandora 7 to Islandora 2.x.x
Projects
Development

No branches or pull requests

2 participants