Skip to content

Commit

Permalink
First pass at changing the default for parse_entity_type to using
Browse files Browse the repository at this point in the history
field_unique_id, instead of name/title.
Still a WIP and will need changes.
  • Loading branch information
Bethany Seeger committed Aug 11, 2021
1 parent ef87573 commit 5046172
Show file tree
Hide file tree
Showing 61 changed files with 288 additions and 258 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ process:
delimiter: '||'
strict: false
-
plugin: entity_lookup
bundle_key: vid
bundle: islandora_access
entity_type: taxonomy_term
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: islandora_access
bundle_key: vid
value_key: field_unique_id
field_original_name: original_name
field_media_audio_file/target_id:
plugin: file_import
Expand All @@ -92,7 +93,7 @@ process:
entity_type: node
bundle: islandora_object
bundle_key: type
value_key: title
value_key: field_unique_id
field_media_use:
-
plugin: skip_on_empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ process:
delimiter: '||'
strict: false
-
plugin: entity_lookup
bundle_key: vid
bundle: islandora_access
entity_type: taxonomy_term
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: islandora_access
bundle_key: vid
value_key: field_unique_id
field_original_name: original_name
field_media_document/target_id:
plugin: file_import
Expand All @@ -92,7 +93,7 @@ process:
entity_type: node
bundle: islandora_object
bundle_key: type
value_key: title
value_key: field_unique_id
field_media_use:
-
plugin: skip_on_empty
Expand All @@ -105,9 +106,9 @@ process:
-
plugin: entity_lookup
entity_type: taxonomy_term
value_key: name
bundle_key: vid
bundle: islandora_media_use
bundle_key: vid
value_key: name
status: constants/STATUS
destination:
plugin: 'entity:media'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ process:
delimiter: '||'
strict: false
-
plugin: entity_lookup
bundle_key: vid
bundle: islandora_access
entity_type: taxonomy_term
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: islandora_access
bundle_key: vid
value_key: field_unique_id
field_media_file/target_id:
plugin: file_import
source: '@_download_filepath'
Expand All @@ -92,7 +93,7 @@ process:
entity_type: node
bundle: islandora_object
bundle_key: type
value_key: title
value_key: field_unique_id
field_media_use:
-
plugin: skip_on_empty
Expand All @@ -105,9 +106,9 @@ process:
-
plugin: entity_lookup
entity_type: taxonomy_term
value_key: name
bundle_key: vid
bundle: islandora_media_use
bundle_key: vid
value_key: name
status: constants/STATUS
destination:
plugin: 'entity:media'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ process:
delimiter: '||'
strict: false
-
plugin: entity_lookup
bundle_key: vid
bundle: islandora_access
entity_type: taxonomy_term
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: islandora_access
bundle_key: vid
value_key: field_unique_id
field_original_name: original_name
field_media_file/target_id:
plugin: file_import
Expand All @@ -92,7 +93,7 @@ process:
entity_type: node
bundle: islandora_object
bundle_key: type
value_key: title
value_key: field_unique_id
field_media_use:
-
plugin: skip_on_empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ process:
delimiter: '||'
strict: false
-
plugin: entity_lookup
bundle_key: vid
bundle: islandora_access
entity_type: taxonomy_term
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: islandora_access
bundle_key: vid
value_key: field_unique_id
field_original_name: original_name
field_media_image/target_id:
plugin: file_import
Expand All @@ -93,7 +94,7 @@ process:
entity_type: node
bundle: islandora_object
bundle_key: type
value_key: title
value_key: field_unique_id
field_media_use:
-
plugin: skip_on_empty
Expand All @@ -105,9 +106,9 @@ process:
-
plugin: entity_lookup
entity_type: taxonomy_term
value_key: name
bundle_key: vid
bundle: islandora_media_use
bundle_key: vid
value_key: name
status: constants/STATUS
destination:
plugin: 'entity:media'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ process:
delimiter: '||'
strict: false
-
plugin: entity_lookup
bundle_key: vid
bundle: islandora_access
entity_type: taxonomy_term
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: islandora_access
bundle_key: vid
value_key: field_unique_id
field_media_oembed_video: url
field_media_of:
plugin: parse_entity_lookup
Expand All @@ -46,7 +47,7 @@ process:
entity_type: node
bundle: islandora_object
bundle_key: type
value_key: title
value_key: field_unique_id
status: constants/STATUS
destination:
plugin: 'entity:media'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ process:
delimiter: '||'
strict: false
-
plugin: entity_lookup
bundle_key: vid
bundle: islandora_access
entity_type: taxonomy_term
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: islandora_access
bundle_key: vid
value_key: field_unique_id
field_original_name: original_name
field_media_video_file/target_id:
plugin: file_import
Expand All @@ -92,7 +93,7 @@ process:
entity_type: node
bundle: islandora_object
bundle_key: type
value_key: title
value_key: field_unique_id
field_media_use:
-
plugin: skip_on_empty
Expand All @@ -104,9 +105,9 @@ process:
-
plugin: entity_lookup
entity_type: taxonomy_term
value_key: name
bundle_key: vid
bundle: islandora_media_use
bundle_key: vid
value_key: name
status: constants/STATUS
destination:
plugin: 'entity:media'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ process:
entity_type: node
bundle: collection_object
bundle_key: type
value_key: title
value_key: field_unique_id
field_access_terms:
-
plugin: skip_on_empty
Expand All @@ -110,22 +110,24 @@ process:
delimiter: '||'
strict: false
-
plugin: entity_lookup
bundle_key: vid
bundle: islandora_access
entity_type: taxonomy_term
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: islandora_access
bundle_key: vid
value_key: field_unique_id
field_title_language:
-
plugin: skip_on_empty
method: process
source: title_language
-
plugin: entity_lookup
entity_type: taxonomy_term
bundle: language
bundle_key: vid
value_key: name
plugin: parse_entity_lookup
defaults:
entity_type: taxonomy_term
bundle: language
bundle_key: vid
value_key: field_unique_id
field_alternative_title:
-
plugin: skip_on_empty
Expand Down
Loading

0 comments on commit 5046172

Please sign in to comment.