Skip to content

Commit

Permalink
Merge pull request #42 from roblib/1.x
Browse files Browse the repository at this point in the history
Compatibility fixes.
  • Loading branch information
rosiel authored Apr 26, 2023
2 parents f5c7469 + 352d8cd commit e374176
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 353 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Introduction
This module contains plugins to import data from a Fedora 3 Islandora instance
into an Islandora 8 instance. It also contains a feature as a submodule
into an Islandora 2 (previously called Islandora 8) instance. It also contains a feature as a submodule
that contains some example migrations. The example migrations are based on forms from vanilla Islandora 7.x solution
packs, and are meant to work with the fields defined in `islandora_defaults`. If you customized your MODS forms, then you
will also need to customize the example migration and `islandora_defaults`.
Expand Down Expand Up @@ -37,7 +37,7 @@ drush en islandora_migrate_7x_claw_feature
## Configuration

By default, the migrations are configured to work with an `islandora_vagrant` instance running on the same host as a
`claw-playbook` instance, which is convenient for development and testing. But for your Islandora 7.x instance, the
`Islandora playbook` instance, which is convenient for development and testing. But for your Islandora 7.x instance, the
following config will need to be set the same way on the source plugin of each migration (except for the
"7.x Tags Migration from CSV" migration):

Expand Down Expand Up @@ -77,19 +77,22 @@ migrations are configured to look for `islandora:sp_basic_image_collection` and
RELS_EXT_isMemberOfCollection_uri_ms:"info:fedora/islandora:sp_basic_image_collection" OR PID:"islandora:sp_basic_image_collection"
```
You can easily import a collection of your own by changing the PID in the above query, or you can provide your own
query to migrate over objects in other ways (such as per content model, in order by date created, etc...). If you can write a Solr select query for it, you can migrate it into Islandora 8. Omitting `q` from configuration will default to `*:*`
for the Solr query.
query to migrate over objects in other ways (such as per content model, in order by date created, etc...). If you can write a Solr select query for it, you can migrate it into Islandora 2. Omitting `q` from configuration will default to `*:*`
for the Solr query.

Once you've updated the configuration, you need to re-import the feature to load your changes. You can do this with `drush`:
```
drush -y fim islandora_migrate_7x_claw_feature
```

You can also use the UI to import the feature if you go to `admin/config/development/features` and click on the `Changed` link next to "Migrate 7x Claw Feature".
You can also use the UI to import the feature if you go
to `admin/config/development/features` and click on
the `Changed` link next to "Migrate 7x Claw Feature".
This requires the Migrate Tools module which is no longer installed by default since migrate commands were added to drush 10.x.

![Changed Link](docs/images/feature_click_changed.png)

From there, you can select all changes and clicking "Import Changes"
From there, you can select all changes and click "Import Changes"

![Import Changes](docs/images/feature_import_changes.png)

Expand Down Expand Up @@ -132,15 +135,15 @@ Here's the original object in Islandora 7.x:

![Free Smells in 7x](docs/images/free_smells_in_7x.png)

And here it is in Islandora 8:
And here it is in Islandora 2:

![Free Smells in Islandora 8](docs/images/free_smells_in_claw.png)

Clicking on the Media tab will reveal all of the datastreams migrated over from 7.x, which you can now manage through Islandora 8. Here's the original datastreams in Islandora 7.x:

![Free Smells Datastreams](docs/images/free_smells_datastreams.png)

And here they are in Islandora 8 as Media:
And here they are in Islandora 2 as Media:

![Free Smells Media](docs/images/free_smells_media.png)

Expand Down Expand Up @@ -168,7 +171,7 @@ This starts the import process from the command line with the username and actio
```shell
$ drush --uri=http://localhost:8000 --userid=1 -y migrate:import --group islandora_7x --update
└─────────────────────────┘:└────────┘└─┘ └────────────┘ └──────────────────┘ └──────┘
URL of Islandora 8 ───┘ │ │ │ │ │
URL of Islandora 2 ───┘ │ │ │ │ │
User Numeric ID ──────────────────────┘ │ │ │ │
send yes to confirmation(optional) ────────────┘ │ │ │
Module and action ──────────────────────────────────────┘ │ │
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "islandora/migrate_7x_claw",
"description": "Tools to assist in Islandora 7.x to CLAW migrations.",
"description": "Tools to assist in Islandora Classic 7.x to Islandora 2 migrations.",
"type": "drupal-module",
"homepage": "https://github.com/Islandora-Devops/migrate_7x_claw",
"support": {
"issues": "https://github.com/Islandora-CLAW/CLAW/issues",
"irc": "irc://irc.freenode.org/islandora",
"issues": "https://github.com/Islandora-Devops/migrate_7x_claw/issues",
"source": "https://github.com/Islandora-Devops/migrate_7x_claw"
},
"license": "GPL-2.0-or-later",
Expand All @@ -16,7 +15,8 @@
}
],
"require": {
"drupal/migrate_plus": "^4",
"drupal/migrate_conditions": "1.x@beta",
"drupal/migrate_plus": "^5",
"jonathangreen/tuque": "dev-master"
},
"require-dev": {
Expand Down
3 changes: 2 additions & 1 deletion migrate_7x_claw.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ type: module
name: Migrate Islandora 7.x to CLAW
description: 'Migration setup for migrating from an Islandora 7.x instance to CLAW.'
package: Islandora
core: 8.x
core_version_requirement: ^8 || ^9
dependencies:
- drupal:migrate
- migrate_conditions:migrate_conditions
- migrate_plus:migrate_plus
configure: migrate_7x_claw.settings
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ label: '7.x Tags Migration from CSV'
source:
plugin: csv
path: modules/contrib/migrate_7x_claw/migrate/tags.csv
header_offset: 0
header_row_count: 1
ids:
- vid
keys:
- external_uri
process:
name: name
Expand Down
Loading

0 comments on commit e374176

Please sign in to comment.