Issues

Select view

Select search mode

 
43 of 43

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

Won't Do

Description

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]

Failed to load

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

Failed to load

/)".

Environment

None

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Harvest Time Tracking

Open Harvest Time Tracking

Created September 3, 2020 at 6:51 PM
Updated May 25, 2021 at 2:22 PM
Resolved May 25, 2021 at 2:22 PM

Activity

Show:

Blake CarverMay 25, 2021 at 2:22 PM

Never mind, this was on 2.8.0 and fixed in 8.1 🙂

Blake CarverMay 25, 2021 at 2:16 PM

Opening this back up. Revenge of the Ampersands!

An Archival Object title with something like “Blake Carver Uses AT&T” or “Blake Carver Uses AT&T” will fail. “Blake Carver Uses AT & T” works fine.

Benn JosephOctober 29, 2020 at 6:29 PM
Edited

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!

Christine Di BellaOctober 28, 2020 at 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 JosephOctober 27, 2020 at 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.

Harvest Time Tracking

Flag notifications