PUI Print to PDF Fails if & is Immediately Followed by a Capital Letter


If a resource record contains an & entity immediately followed by a capital letter, like "M&M" PDF printing from the PUI fails. It works just fine on the staff side. It looks like the "line.match(/&[a-z]

/)" here should be "line.match(/&[A-Za-z]





Cory Nimer
October 15, 2020, 4:17 PM

This seems to be exporting correctly now in the ArchivesSpace test environment, whether the capitalized character is directly after the ampersand or if the ampersand is escaped.

October 19, 2020, 10:11 PM

This appears to work now to me as well - I tried it in the test environment on the Alice Key M&M Papers in the PUI and I was able to export a PDF.

Benn Joseph
October 27, 2020, 3:35 PM

Not working for me now on http://sandbox.archivesspace.org, created a test Resource record and added a Separated Materials note with the following text: “Removed: one AT&T container full of M&Ms.”. PDF printing failed whether or not ampersands were escaped.

Christine Di Bella
October 28, 2020, 6:06 PM

- thanks for testing! Our test server is at http://test.archivesspace.org - can you give this a try there? (The sandbox is on version 2.8.0 and doesn't have any code changes since then.)

Benn Joseph
October 29, 2020, 6:29 PM

thanks! I did the same test at http://test.archivesspace.org but PDF printing still failed (actually none of the records are printing now, maybe it needs a restart?)

EDIT: it’s working now as of 10/30, as described in earlier comments!



Blake Carver


Brian Harrington

Fix versions

Affects versions