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 v2 #48

Merged
merged 1 commit into from
Mar 18, 2021
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ dependencies:
- field.field.media.audio.field_media_use
- field.field.media.audio.field_mime_type
- field.field.media.audio.field_original_name
- field.field.media.audio.field_track
- media.type.audio
module:
- file
- islandora
- path
id: media.audio.default
targetEntityType: media
Expand Down Expand Up @@ -53,6 +55,13 @@ content:
third_party_settings: { }
type: string_textarea
region: content
field_track:
weight: 27
settings:
progress_indicator: throbber
third_party_settings: { }
type: media_track
region: content
name:
type: string_textfield
weight: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ dependencies:
- field.field.media.video.field_media_video_file
- field.field.media.video.field_mime_type
- field.field.media.video.field_original_name
- field.field.media.video.field_track
- media.type.video
module:
- file
- islandora
- path
id: media.video.default
targetEntityType: media
Expand Down Expand Up @@ -53,6 +55,13 @@ content:
third_party_settings: { }
type: string_textarea
region: content
field_track:
weight: 27
settings:
progress_indicator: throbber
third_party_settings: { }
type: media_track
region: content
name:
type: string_textfield
weight: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ dependencies:
- field.field.media.audio.field_media_use
- field.field.media.audio.field_mime_type
- field.field.media.audio.field_original_name
- field.field.media.audio.field_track
- media.type.audio
module:
- file
- islandora_audio
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: islandora_file_audio
weight: 1
label: visually_hidden
settings:
Expand Down Expand Up @@ -82,6 +83,7 @@ content:
third_party_settings: { }
hidden:
created: true
field_track: true
langcode: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ dependencies:
- field.field.media.audio.field_media_use
- field.field.media.audio.field_mime_type
- field.field.media.audio.field_original_name
- field.field.media.audio.field_track
- media.type.audio
enforced:
module:
- islandora_core_feature
module:
- file
- islandora_audio
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: islandora_file_audio
weight: 0
label: visually_hidden
settings:
Expand All @@ -43,6 +44,7 @@ hidden:
field_media_use: true
field_mime_type: true
field_original_name: true
field_track: true
langcode: true
name: true
search_api_excerpt: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ dependencies:
- field.field.media.video.field_media_video_file
- field.field.media.video.field_mime_type
- field.field.media.video.field_original_name
- field.field.media.video.field_track
- media.type.video
module:
- file
- islandora_video
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: islandora_file_video
weight: 1
label: visually_hidden
settings:
Expand Down Expand Up @@ -85,6 +86,7 @@ content:
third_party_settings: { }
hidden:
created: true
field_track: true
langcode: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ dependencies:
- field.field.media.video.field_media_video_file
- field.field.media.video.field_mime_type
- field.field.media.video.field_original_name
- field.field.media.video.field_track
- media.type.video
enforced:
module:
- islandora_core_feature
module:
- file
- islandora_video
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: islandora_file_video
weight: 0
label: visually_hidden
settings:
Expand All @@ -46,6 +47,7 @@ hidden:
field_media_use: true
field_mime_type: true
field_original_name: true
field_track: true
langcode: true
name: true
search_api_excerpt: true
Expand Down
35 changes: 35 additions & 0 deletions config/install/field.field.media.audio.field_track.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_track
- media.type.audio
module:
- content_translation
- islandora
third_party_settings:
content_translation:
translation_sync:
file: '0'
label: '0'
kind: '0'
srclang: '0'
default: '0'
id: media.audio.field_track
field_name: field_track
entity_type: media
bundle: audio
label: Track
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: vtt
max_filesize: ''
languages: installed
handler: 'default:file'
handler_settings: { }
field_type: media_track
26 changes: 26 additions & 0 deletions config/install/field.field.media.video.field_track.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_track
- media.type.video
module:
- islandora
id: media.video.field_track
field_name: field_track
entity_type: media
bundle: video
label: Track
description: 'Supply a caption file here.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: vtt
max_filesize: ''
languages: installed
handler: 'default:file'
handler_settings: { }
field_type: media_track
27 changes: 27 additions & 0 deletions config/install/field.storage.media.field_track.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
module:
- field_permissions
- file
- islandora
- media
third_party_settings:
field_permissions:
permission_type: public
id: media.field_track
field_name: field_track
entity_type: media
type: media_track
settings:
uri_scheme: fedora
target_type: file
display_field: false
display_default: false
module: islandora
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false