LP#1576727: Delimit bib CN subfields with a space user/miker/lp-1576727-space-delimited-bib-cn
authorMike Rylander <mrylander@gmail.com>
Fri, 29 Apr 2016 19:30:17 +0000 (15:30 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 29 Apr 2016 19:30:17 +0000 (15:30 -0400)
commit2d1d527d6377573bdec25d1ad275f16459a43882
tree844b753ee04ad8d26e147e1f40e2d8bd19350aaa
parente6f79f6abe4ae4943c29cdf1c823f8e3d1f21c37
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm