EAD export problem if mixed content and & in unittitle and single-part notes

Description

When a unittitle or single-part note contains both <emph> tagging and an &, the EAD export does not escape the & correctly. Works ok if no <emph> tagging. See for related issue/more info

Example:
http://test.archivesspace.org/staff/resources/151#tree::archival_object_65261
Using <emph> and & results in invalid EAD , due to

vs

This occurs in the unittitle and in (some) notes

Scope notes appear OK (i.e. multipart vs singlepart note makes a difference)

Environment

None

Activity

Show:
Edgar Garcia
February 26, 2019, 11:18 PM

Can confirm that this is still an issue on master. Also, within the notes fields in the staff interface, the ampersand "&" by itself shows up in red to denote an issue. Possibly to lightly enforce using the HTML entity name.

Mark Custer
March 20, 2019, 6:13 PM

Please note that this is something that Trevor fixed for the EAD3 exports. Perhaps those changes could be incorporated into the base exporter for EAD in ASpace?

I'm attaching the EAD2002 and EAD3 files that I just exported from here, http://test.archivesspace.org/staff/resources/45, to illustrate the different results. EAD2002 = invalid, EAD3 = valid.

Brian Harrington
March 21, 2019, 1:33 PM

I think this is the same issue as ANW-751. I've submitted a PR for that one here

Christine Di Bella
May 2, 2019, 6:32 PM

As this duplicates and that one is now fixed in master, closing this one up.

Duplicate

Assignee

Brian Harrington

Reporter

Nancy Kennedy

Affects versions

Priority

Major