From f6fb6d2f046a9b6163d462530560c37d0695b41d Mon Sep 17 00:00:00 2001 From: dannylamb Date: Tue, 11 Apr 2017 15:30:27 -0300 Subject: [PATCH] First pass at image bundles (#53) * First pass at image bundles * Update composer.json * Update islandora.info.yml * Apparantly 2 and 6 are not the same number. * Pre pull commit * Getting rid of token dsm --- composer.json | 3 +- ...ield.storage.fedora_resource.field_obj.yml | 23 +++++++++++++ .../field.storage.media.field_image.yml | 33 +++++++++++++++++++ islandora.info.yml | 1 + tests/src/Kernel/IslandoraKernelTestBase.php | 5 +++ 5 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 config/install/field.storage.fedora_resource.field_obj.yml create mode 100644 config/install/field.storage.media.field_image.yml diff --git a/composer.json b/composer.json index e0dec094..c586a401 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,8 @@ "drupal/search_api": "^1.0@beta", "islandora/claw-jsonld": "dev-8.x-1.x", "stomp-php/stomp-php": "4.*", - "drupal/jwt": "1.0.0-alpha6" + "drupal/jwt": "1.0.0-alpha6", + "drupal/media_entity_image": "^1.2" }, "require-dev": { "phpunit/phpunit": "^4.8", diff --git a/config/install/field.storage.fedora_resource.field_obj.yml b/config/install/field.storage.fedora_resource.field_obj.yml new file mode 100644 index 00000000..24716718 --- /dev/null +++ b/config/install/field.storage.fedora_resource.field_obj.yml @@ -0,0 +1,23 @@ +uuid: d31f7746-57f6-4081-973e-da400b1e51d1 +langcode: en +status: true +dependencies: + enforced: + module: + - islandora + module: + - islandora + - media_entity +id: fedora_resource.field_obj +field_name: field_obj +entity_type: fedora_resource +type: entity_reference +settings: + target_type: media +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/install/field.storage.media.field_image.yml b/config/install/field.storage.media.field_image.yml new file mode 100644 index 00000000..674c81e9 --- /dev/null +++ b/config/install/field.storage.media.field_image.yml @@ -0,0 +1,33 @@ +uuid: 864f50f8-57b5-4a43-80f9-7548b1dc0196 +langcode: en +status: true +dependencies: + enforced: + module: + - islandora + module: + - file + - image + - media_entity +id: media.field_image +field_name: field_image +entity_type: media +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/islandora.info.yml b/islandora.info.yml index 20f75325..c7e58a86 100644 --- a/islandora.info.yml +++ b/islandora.info.yml @@ -16,3 +16,4 @@ dependencies: - rules - search_api - jwt + - media_entity_image diff --git a/tests/src/Kernel/IslandoraKernelTestBase.php b/tests/src/Kernel/IslandoraKernelTestBase.php index a30e405a..c3da5b44 100644 --- a/tests/src/Kernel/IslandoraKernelTestBase.php +++ b/tests/src/Kernel/IslandoraKernelTestBase.php @@ -32,6 +32,11 @@ abstract class IslandoraKernelTestBase extends KernelTestBase { 'views', 'key', 'jwt', + 'file', + 'entity', + 'image', + 'media_entity', + 'media_entity_image', 'islandora', ];