Skip to content

Commit

Permalink
Require media_of for all media
Browse files Browse the repository at this point in the history
Ingests will no longer silently orphan media if the member_of field is
empty, or malformed (i.e. a typo, pointing to a non-existant id).
  • Loading branch information
birkland committed Aug 18, 2021
1 parent d50aff1 commit 695fdc2
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 14 deletions.
17 changes: 15 additions & 2 deletions codebase/config/sync/field.field.media.audio.field_media_of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ dependencies:
config:
- field.storage.media.field_media_of
- media.type.audio
- node.type.islandora_object
enforced:
module:
- islandora_core_feature
module:
- epp
third_party_settings:
epp:
value: ''
on_update: 1
_core:
default_config_hash: InUFyVlpxFYVY-YhhapTUcRhFN2ckUDTH37xpa3Gs2M
id: media.audio.field_media_of
Expand All @@ -16,11 +23,17 @@ entity_type: media
bundle: audio
label: 'Media of'
description: ''
required: false
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings: { }
handler_settings:
target_bundles:
islandora_object: islandora_object
sort:
field: _none
auto_create: false
auto_create_bundle: collection_object
field_type: entity_reference
17 changes: 15 additions & 2 deletions codebase/config/sync/field.field.media.document.field_media_of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ dependencies:
config:
- field.storage.media.field_media_of
- media.type.document
- node.type.islandora_object
enforced:
module:
- islandora_core_feature
module:
- epp
third_party_settings:
epp:
value: ''
on_update: 1
_core:
default_config_hash: hCtesdEi_L52_jy8fXeSz8iof2nR_h6KdIHwHhojtvg
id: media.document.field_media_of
Expand All @@ -16,11 +23,17 @@ entity_type: media
bundle: document
label: 'Media of'
description: ''
required: false
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings: { }
handler_settings:
target_bundles:
islandora_object: islandora_object
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ dependencies:
config:
- field.storage.media.field_media_of
- media.type.extracted_text
- node.type.islandora_object
module:
- epp
third_party_settings:
epp:
value: ''
on_update: 1
_core:
default_config_hash: y9R5H1jor6fE99GN9mvpbOkNiq3_xWCt-ROho5REz2U
id: media.extracted_text.field_media_of
Expand All @@ -13,15 +20,17 @@ entity_type: media
bundle: extracted_text
label: 'Media of'
description: ''
required: false
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles: null
target_bundles:
islandora_object: islandora_object
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
17 changes: 15 additions & 2 deletions codebase/config/sync/field.field.media.file.field_media_of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ dependencies:
config:
- field.storage.media.field_media_of
- media.type.file
- node.type.islandora_object
enforced:
module:
- islandora_core_feature
module:
- epp
third_party_settings:
epp:
value: ''
on_update: 1
_core:
default_config_hash: ZoFg1xcTNbj60kVradrk0lqIv9uKpyipN6vwxdFV7nQ
id: media.file.field_media_of
Expand All @@ -16,11 +23,17 @@ entity_type: media
bundle: file
label: 'Media of'
description: ''
required: false
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings: { }
handler_settings:
target_bundles:
islandora_object: islandora_object
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ dependencies:
config:
- field.storage.media.field_media_of
- media.type.fits_technical_metadata
- node.type.islandora_object
enforced:
module:
- islandora_fits
module:
- epp
third_party_settings:
epp:
value: ''
on_update: 1
_core:
default_config_hash: 8CDR4tcfysCDQ6CBinsRniQdpngQlB7dyoDF2xQTj04
id: media.fits_technical_metadata.field_media_of
Expand All @@ -16,11 +23,17 @@ entity_type: media
bundle: fits_technical_metadata
label: 'Media of'
description: ''
required: false
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings: { }
handler_settings:
target_bundles:
islandora_object: islandora_object
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
17 changes: 15 additions & 2 deletions codebase/config/sync/field.field.media.image.field_media_of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ dependencies:
config:
- field.storage.media.field_media_of
- media.type.image
- node.type.islandora_object
enforced:
module:
- islandora_core_feature
module:
- epp
third_party_settings:
epp:
value: ''
on_update: 1
_core:
default_config_hash: II3-g2WzFJTItCsK7PFCOchXURVgIiu6X9J4NBpEju0
id: media.image.field_media_of
Expand All @@ -16,11 +23,17 @@ entity_type: media
bundle: image
label: 'Media of'
description: ''
required: false
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings: { }
handler_settings:
target_bundles:
islandora_object: islandora_object
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
17 changes: 15 additions & 2 deletions codebase/config/sync/field.field.media.video.field_media_of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ dependencies:
config:
- field.storage.media.field_media_of
- media.type.video
- node.type.islandora_object
enforced:
module:
- islandora_core_feature
module:
- epp
third_party_settings:
epp:
value: ''
on_update: 1
_core:
default_config_hash: h5JQnggi4jLBpJfch-_9pxhCzQem-ZkOjnrOrHqNHHo
id: media.video.field_media_of
Expand All @@ -16,11 +23,17 @@ entity_type: media
bundle: video
label: 'Media of'
description: ''
required: false
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings: { }
handler_settings:
target_bundles:
islandora_object: islandora_object
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
4 changes: 4 additions & 0 deletions codebase/config/sync/field.storage.media.field_media_of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ dependencies:
module:
- islandora_core_feature
module:
- field_permissions
- media
- node
third_party_settings:
field_permissions:
permission_type: public
_core:
default_config_hash: VN6byCtafQaDCBbb4rpeh3YZPTHgir0ycHw6y-S-TYw
id: media.field_media_of
Expand Down

0 comments on commit 695fdc2

Please sign in to comment.