Record attribute definitions that use xpath can break bib ingest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.7 |
Fix Released
|
Medium
|
Unassigned | ||
2.8 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Record attribute definitions that use XPath to extract their values can break ingest. For example, consider the following definition:
-[ RECORD 1 ]+-----
name | content_type
label | Content Type
description |
multi | t
filter | t
sorter | f
composite | f
tag |
sf_list |
joiner |
xpath | //marc:
format | marcxml
start_pos |
string_len |
fixed_field |
phys_char_sf |
Attempting to ingest a bib that has a 336$a will fail with the following error:
CONTEXT: SQL statement "SELECT metabib.
PL/pgSQL function biblio.
ERROR: invalid XML content
DETAIL: line 1: AttValue: " or ' expected
{"<subfield code=\"
^
line 1: attributes construct error
{"<subfield code=\"
Evergreen master
Changed in evergreen: | |
importance: | Undecided → Medium |
Changed in evergreen: | |
milestone: | 2.8.1 → 2.8.3 |
no longer affects: | evergreen/2.6 |
Changed in evergreen: | |
status: | New → Triaged |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
A fix is available at the tip of the user/gmcharlt/ lp1442796_ fix_xpath_ based_crad brach in the working/Evergreen repository:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ gmcharlt/ lp1442796_ fix_xpath_ based_crad