Skip to content

Commit

Permalink
Add Representative Image field and Media library. (#145)
Browse files Browse the repository at this point in the history
* Representative Image field and Media library.

* Struck by site template again.

* alphabetize like a librarian.
  • Loading branch information
rosiel authored May 2, 2024
1 parent a01174c commit d495dff
Show file tree
Hide file tree
Showing 29 changed files with 2,158 additions and 1 deletion.
34 changes: 34 additions & 0 deletions config/sync/core.entity_form_display.media.audio.media_library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: 53506f35-963e-45f3-a243-e289df793975
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.audio.field_file_size
- field.field.media.audio.field_media_audio_file
- field.field.media.audio.field_media_of
- 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
id: media.audio.media_library
targetEntityType: media
bundle: audio
mode: media_library
content: { }
hidden:
created: true
field_file_size: true
field_media_audio_file: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
field_track: true
langcode: true
name: true
path: true
status: true
translation: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
uuid: 666a13e3-3e3d-4f2d-9719-674e9cd75d07
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.document.field_file_size
- field.field.media.document.field_media_document
- field.field.media.document.field_media_of
- field.field.media.document.field_media_use
- field.field.media.document.field_mime_type
- field.field.media.document.field_original_name
- media.type.document
id: media.document.media_library
targetEntityType: media
bundle: document
mode: media_library
content: { }
hidden:
created: true
field_file_size: true
field_media_document: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
langcode: true
name: true
path: true
status: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
uuid: a19e475c-f9cf-4970-bc0f-5fb88fb20679
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.extracted_text.field_edited_text
- field.field.media.extracted_text.field_media_file
- field.field.media.extracted_text.field_media_of
- field.field.media.extracted_text.field_media_use
- field.field.media.extracted_text.field_mime_type
- media.type.extracted_text
id: media.extracted_text.media_library
targetEntityType: media
bundle: extracted_text
mode: media_library
content:
name:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
field_edited_text: true
field_media_file: true
field_media_of: true
field_media_use: true
field_mime_type: true
langcode: true
path: true
status: true
uid: true
36 changes: 36 additions & 0 deletions config/sync/core.entity_form_display.media.file.media_library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
uuid: c6fa9671-f5de-4146-8322-43451c9f4315
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.file.field_file_size
- field.field.media.file.field_height
- field.field.media.file.field_media_file
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- field.field.media.file.field_width
- media.type.file
id: media.file.media_library
targetEntityType: media
bundle: file
mode: media_library
content: { }
hidden:
created: true
field_file_size: true
field_height: true
field_media_file: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
field_width: true
langcode: true
name: true
path: true
status: true
translation: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
uuid: a40713bd-ed8d-411f-b6ff-ed5ef13ae572
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.fits_technical_metadata.field_complete
- field.field.media.fits_technical_metadata.field_file_size
- field.field.media.fits_technical_metadata.field_media_file
- field.field.media.fits_technical_metadata.field_media_of
- field.field.media.fits_technical_metadata.field_media_use
- field.field.media.fits_technical_metadata.field_mime_type
- field.field.media.fits_technical_metadata.fits_ois_file_information_md5che
- media.type.fits_technical_metadata
id: media.fits_technical_metadata.media_library
targetEntityType: media
bundle: fits_technical_metadata
mode: media_library
content: { }
hidden:
created: true
field_complete: true
field_file_size: true
field_media_file: true
field_media_of: true
field_media_use: true
field_mime_type: true
fits_ois_file_information_md5che: true
langcode: true
name: true
path: true
status: true
uid: true
46 changes: 46 additions & 0 deletions config/sync/core.entity_form_display.media.image.media_library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
uuid: bb709875-bafb-48d5-b4df-be6f0aeb650c
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.image.field_file_size
- field.field.media.image.field_height
- field.field.media.image.field_media_image
- field.field.media.image.field_media_of
- field.field.media.image.field_media_use
- field.field.media.image.field_mime_type
- field.field.media.image.field_original_name
- field.field.media.image.field_width
- image.style.thumbnail
- media.type.image
module:
- image
id: media.image.media_library
targetEntityType: media
bundle: image
mode: media_library
content:
field_media_image:
type: image_image
weight: -50
region: content
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
hidden:
created: true
field_file_size: true
field_height: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
field_width: true
langcode: true
name: true
path: true
status: true
translation: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 7edbf5c9-0e9c-4465-826c-f1570c4b4fab
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.remote_video.field_media_oembed_video
- media.type.remote_video
id: media.remote_video.media_library
targetEntityType: media
bundle: remote_video
mode: media_library
content: { }
hidden:
created: true
field_media_oembed_video: true
langcode: true
name: true
path: true
status: true
uid: true
34 changes: 34 additions & 0 deletions config/sync/core.entity_form_display.media.video.media_library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: 4935bb0e-60fb-4046-b501-5804f3ceec43
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.video.field_file_size
- field.field.media.video.field_media_of
- field.field.media.video.field_media_use
- 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
id: media.video.media_library
targetEntityType: media
bundle: video
mode: media_library
content: { }
hidden:
created: true
field_file_size: true
field_media_of: true
field_media_use: true
field_media_video_file: true
field_mime_type: true
field_original_name: true
field_track: true
langcode: true
name: true
path: true
status: true
translation: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies:
- field.field.node.islandora_object.field_place_published
- field.field.node.islandora_object.field_place_published_country
- field.field.node.islandora_object.field_publisher
- field.field.node.islandora_object.field_representative_image
- field.field.node.islandora_object.field_resource_type
- field.field.node.islandora_object.field_rights
- field.field.node.islandora_object.field_subject
Expand All @@ -53,6 +54,7 @@ dependencies:
- controlled_access_terms
- field_group
- geolocation
- media_library
- path
- text
third_party_settings:
Expand All @@ -61,6 +63,7 @@ third_party_settings:
children:
- field_member_of
- field_weight
- field_representative_image
- field_viewer_override
- langcode
- translation
Expand Down Expand Up @@ -611,6 +614,13 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_representative_image:
type: media_library_widget
weight: 16
region: content
settings:
media_types: { }
third_party_settings: { }
field_resource_type:
type: options_select
weight: 9
Expand Down Expand Up @@ -681,7 +691,7 @@ content:
third_party_settings: { }
field_weight:
type: number
weight: 16
weight: 15
region: content
settings:
placeholder: ''
Expand Down
16 changes: 16 additions & 0 deletions config/sync/core.entity_form_mode.media.media_library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
uuid: 2d80e240-c8f1-4eb4-8003-4f2290a3a0b0
langcode: en
status: true
dependencies:
module:
- media
enforced:
module:
- media_library
_core:
default_config_hash: 04_dAqpWYP1WmsXZ7IXJ7-yarCvNddD10EUkBDtIFy4
id: media.media_library
label: 'Media library'
description: ''
targetEntityType: media
cache: true
47 changes: 47 additions & 0 deletions config/sync/core.entity_view_display.media.audio.media_library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
uuid: 0bbca81b-2e8e-469c-bb25-b91eededb138
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.media_library
- field.field.media.audio.field_file_size
- field.field.media.audio.field_media_audio_file
- field.field.media.audio.field_media_of
- 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
- image.style.medium
- media.type.audio
module:
- image
id: media.audio.media_library
targetEntityType: media
bundle: audio
mode: media_library
content:
thumbnail:
type: image
label: hidden
settings:
image_link: ''
image_style: medium
image_loading:
attribute: lazy
third_party_settings: { }
weight: 0
region: content
hidden:
created: true
field_file_size: true
field_gemini_uri: true
field_media_audio_file: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
field_track: true
langcode: true
name: true
search_api_excerpt: true
uid: true
Loading

0 comments on commit d495dff

Please sign in to comment.