forked from seth-shaw-unlv/claw-migrate-files-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated migrations for the new test data - Updated readme - Added view block to list images related to subjects on their pages - Fixed preceding character in apollo.csv that was causing a migration error for that file
- Loading branch information
1 parent
741bd03
commit e7d9c25
Showing
14 changed files
with
468 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
migrate_apollo/config/install/migrate_plus.migration.auth_complex.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
id: auth_complex | ||
label: Import MADS ComplexSubject Authorities | ||
migration_group: authorities | ||
|
||
source: | ||
plugin: url | ||
data_fetcher_plugin: file | ||
data_parser_plugin: xml | ||
urls: 'data/apollo-auths.rdf' # Path relative to Drupal site root | ||
item_selector: /rdf:RDF/madsrdf:ComplexSubject | ||
fields: | ||
- | ||
name: uri | ||
label: 'URI' | ||
selector: '@rdf:about' | ||
- | ||
name: pref_label | ||
label: 'MADS Auth Label' | ||
selector: 'madsrdf:authoritativeLabel' | ||
- | ||
name: ref_uri | ||
label: "External Authority" | ||
selector: 'skos:exactMatch/@rdf:resource' | ||
|
||
ids: | ||
uri: | ||
type: string | ||
|
||
destination: | ||
plugin: entity:node | ||
|
||
process: | ||
type: | ||
plugin: default_value | ||
default_value: subject | ||
title: pref_label | ||
field_uris: | ||
- # Skip this field if there are no skos:exactMatch | ||
plugin: skip_on_empty | ||
method: process | ||
source: ref_uri |
41 changes: 41 additions & 0 deletions
41
migrate_apollo/config/install/migrate_plus.migration.auth_geographic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
id: auth_geographic | ||
label: Import MADS Geographic Authorities | ||
migration_group: authorities | ||
|
||
source: | ||
plugin: url | ||
data_fetcher_plugin: file | ||
data_parser_plugin: xml | ||
urls: 'data/apollo-auths.rdf' # Path relative to Drupal site root | ||
item_selector: /rdf:RDF/madsrdf:Geographic | ||
fields: | ||
- | ||
name: uri | ||
label: 'URI' | ||
selector: '@rdf:about' | ||
- | ||
name: pref_label | ||
label: 'MADS Auth Label' | ||
selector: 'madsrdf:authoritativeLabel' | ||
- | ||
name: ref_uri | ||
label: "External Authority" | ||
selector: 'skos:exactMatch/@rdf:resource' | ||
|
||
ids: | ||
uri: | ||
type: string | ||
|
||
destination: | ||
plugin: entity:node | ||
|
||
process: | ||
type: | ||
plugin: default_value | ||
default_value: subject | ||
title: pref_label | ||
field_uris: | ||
- # Skip this field if there are no skos:exactMatch | ||
plugin: skip_on_empty | ||
method: process | ||
source: ref_uri |
41 changes: 41 additions & 0 deletions
41
migrate_apollo/config/install/migrate_plus.migration.auth_person.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
id: auth_person | ||
label: Import MADS PersonalName Authorities | ||
migration_group: authorities | ||
|
||
source: | ||
plugin: url | ||
data_fetcher_plugin: file | ||
data_parser_plugin: xml | ||
urls: 'data/apollo-auths.rdf' # Path relative to Drupal site root | ||
item_selector: /rdf:RDF/madsrdf:PersonalName | ||
fields: | ||
- | ||
name: uri | ||
label: 'URI' | ||
selector: '@rdf:about' | ||
- | ||
name: pref_label | ||
label: 'MADS Auth Label' | ||
selector: 'madsrdf:authoritativeLabel' | ||
- | ||
name: ref_uri | ||
label: "External Authority" | ||
selector: 'skos:exactMatch/@rdf:resource' | ||
|
||
ids: | ||
uri: | ||
type: string | ||
|
||
destination: | ||
plugin: entity:node | ||
|
||
process: | ||
type: | ||
plugin: default_value | ||
default_value: person | ||
title: pref_label | ||
field_uris: | ||
- # Skip this field if there are no skos:exactMatch | ||
plugin: skip_on_empty | ||
method: process | ||
source: ref_uri |
41 changes: 41 additions & 0 deletions
41
migrate_apollo/config/install/migrate_plus.migration.auth_topic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
id: auth_topic | ||
label: Import MADS Topic Authorities | ||
migration_group: authorities | ||
|
||
source: | ||
plugin: url | ||
data_fetcher_plugin: file | ||
data_parser_plugin: xml | ||
urls: 'data/apollo-auths.rdf' # Path relative to Drupal site root | ||
item_selector: /rdf:RDF/madsrdf:Topic | ||
fields: | ||
- | ||
name: uri | ||
label: 'URI' | ||
selector: '@rdf:about' | ||
- | ||
name: pref_label | ||
label: 'MADS Auth Label' | ||
selector: 'madsrdf:authoritativeLabel' | ||
- | ||
name: ref_uri | ||
label: "External Authority" | ||
selector: 'skos:exactMatch/@rdf:resource' | ||
|
||
ids: | ||
uri: | ||
type: string | ||
|
||
destination: | ||
plugin: entity:node | ||
|
||
process: | ||
type: | ||
plugin: default_value | ||
default_value: subject | ||
title: pref_label | ||
field_uris: | ||
- # Skip this field if there are no skos:exactMatch | ||
plugin: skip_on_empty | ||
method: process | ||
source: ref_uri |
10 changes: 5 additions & 5 deletions
10
...stall/migrate_plus.migration.cdm_file.yml → ...tall/migrate_plus.migration.claw_file.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'Migrate Islandora CLAW Images: Apollo Demo' | ||
description: Migrates Master Tiff Images into an Islandora Claw Image derivative using Apollo 11 mission photos as an example. | ||
package: custom | ||
type: module | ||
core: 8.x | ||
|
||
dependencies: | ||
- drupal:migrate | ||
- migrate_plus:migrate_plus | ||
- migrate_source_csv | ||
- unlv_image |
65 changes: 0 additions & 65 deletions
65
migrate_cdm/config/install/migrate_plus.migration.authorities.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.