Skip to content

Duplicate assets created when assigning a thumbnail using XML mapper when map to field="o:thumnail" #10

Description

@fmateos

When importing items using the Bulk Import module with an XML mapper, assigning a thumbnail via <to field="o:thumbnail> with datatype="uri" results in the creation of two separate assets for the same image.

Even though only one rule is defined for o:thumbnail, two identical assets are created in Omeka S, and the item is assigned the second one as the actual thumbnail.

<map> <from xpath="/record/datafield[@tag='XXX']/subfield[@code='a']"/> <to field="o:thumbnail" datatype="uri"/> </map>

Observed behavior:

  • Two assets are created for the same image URI.
  • The item is assigned the second asset as the thumbnail.

Expected behavior:

  • Only one asset should be created for the thumbnail URI.
  • That asset should be assigned to the item as its thumbnail.
  • No media or additional asset duplication should occur unless explicitly mapped.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions