From 414d207c85ad49b8d1e8c5e1bb02ee8924bf3c05 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 29 Oct 2014 17:09:57 -0400 Subject: [PATCH] KMAIN-938 - Added space to call numbers Cross-port: 84acaab --- Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm | 3 +++ 1 file changed, 3 insertions(+) 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); } } -- 2.11.0