Skip to content

Commit

Permalink
Merge pull request #152 from discoverygarden/DDST-788
Browse files Browse the repository at this point in the history
Default stubs to a collection.
  • Loading branch information
nchiasson-dgi authored Nov 22, 2024
2 parents d5c0210 + 24ad3e3 commit a93b0ce
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ process:
bundle: islandora_object
value_key: field_pid
source: pid

# XXX: Default to a collection model to bypass potential issues that have
# arisen previously with other modules such as serial_object.
field_model:
- plugin: default_value
default_value: 'http://purl.org/dc/dcmitype/Collection'
- plugin: dgi_migrate.required_entity_lookup
bundle_key: vid
bundle: islandora_models
value_key: field_external_uri
entity_type: taxonomy_term
ignore_case: TRUE
# XXX: Work around issue with interactions of entity hooks and migrations:
# Context reactions firing from entity hooks could try minting a value when
# stub entities are ingested; however, the non-stub migration:
Expand Down

0 comments on commit a93b0ce

Please sign in to comment.