From: Chris Sharp Date: Fri, 13 Jan 2012 22:26:14 +0000 (-0500) Subject: adding in gmcharlt's fix for trailing TCN spaces X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0ae85b74d069873b97ca7edd21ecb1c540066d8d;p=evergreen%2Fpines.git adding in gmcharlt's fix for trailing TCN spaces Conflicts: Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm index 5f48f7d97c..75ec769c4f 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm @@ -187,6 +187,7 @@ sub _find_tcn_info { my $xpath = '//marc:controlfield[@tag="001"]'; my $tcn = $marcxml->documentElement->findvalue($xpath); + $tcn =~ s/^\s+|\s+$//og; $logger->info("biblio import located 001 (tcn) value of $tcn"); $xpath = '//marc:controlfield[@tag="003"]';