Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captions #44

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions config/install/core.entity_form_display.media.audio.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.audio.field_captions
- field.field.media.audio.field_file_size
- field.field.media.audio.field_media_audio_file
- field.field.media.audio.field_media_of
Expand All @@ -19,10 +20,17 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 6
weight: 5
region: content
settings: { }
third_party_settings: { }
field_captions:
type: file_generic
weight: 10
region: content
settings:
progress_indicator: throbber
third_party_settings: { }
field_media_audio_file:
weight: 1
settings:
Expand All @@ -32,12 +40,13 @@ content:
region: content
field_media_of:
type: entity_reference_autocomplete
weight: 4
weight: 3
region: content
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
third_party_settings: { }
field_media_use:
type: options_buttons
Expand All @@ -46,7 +55,7 @@ content:
settings: { }
third_party_settings: { }
field_original_name:
weight: 26
weight: 9
settings:
rows: 5
placeholder: ''
Expand All @@ -63,29 +72,30 @@ content:
third_party_settings: { }
path:
type: path
weight: 7
weight: 6
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 8
weight: 7
region: content
third_party_settings: { }
translation:
weight: 9
weight: 8
region: content
settings: { }
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
weight: 4
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden:
Expand Down
24 changes: 17 additions & 7 deletions config/install/core.entity_form_display.media.video.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.video.field_captions
- field.field.media.video.field_file_size
- field.field.media.video.field_media_of
- field.field.media.video.field_media_use
Expand All @@ -19,18 +20,26 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 6
weight: 5
region: content
settings: { }
third_party_settings: { }
field_captions:
type: file_generic
weight: 10
region: content
settings:
progress_indicator: throbber
third_party_settings: { }
field_media_of:
type: entity_reference_autocomplete
weight: 4
weight: 3
region: content
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
third_party_settings: { }
field_media_use:
type: options_buttons
Expand All @@ -46,7 +55,7 @@ content:
type: file_generic
region: content
field_original_name:
weight: 26
weight: 9
settings:
rows: 5
placeholder: ''
Expand All @@ -63,29 +72,30 @@ content:
third_party_settings: { }
path:
type: path
weight: 7
weight: 6
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 8
weight: 7
region: content
third_party_settings: { }
translation:
weight: 9
weight: 8
region: content
settings: { }
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
weight: 4
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.audio.field_captions
- field.field.media.audio.field_file_size
- field.field.media.audio.field_media_audio_file
- field.field.media.audio.field_media_of
Expand All @@ -10,7 +11,7 @@ dependencies:
- field.field.media.audio.field_original_name
- media.type.audio
module:
- file
- islandora_defaults
id: media.audio.default
targetEntityType: media
bundle: audio
Expand All @@ -27,11 +28,11 @@ content:
third_party_settings: { }
field_gemini_uri:
weight: 100
region: content
settings: { }
third_party_settings: { }
region: content
field_media_audio_file:
type: file_audio
type: file_audio_caption
weight: 1
label: visually_hidden
settings:
Expand Down Expand Up @@ -82,6 +83,7 @@ content:
third_party_settings: { }
hidden:
created: true
field_captions: true
langcode: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.source
- field.field.media.audio.field_captions
- field.field.media.audio.field_file_size
- field.field.media.audio.field_media_audio_file
- field.field.media.audio.field_media_of
Expand All @@ -14,19 +15,19 @@ dependencies:
module:
- islandora_core_feature
module:
- file
- islandora_defaults
id: media.audio.source
targetEntityType: media
bundle: audio
mode: source
content:
field_gemini_uri:
weight: 100
region: content
settings: { }
third_party_settings: { }
region: content
field_media_audio_file:
type: file_audio
type: file_audio_caption
weight: 0
label: visually_hidden
settings:
Expand All @@ -38,6 +39,7 @@ content:
region: content
hidden:
created: true
field_captions: true
field_file_size: true
field_media_of: true
field_media_use: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.video.field_captions
- field.field.media.video.field_file_size
- field.field.media.video.field_media_of
- field.field.media.video.field_media_use
Expand All @@ -10,7 +11,7 @@ dependencies:
- field.field.media.video.field_original_name
- media.type.video
module:
- file
- islandora_defaults
id: media.video.default
targetEntityType: media
bundle: video
Expand All @@ -27,9 +28,9 @@ content:
third_party_settings: { }
field_gemini_uri:
weight: 100
region: content
settings: { }
third_party_settings: { }
region: content
field_media_of:
type: entity_reference_label
weight: 4
Expand All @@ -47,7 +48,7 @@ content:
link: true
third_party_settings: { }
field_media_video_file:
type: file_video
type: file_video_caption
weight: 1
label: visually_hidden
settings:
Expand Down Expand Up @@ -85,6 +86,7 @@ content:
third_party_settings: { }
hidden:
created: true
field_captions: true
langcode: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.source
- field.field.media.video.field_captions
- field.field.media.video.field_file_size
- field.field.media.video.field_media_of
- field.field.media.video.field_media_use
Expand All @@ -14,19 +15,19 @@ dependencies:
module:
- islandora_core_feature
module:
- file
- islandora_defaults
id: media.video.source
targetEntityType: media
bundle: video
mode: source
content:
field_gemini_uri:
weight: 100
region: content
settings: { }
third_party_settings: { }
region: content
field_media_video_file:
type: file_video
type: file_video_caption
weight: 0
label: visually_hidden
settings:
Expand All @@ -41,6 +42,7 @@ content:
region: content
hidden:
created: true
field_captions: true
field_file_size: true
field_media_of: true
field_media_use: true
Expand Down
26 changes: 26 additions & 0 deletions config/install/field.field.media.audio.field_captions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_captions
- media.type.audio
module:
- file
id: media.audio.field_captions
field_name: field_captions
entity_type: media
bundle: audio
label: Captions
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'vtt'
max_filesize: ''
description_field: false
handler: 'default:file'
handler_settings: { }
field_type: file
26 changes: 26 additions & 0 deletions config/install/field.field.media.video.field_captions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_captions
- media.type.video
module:
- file
id: media.video.field_captions
field_name: field_captions
entity_type: media
bundle: video
label: Captions
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'vtt'
max_filesize: ''
description_field: false
handler: 'default:file'
handler_settings: { }
field_type: file
Loading