TPAC: MFHD editor menu chokes on MFHD records with single-quote in 852 field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
High
|
Unassigned | ||
2.2 |
Fix Released
|
High
|
Unassigned |
Bug Description
* Evergreen 2.3.0 RC1-ish
Using the TPAC in the staff client, with a serial.record_entry like the following attached to a given bib record:
<record xsi:schemaLocat
Complaint was that the staff client didn't offer any way to edit the MFHD record.
JavaScript console showed:
Timestamp: 2012-09-06 11:42:12 AM
Error: SyntaxError: missing } after property list
Source File: oils://
Line: 764, Column: 108
Source Code:
It took a bit too long to figure out that the "'" in the 852 "La bibliothèque conserve l'année courante seulement" was prematurely terminating the value attached to the 'label' property.
The solution is to escape incoming single-quotes in the MFHD location values. Thus - user/dbs/
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Hi Dan,
I've tested and signed off here. The patch definitely prevents 852$a values like "This is a test's test" from breaking the
Actions for this Record -> MFHD Holdings -> {Edit,Delete} MHFD Record
menu entries.
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ senator/ tpac_escape_ sre_label