KMAIN-938 - Added space to call numbers
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:09:57 +0000 (17:09 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: 84acaab

Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm

index bcc60d8..f36e753 100644 (file)
@@ -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);
         }
     }