LP#1576727: Delimit bib CN subfields with a space user/cesardv/miker_lp1576727_signoff
authorMike Rylander <mrylander@gmail.com>
Fri, 29 Apr 2016 19:30:17 +0000 (15:30 -0400)
committerCesar Velez <cesar.velez@equinoxinitiative.org>
Fri, 23 Mar 2018 20:54:23 +0000 (16:54 -0400)
commitf77a644634c8b2f6847d4351d769cf99074760c5
tree0ba3816fc332d2e9591b748cf2b003b38e778194
parent5a6636f53ad07c718c6ba207d3f9d543deec72db
LP#1576727: Delimit bib CN subfields with a space

When suggested call numbers are pulled from a bib record, space delimiters are
dropped.  This is bad for noralization routines.  Now we will forcibly inject
a space between subfield values.

Also included are two small optimizations: exit early if no nodes are found
for a particular bib CN definition; use map+join instead of a for loop and
blind substring trim to stitch together an xpath expression.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm