[Archivesspace_Users_Group] ampersand issue with PDF button in 2.1.2 public interface

Benn Joseph benn.joseph at northwestern.edu
Thu Sep 21 16:21:25 EDT 2017


Hi all,

We've encountered an issue with the v2.1.2 Print-to-PDF button in the public interface--apparently for any resource record with an ampersand that is followed immediately by another character that is not a space (e.g. "b&w" or "AT&T"), the ampersand is misinterpreted and causes the Print-to-PDF button to fail with an error. For me, that error is just "something went wrong", but the log shows this (when it gets tripped up on "b&w"):



RuntimeError (Failed to clean XML: The reference to entity "w" must end with the ';' delimiter.):



So we're guessing ArchivesSpace is thinking "&w" should be "&w;", and so forth for any other string of text with an ampersand. I checked this by going into a record that wouldn't print and changing the lone suspect ampersand ("AT&T" to "AT and T") and the PDF generated just fine.



This doesn't impact being able to just view resource records in the public interface, it's just the PDF function that isn't working. It's a problem, though, because we want to be able to use that PDF functionality but we also have a lot of ampersands in our resource records! Has anyone else experienced this issue or possibly come up with a fix?



Thanks,

--Benn

Benn Joseph
Head of Archival Processing
Northwestern University Libraries
Northwestern University
www.library.northwestern.edu
benn.joseph at northwestern.edu<mailto:benn.joseph at northwestern.edu%0d>
847.467.6581

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170921/aabf0378/attachment.html>


More information about the Archivesspace_Users_Group mailing list