From: Bill Erickson Date: Wed, 29 Oct 2014 21:09:57 +0000 (-0400) Subject: KMAIN-938 - Added space to call numbers X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=414d207c85ad49b8d1e8c5e1bb02ee8924bf3c05;p=working%2FEvergreen.git KMAIN-938 - Added space to call numbers Cross-port: 84acaab --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm index bcc60d8421..f36e753cba 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm @@ -549,6 +549,9 @@ sub biblio_record_marc_cn { ' ', map { $_->textContent } $x->findnodes($xpath) ); + + # This trims the leading and trailing spaces + $cn =~ s/^\s+|\s+$//g; push @res, {$tag => $cn} if ($cn); } }