Details
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
<dao audience="internal" xlink:actuate="none" xlink:audience="external" xlink:href="http://digitalassets.ynhsc.edu/ms296_001.tif " xlink:show="none" xlink:title="Watercolor of Brassie fly nymph (fishing fly0" xlink:type="simple"> <daodesc> <p>Watercolor of Brassie fly nymph (fishing fly0</p> </daodesc> </dao>