From 1087cd00b2b09111c516f1d5cc44266d0acfaeab Mon Sep 17 00:00:00 2001 From: elizoller Date: Tue, 9 Mar 2021 20:33:21 +0000 Subject: [PATCH] config for captions --- ...ntity_form_display.media.audio.default.yml | 9 +++++ ...ntity_form_display.media.video.default.yml | 9 +++++ ...ntity_view_display.media.audio.default.yml | 8 +++-- ...entity_view_display.media.audio.source.yml | 8 +++-- ...ntity_view_display.media.video.default.yml | 8 +++-- ...entity_view_display.media.video.source.yml | 8 +++-- .../field.field.media.audio.field_track.yml | 35 +++++++++++++++++++ .../field.field.media.video.field_track.yml | 26 ++++++++++++++ .../field.storage.media.field_track.yml | 27 ++++++++++++++ 9 files changed, 126 insertions(+), 12 deletions(-) create mode 100644 config/install/field.field.media.audio.field_track.yml create mode 100644 config/install/field.field.media.video.field_track.yml create mode 100644 config/install/field.storage.media.field_track.yml diff --git a/config/install/core.entity_form_display.media.audio.default.yml b/config/install/core.entity_form_display.media.audio.default.yml index 13339b0..cc82e2b 100644 --- a/config/install/core.entity_form_display.media.audio.default.yml +++ b/config/install/core.entity_form_display.media.audio.default.yml @@ -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 @@ -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 diff --git a/config/install/core.entity_form_display.media.video.default.yml b/config/install/core.entity_form_display.media.video.default.yml index 132839e..908bc18 100644 --- a/config/install/core.entity_form_display.media.video.default.yml +++ b/config/install/core.entity_form_display.media.video.default.yml @@ -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 @@ -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 diff --git a/config/install/core.entity_view_display.media.audio.default.yml b/config/install/core.entity_view_display.media.audio.default.yml index f455660..c3da4c9 100644 --- a/config/install/core.entity_view_display.media.audio.default.yml +++ b/config/install/core.entity_view_display.media.audio.default.yml @@ -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 @@ -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: @@ -82,6 +83,7 @@ content: third_party_settings: { } hidden: created: true + field_track: true langcode: true search_api_excerpt: true thumbnail: true diff --git a/config/install/core.entity_view_display.media.audio.source.yml b/config/install/core.entity_view_display.media.audio.source.yml index 97c05c4..f729339 100644 --- a/config/install/core.entity_view_display.media.audio.source.yml +++ b/config/install/core.entity_view_display.media.audio.source.yml @@ -9,12 +9,13 @@ 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 @@ -22,11 +23,11 @@ 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: @@ -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 diff --git a/config/install/core.entity_view_display.media.video.default.yml b/config/install/core.entity_view_display.media.video.default.yml index 974f7ee..ed738cc 100644 --- a/config/install/core.entity_view_display.media.video.default.yml +++ b/config/install/core.entity_view_display.media.video.default.yml @@ -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 @@ -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 @@ -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: @@ -85,6 +86,7 @@ content: third_party_settings: { } hidden: created: true + field_track: true langcode: true search_api_excerpt: true thumbnail: true diff --git a/config/install/core.entity_view_display.media.video.source.yml b/config/install/core.entity_view_display.media.video.source.yml index f4ec3ad..686cc4f 100644 --- a/config/install/core.entity_view_display.media.video.source.yml +++ b/config/install/core.entity_view_display.media.video.source.yml @@ -9,12 +9,13 @@ 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 @@ -22,11 +23,11 @@ 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: @@ -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 diff --git a/config/install/field.field.media.audio.field_track.yml b/config/install/field.field.media.audio.field_track.yml new file mode 100644 index 0000000..542a11f --- /dev/null +++ b/config/install/field.field.media.audio.field_track.yml @@ -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 diff --git a/config/install/field.field.media.video.field_track.yml b/config/install/field.field.media.video.field_track.yml new file mode 100644 index 0000000..2af2eeb --- /dev/null +++ b/config/install/field.field.media.video.field_track.yml @@ -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 diff --git a/config/install/field.storage.media.field_track.yml b/config/install/field.storage.media.field_track.yml new file mode 100644 index 0000000..532e13e --- /dev/null +++ b/config/install/field.storage.media.field_track.yml @@ -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