Closed (fixed)
Project:
Acquia DAM
Version:
1.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2026 at 07:26 UTC
Updated:
10 Sep 2026 at 04:55 UTC
Jump to comment: Most recent
As a site administrator,
I want to map Drupal media field values to Acquia DAM metadata fields so that dynamic metadata is applied at upload time,
so that migrated assets carry complete metadata (keywords, captions, custom fields) without a second metadata-sync pass.
Acceptance Criteria:
AcquiaDamMigrationMetadataForm (between MapForm and SummaryForm) renders one static mapping table per included core media type with a single row per Drupal field ({ Drupal field (static label) | DAM metadata field select }); no add/remove AJAX machinery; non-included types get an italic gray note; stored mappings seed the select defaults (getStoredMappingByField()); empty allowed_metadata shows a notice linking to /admin/config/acquia-dam/metadataacquia_dam_asset_id / acquia_dam_managed_file / acquia_dam_managed_image) and base/read-only fields are excluded via the shared parent service acquia_dam.media_type_field_options (MediaTypeFieldOptions, also used by MediaTypeFormAlter); image media types additionally get a synthetic alt_text entry backed by MigrationMetadataMapper::getAltTextValues() ) reading the source field's altmetadata_mapping section in acquia_dam_migration_tools.migration_preferences (stored_values) — sequence of { media_type_id, media_type_label, mappings: [{drupal_field, dam_field}] }; the Drupal field is the form row key (static column), so normalizeMetadataMapping() keys on it and drops rows with an empty dam_field; config schema updatedAcquiaDamMigration ← updated (3-page wizard: 0 Map, 1 Metadata, 2 Summary); AcquiaDamMigrationSummaryForm ← updated (metadata_mapping_info summary table); MigrationTrait ← updated (isImageSource(), normalizeMetadataMapping(), getDrupalMetadataFieldOptions())Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rajeshreeputraComment #4
rajeshreeputraComment #5
rajeshreeputraComment #7
rajeshreeputraMR merged!