diff --git a/config/install/core.entity_form_display.media.image_tiff.default.yml b/config/install/core.entity_form_display.media.image_tiff.default.yml index 9ca0848..3dc1c75 100644 --- a/config/install/core.entity_form_display.media.image_tiff.default.yml +++ b/config/install/core.entity_form_display.media.image_tiff.default.yml @@ -34,4 +34,5 @@ content: region: content hidden: created: true + field_mimetype: true uid: true diff --git a/config/install/core.entity_form_display.media.image_tiff.inline.yml b/config/install/core.entity_form_display.media.image_tiff.inline.yml index 5951cb7..31bc8b9 100644 --- a/config/install/core.entity_form_display.media.image_tiff.inline.yml +++ b/config/install/core.entity_form_display.media.image_tiff.inline.yml @@ -27,5 +27,6 @@ content: region: content hidden: created: true + field_mimetype: true name: true uid: true diff --git a/config/install/core.entity_form_display.media.jp2.default.yml b/config/install/core.entity_form_display.media.jp2.default.yml index 0d35438..f38766c 100644 --- a/config/install/core.entity_form_display.media.jp2.default.yml +++ b/config/install/core.entity_form_display.media.jp2.default.yml @@ -34,4 +34,5 @@ content: region: content hidden: created: true + field_mimetype: true uid: true diff --git a/config/install/core.entity_form_display.media.jp2.inline.yml b/config/install/core.entity_form_display.media.jp2.inline.yml index 9af16bf..03d5d49 100644 --- a/config/install/core.entity_form_display.media.jp2.inline.yml +++ b/config/install/core.entity_form_display.media.jp2.inline.yml @@ -27,5 +27,6 @@ content: region: content hidden: created: true + field_mimetype: true name: true uid: true diff --git a/config/install/core.entity_view_display.media.image_tiff.content.yml b/config/install/core.entity_view_display.media.image_tiff.content.yml index 43f9901..17595e8 100644 --- a/config/install/core.entity_view_display.media.image_tiff.content.yml +++ b/config/install/core.entity_view_display.media.image_tiff.content.yml @@ -34,6 +34,14 @@ content: settings: { } third_party_settings: { } type: file_default + field_mimetype: + type: string + weight: 4 + region: content + label: above + settings: + link_to_entity: false + third_party_settings: { } name: label: hidden type: string diff --git a/config/install/core.entity_view_display.media.image_tiff.default.yml b/config/install/core.entity_view_display.media.image_tiff.default.yml index 01484f0..5cdd575 100644 --- a/config/install/core.entity_view_display.media.image_tiff.default.yml +++ b/config/install/core.entity_view_display.media.image_tiff.default.yml @@ -28,3 +28,4 @@ hidden: name: true thumbnail: true uid: true + field_mimetype: true diff --git a/config/install/core.entity_view_display.media.jp2.content.yml b/config/install/core.entity_view_display.media.jp2.content.yml index 3ef0493..043aca6 100644 --- a/config/install/core.entity_view_display.media.jp2.content.yml +++ b/config/install/core.entity_view_display.media.jp2.content.yml @@ -27,3 +27,4 @@ hidden: name: true thumbnail: true uid: true + field_mimetype: true diff --git a/config/install/core.entity_view_display.media.jp2.default.yml b/config/install/core.entity_view_display.media.jp2.default.yml index 1cefb1c..a9cc38a 100644 --- a/config/install/core.entity_view_display.media.jp2.default.yml +++ b/config/install/core.entity_view_display.media.jp2.default.yml @@ -44,5 +44,13 @@ content: weight: 1 settings: { } third_party_settings: { } + field_mimetype: + type: string + weight: 4 + region: content + label: above + settings: + link_to_entity: false + third_party_settings: { } hidden: thumbnail: true diff --git a/config/install/field.field.media.image_tiff.field_mimetype.yml b/config/install/field.field.media.image_tiff.field_mimetype.yml new file mode 100644 index 0000000..e0e8dc9 --- /dev/null +++ b/config/install/field.field.media.image_tiff.field_mimetype.yml @@ -0,0 +1,24 @@ +uuid: be83e502-ccde-4ea8-b316-7a5f4a2fa8be +langcode: en +status: true +dependencies: + enforced: + module: + - islandora_image + config: + - field.storage.media.field_mimetype + - media_entity.bundle.image_tiff +id: media.image_tiff.field_mimetype +field_name: field_mimetype +entity_type: media +bundle: image_tiff +label: Mimetype +description: '' +required: false +translatable: true +default_value: + - + value: image/tiff +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/install/field.field.media.jp2.field_mimetype.yml b/config/install/field.field.media.jp2.field_mimetype.yml new file mode 100644 index 0000000..b7a93af --- /dev/null +++ b/config/install/field.field.media.jp2.field_mimetype.yml @@ -0,0 +1,24 @@ +uuid: 1f57ede0-8919-4d9e-b689-e0a0d9748e85 +langcode: en +status: true +dependencies: + enforced: + module: + - islandora_image + config: + - field.storage.media.field_mimetype + - media_entity.bundle.jp2 +id: media.jp2.field_mimetype +field_name: field_mimetype +entity_type: media +bundle: jp2 +label: Mimetype +description: '' +required: false +translatable: true +default_value: + - + value: image/jp2 +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/install/rdf.mapping.media.image_tiff.yml b/config/install/rdf.mapping.media.image_tiff.yml index 885fde8..2be2f9d 100644 --- a/config/install/rdf.mapping.media.image_tiff.yml +++ b/config/install/rdf.mapping.media.image_tiff.yml @@ -18,10 +18,6 @@ fieldMappings: properties: - 'dc:title' - 'rdf:label' - field_file: - properties: - - 'iana:describes' - mapping_type: rel created: properties: - 'schema:dateCreated' @@ -36,3 +32,6 @@ fieldMappings: properties: - 'schema:author' mapping_type: rel + field_mimetype: + properties: + - 'ebucore:hasMimeType' diff --git a/config/install/rdf.mapping.media.jp2.yml b/config/install/rdf.mapping.media.jp2.yml index 72fae00..6d8d777 100644 --- a/config/install/rdf.mapping.media.jp2.yml +++ b/config/install/rdf.mapping.media.jp2.yml @@ -18,10 +18,6 @@ fieldMappings: properties: - 'dc:title' - 'rdf:label' - field_file: - properties: - - 'iana:describes' - mapping_type: rel created: properties: - 'schema:dateCreated' @@ -36,3 +32,6 @@ fieldMappings: properties: - 'schema:author' mapping_type: rel + field_mimetype: + properties: + - 'ebucore:hasMimeType' diff --git a/config/install/rdf.mapping.media.web_content.yml b/config/install/rdf.mapping.media.web_content.yml index 7ab2f61..f874d37 100644 --- a/config/install/rdf.mapping.media.web_content.yml +++ b/config/install/rdf.mapping.media.web_content.yml @@ -18,10 +18,6 @@ fieldMappings: properties: - 'dc:title' - 'rdf:label' - field_image: - properties: - - 'iana:describes' - mapping_type: rel created: properties: - 'schema:dateCreated' @@ -36,3 +32,6 @@ fieldMappings: properties: - 'schema:author' mapping_type: rel + field_mimetype: + properties: + - 'ebucore:hasMimeType'