adding in gmcharlt's fix for trailing TCN spaces
authorChris Sharp <csharp@georgialibraries.org>
Fri, 13 Jan 2012 22:26:14 +0000 (17:26 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2022 19:49:20 +0000 (14:49 -0500)
Conflicts:

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

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

index 5f48f7d..75ec769 100644 (file)
@@ -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"]';