Ensure that non-multi display fields do not multiply
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Medium
|
Unassigned |
Bug Description
Consider a customized title display field entry that uses the following XPath to ensure that parts from the 245 $n and $p are included in the displayed title:
//marc:
Since this XPath expression results in a list of nodes that cannot be joined up via XPath itself, as XPath 2.0's string-join is not available to us, this can result in a title display that consists of multiple metabib.
SELECT * FROM biblio.
-[ RECORD 1 ]-+----
field_class | title
field | -6
facet_field | f
display_field | t
search_field | f
browse_field | f
source | 259
value | Under Jerusalem :
authority |
sort_value |
browse_nocase | f
-[ RECORD 2 ]-+----
field_class | title
field | -6
facet_field | f
display_field | t
search_field | f
browse_field | f
source | 259
value | the buried history of the world's most contested city /
authority |
sort_value |
browse_nocase | f
Particularly in the Angular staff catalog, this can result in displays that either display the parts of the title out of order or, when search term highlighting is in effect, display only one of the subfields.
For display fields that are not marked as multi = TRUE in config.
Evergreen 3.6+
Changed in evergreen: | |
importance: | Undecided → Medium |
tags: | added: search staffcatalog |
Changed in evergreen: | |
milestone: | none → 3.7.3 |
no longer affects: | evergreen/3.6 |
Changed in evergreen: | |
milestone: | 3.7.3 → none |
A patch is available at the tip of working/ user/gmcharlt/ lp1949892_ join_up_ display_ field
https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ gmcharlt/ lp1949892_ join_up_ display_ field
A rel_3_7 version of the patch is available at working/ user/gmcharlt/ lp1949892_ join_up_ display_ field-3. 7
https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ gmcharlt/ lp1949892_ join_up_ display_ field-3. 7