EAD validation errors for dao audience attribute

Description

In version 2.5.1, digital objects export with invalid audience attributes. Attribute 'xlink:audience' is not allowed to appear in element 'dao'. Also, should not have multiple audience attributes.

Possible solution: don't insert another @audience when file_versions_to_display.length == 1
https://github.com/archivesspace/archivesspace/blob/80952a89220c2eabdf33e3ba257a9992e1c7823c/backend/app/exporters/serializers/ead.rb#L540

Ex: http://test.archivesspace.org/staff/digital_objects/41#tree::digital_object_41

Environment

None

Assignee

Andrew Morrison

Reporter

Nancy Kennedy

Fix versions

Affects versions

Priority

Major
Configure